Skip to content

Commit

Permalink
Bump eslint from 8.57.0 to 9.8.0 (#211)
Browse files Browse the repository at this point in the history
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
dependabot[bot] and Mr0grog authored Aug 3, 2024
1 parent 918c490 commit 17cd06a
Show file tree
Hide file tree
Showing 5 changed files with 332 additions and 485 deletions.
71 changes: 0 additions & 71 deletions .eslintrc.json

This file was deleted.

87 changes: 87 additions & 0 deletions eslint.config.js
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',
},
},
];
Loading

0 comments on commit 17cd06a

Please sign in to comment.