-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- package.json and package-losck.json have been moved to project root - eslint.config.mjs created in the project root - lint every script - fix rollup related scripts after the merging of #3377
- Loading branch information
Showing
24 changed files
with
4,094 additions
and
5,094 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import globals from 'globals'; | ||
import js from '@eslint/js'; | ||
import html from 'eslint-plugin-html' | ||
|
||
export default [ | ||
{ | ||
files: [ | ||
'**/*.html', | ||
'**/*.js' | ||
], | ||
plugins: { | ||
html | ||
}, | ||
languageOptions: { | ||
ecmaVersion: 'latest', | ||
globals: { | ||
...globals.browser, | ||
...globals.jquery, | ||
'adapter': 'readonly', | ||
'bootbox': 'readonly', | ||
'define': 'readonly', | ||
'module': 'readonly', | ||
'toastr': 'readonly', | ||
} | ||
}, | ||
rules: { | ||
...js.configs.recommended.rules, | ||
'no-empty': 'off', | ||
'no-unused-vars': [ | ||
'warn', | ||
{ | ||
'args': 'all', | ||
'vars': 'all', | ||
'caughtErrors': 'all', | ||
} | ||
], | ||
'indent': [ | ||
'error', | ||
'tab', | ||
{ | ||
'SwitchCase': 1 | ||
} | ||
], | ||
} | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.