Skip to content

Commit bd139ed

Browse files
authored
Update ESLint dependencies (#3745)
* Update ESLint dependencies * Update more deps * Use `defineConfig` and `globalIgnores`
1 parent e58f02f commit bd139ed

File tree

2 files changed

+18
-23
lines changed

2 files changed

+18
-23
lines changed

eslint.config.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { fixupPluginRules } from '@eslint/compat';
21
import typescriptEslint from '@typescript-eslint/eslint-plugin';
32
import tsParser from '@typescript-eslint/parser';
43
import vitest from '@vitest/eslint-plugin';
4+
import { defineConfig, globalIgnores } from 'eslint/config';
55
import jestDom from 'eslint-plugin-jest-dom';
66
import react from 'eslint-plugin-react';
77
import reactCompiler from 'eslint-plugin-react-compiler';
@@ -11,12 +11,8 @@ import sonarjs from 'eslint-plugin-sonarjs';
1111
import testingLibrary from 'eslint-plugin-testing-library';
1212
import markdown from '@eslint/markdown';
1313

14-
export default [
15-
{
16-
// https://eslint.org/docs/latest/use/configure/ignore#ignoring-files
17-
ignores: ['.cache', 'coverage', 'dist', 'lib']
18-
// /!\ No other properties should be added to this configuration object.
19-
},
14+
export default defineConfig([
15+
globalIgnores(['.cache', 'coverage', 'dist', 'lib']),
2016

2117
{
2218
linterOptions: {
@@ -31,7 +27,7 @@ export default [
3127
plugins: {
3228
react,
3329
'react-compiler': reactCompiler,
34-
'react-hooks': fixupPluginRules(reactHooks),
30+
'react-hooks': reactHooks,
3531
'react-hooks-extra': reactHooksExtra,
3632
sonarjs,
3733
'@typescript-eslint': typescriptEslint
@@ -747,4 +743,4 @@ export default [
747743
'markdown/no-missing-label-refs': 1
748744
}
749745
}
750-
];
746+
]);

package.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@
5555
"devDependencies": {
5656
"@babel/preset-typescript": "^7.26.0",
5757
"@biomejs/biome": "1.9.4",
58-
"@eslint/compat": "^1.2.6",
59-
"@eslint/markdown": "^6.2.2",
60-
"@faker-js/faker": "^9.5.0",
58+
"@eslint/markdown": "^6.3.0",
59+
"@faker-js/faker": "^9.6.0",
6160
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
6261
"@linaria/core": "^6.0.0",
6362
"@microsoft/api-extractor": "^7.50.0",
@@ -69,26 +68,26 @@
6968
"@types/node": "^22.13.1",
7069
"@types/react": "^19.0.8",
7170
"@types/react-dom": "^19.0.3",
72-
"@typescript-eslint/eslint-plugin": "^8.24.0",
73-
"@typescript-eslint/parser": "^8.24.0",
71+
"@typescript-eslint/eslint-plugin": "^8.26.1",
72+
"@typescript-eslint/parser": "^8.26.1",
7473
"@vitejs/plugin-react": "^4.3.4",
75-
"@vitest/browser": "^3.0.6",
76-
"@vitest/coverage-v8": "^3.0.6",
77-
"@vitest/eslint-plugin": "^1.1.31",
74+
"@vitest/browser": "^3.0.9",
75+
"@vitest/coverage-v8": "^3.0.9",
76+
"@vitest/eslint-plugin": "^1.1.38",
7877
"@wyw-in-js/rollup": "^0.6.0",
7978
"@wyw-in-js/vite": "^0.6.0",
8079
"browserslist": "^4.24.4",
81-
"eslint": "^9.20.1",
80+
"eslint": "^9.22.0",
8281
"eslint-plugin-jest-dom": "^5.5.0",
8382
"eslint-plugin-react": "^7.37.4",
8483
"eslint-plugin-react-compiler": "^19.0.0-beta-3229e95-20250315",
8584
"eslint-plugin-react-hooks": "^5.2.0",
86-
"eslint-plugin-react-hooks-extra": "^1.26.2",
87-
"eslint-plugin-sonarjs": "^3.0.1",
85+
"eslint-plugin-react-hooks-extra": "^1.36.1",
86+
"eslint-plugin-sonarjs": "^3.0.2",
8887
"eslint-plugin-testing-library": "^7.1.1",
8988
"jspdf": "^3.0.0",
9089
"jspdf-autotable": "^5.0.2",
91-
"playwright": "^1.50.1",
90+
"playwright": "^1.51.1",
9291
"postcss": "^8.5.2",
9392
"prettier": "3.5.3",
9493
"react": "^19.0.0",
@@ -97,8 +96,8 @@
9796
"react-dom": "^19.0.0",
9897
"rolldown": "^1.0.0-beta.6",
9998
"typescript": "~5.8.2",
100-
"vite": "^6.1.0",
101-
"vitest": "^3.0.6",
99+
"vite": "^6.2.2",
100+
"vitest": "^3.0.9",
102101
"vitest-browser-react": "^0.1.1"
103102
},
104103
"peerDependencies": {

0 commit comments

Comments
 (0)