Skip to content

Commit 728072f

Browse files
renovate[bot]danez
andauthored
chore(deps): update dependency eslint to v9 (#560)
* chore(deps): update dependency eslint to v9 * migrate config --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Tschinder <[email protected]>
1 parent 4a63b17 commit 728072f

File tree

7 files changed

+233
-244
lines changed

7 files changed

+233
-244
lines changed

.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 48 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
import globals from 'globals';
2+
import babelParser from '@babel/eslint-parser';
3+
import js from '@eslint/js';
4+
import reactPlugin from 'eslint-plugin-react';
5+
import importPlugin from 'eslint-plugin-import';
6+
import jsxA11yPlugin from 'eslint-plugin-jsx-a11y';
7+
import prettierRecommended from 'eslint-plugin-prettier/recommended';
8+
9+
export default [
10+
js.configs.recommended,
11+
reactPlugin.configs.flat.recommended,
12+
importPlugin.flatConfigs.recommended,
13+
importPlugin.flatConfigs.react,
14+
jsxA11yPlugin.flatConfigs.recommended,
15+
prettierRecommended,
16+
{
17+
ignores: ['webpack.*', '**/lib', '**/dist', '**/esm'],
18+
},
19+
{
20+
languageOptions: {
21+
globals: {
22+
...globals.browser,
23+
...globals.node,
24+
},
25+
26+
parser: babelParser,
27+
28+
parserOptions: {
29+
requireConfigFile: false,
30+
},
31+
},
32+
33+
settings: {
34+
react: {
35+
version: 'detect',
36+
},
37+
},
38+
39+
rules: {
40+
'jsx-a11y/no-static-element-interactions': 'off',
41+
42+
'import/no-extraneous-dependencies': [
43+
'error',
44+
{
45+
devDependencies: [
46+
'**/__tests__/**/*',
47+
'examples/src/**/*.js',
48+
'rollup.config.js',
49+
'webpack.config.js',
50+
],
51+
52+
optionalDependencies: false,
53+
},
54+
],
55+
56+
'no-unused-vars': [
57+
'error',
58+
{
59+
ignoreRestSiblings: true,
60+
},
61+
],
62+
63+
'no-console': 'error',
64+
'react/prop-types': 'off',
65+
},
66+
},
67+
{
68+
files: ['**/*-test.js'],
69+
70+
languageOptions: {
71+
globals: {
72+
...globals.jest,
73+
},
74+
},
75+
},
76+
];

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,13 @@
6363
"cross-env": "7.0.3",
6464
"css-loader": "7.1.2",
6565
"css-minimizer-webpack-plugin": "^7.0.0",
66-
"eslint": "8.57.1",
66+
"eslint": "9.17.0",
6767
"eslint-config-prettier": "9.1.0",
6868
"eslint-plugin-import": "2.31.0",
6969
"eslint-plugin-jsx-a11y": "6.10.2",
7070
"eslint-plugin-prettier": "5.2.1",
7171
"eslint-plugin-react": "7.37.2",
72+
"globals": "15.13.0",
7273
"hoist-non-react-statics": "3.3.2",
7374
"html-loader": "5.1.0",
7475
"html-webpack-plugin": "5.6.3",

0 commit comments

Comments
 (0)