-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump eslint from 8.57.0 to 9.8.0 (#211)
Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.8.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.57.0...v9.8.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rob Brackett <[email protected]>
- Loading branch information
1 parent
918c490
commit 17cd06a
Showing
5 changed files
with
332 additions
and
485 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,87 @@ | ||
import compat from 'eslint-plugin-compat'; | ||
import globals from 'globals'; | ||
import js from '@eslint/js'; | ||
import stylisticJs from '@stylistic/eslint-plugin-js'; | ||
|
||
export default [ | ||
{ | ||
ignores: ['scratch.*', 'dist/**/*', 'coverage/**/*'], | ||
}, | ||
|
||
js.configs.recommended, | ||
compat.configs['flat/recommended'], | ||
|
||
{ | ||
languageOptions: { | ||
ecmaVersion: 2022, | ||
sourceType: 'module', | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
}, | ||
}, | ||
|
||
settings: { | ||
browsers: | ||
'> 0.5%, last 2 versions, Firefox ESR, node >= 18, not dead, not op_mini all', | ||
lintAllEsApis: true, | ||
}, | ||
|
||
plugins: { | ||
'@stylistic/js': stylisticJs, | ||
}, | ||
|
||
rules: { | ||
'curly': ['error', 'multi-line', 'consistent'], | ||
'eqeqeq': ['error', 'always', { null: 'ignore' }], | ||
'@stylistic/js/max-len': [ | ||
'error', | ||
{ | ||
code: 120, | ||
comments: 80, | ||
ignoreUrls: true, | ||
ignoreTemplateLiterals: true, | ||
}, | ||
], | ||
'no-unused-vars': [ | ||
'error', | ||
{ | ||
argsIgnorePattern: '^_', | ||
caughtErrors: 'none', | ||
}, | ||
], | ||
}, | ||
}, | ||
|
||
{ | ||
files: ['scripts/**/*.js'], | ||
settings: { | ||
browsers: 'node >= 18', | ||
}, | ||
}, | ||
|
||
{ | ||
files: ['test/**/*.js'], | ||
languageOptions: { | ||
globals: { | ||
...globals.mocha, | ||
}, | ||
}, | ||
}, | ||
|
||
{ | ||
files: ['test/e2e/**/*.js'], | ||
settings: { | ||
browsers: 'node >= 18', | ||
}, | ||
}, | ||
|
||
{ | ||
files: ['test/unit/**/*.js', 'test/support/**/*.js'], | ||
ignores: ['test/support/wdio-webpack-dev-server.js'], | ||
settings: { | ||
browsers: | ||
'> 0.5%, last 20 versions, Firefox ESR, not dead, not op_mini all', | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.