Skip to content

Commit f2da72b

Browse files
authored
chore(deps): bump all eslint packages (#11629)
This bumps all eslint packages, ensuring compatibility with TypeScript 5.7.3. Previously, the following would be thrown: ```bash WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree. You may find that it works just fine, or you may not. SUPPORTED TYPESCRIPT VERSIONS: >=4.7.4 <5.7.0 YOUR TYPESCRIPT VERSION: 5.7.3 Please only submit bug reports when using the officially supported version ``` This [might have caused errors during linting](https://payloadcms.slack.com/archives/C04H7CQ615K/p1741707183505329?thread_ts=1741707036.030089&cid=C04H7CQ615K). `payload` lint before: ✖ 380 problems (9 errors, 371 warnings) `payload` lint after: ✖ 381 problems (9 errors, 372 warnings) `ui` lint before: ✖ 154 problems (12 errors, 142 warnings) `ui` lint after: ✖ 267 problems (12 errors, 255 warnings) The additional warnings in `ui` come from the new `@eslint-react/no-use-context` and `@eslint-react/no-context-provider` rules which are good to have in React 19.
1 parent 5285518 commit f2da72b

File tree

5 files changed

+497
-465
lines changed

5 files changed

+497
-465
lines changed

packages/eslint-config/configs/react/index.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export const index = deepMerge(
1313
rules: {
1414
...reactHooks.configs.recommended.rules,
1515
'@eslint-react/hooks-extra/no-direct-set-state-in-use-effect': 'off',
16+
'@eslint-react/naming-convention/use-state': 'off',
1617
},
1718
},
1819
{

packages/eslint-config/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import js from '@eslint/js'
22
import tseslint from 'typescript-eslint'
33
import perfectionist from 'eslint-plugin-perfectionist'
44
import { configs as regexpPluginConfigs } from 'eslint-plugin-regexp'
5-
import eslintConfigPrettier from 'eslint-config-prettier'
5+
import eslintConfigPrettier from 'eslint-config-prettier/flat'
66
import payloadPlugin from '@payloadcms/eslint-plugin'
77
import reactExtends from './configs/react/index.mjs'
88
import jestExtends from './configs/jest/index.mjs'

packages/eslint-config/package.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,22 @@
2424
"test": "echo \"Error: no test specified\" && exit 1"
2525
},
2626
"dependencies": {
27-
"@eslint-react/eslint-plugin": "1.16.1",
28-
"@eslint/js": "9.14.0",
27+
"@eslint-react/eslint-plugin": "1.31.0",
28+
"@eslint/js": "9.22.0",
2929
"@payloadcms/eslint-plugin": "workspace:*",
3030
"@types/eslint": "9.6.1",
31-
"@types/eslint__js": "8.42.3",
32-
"@typescript-eslint/parser": "8.14.0",
33-
"eslint": "9.14.0",
34-
"eslint-config-prettier": "9.1.0",
35-
"eslint-plugin-import-x": "4.4.2",
36-
"eslint-plugin-jest": "28.9.0",
37-
"eslint-plugin-jest-dom": "5.4.0",
31+
"@typescript-eslint/parser": "8.26.1",
32+
"eslint": "9.22.0",
33+
"eslint-config-prettier": "10.1.1",
34+
"eslint-plugin-import-x": "4.6.1",
35+
"eslint-plugin-jest": "28.11.0",
36+
"eslint-plugin-jest-dom": "5.5.0",
3837
"eslint-plugin-jsx-a11y": "6.10.2",
3938
"eslint-plugin-perfectionist": "3.9.1",
40-
"eslint-plugin-react-hooks": "0.0.0-experimental-a4b2d0d5-20250203",
41-
"eslint-plugin-regexp": "2.6.0",
42-
"globals": "15.12.0",
39+
"eslint-plugin-react-hooks": "0.0.0-experimental-d331ba04-20250307",
40+
"eslint-plugin-regexp": "2.7.0",
41+
"globals": "16.0.0",
4342
"typescript": "5.7.3",
44-
"typescript-eslint": "8.14.0"
43+
"typescript-eslint": "8.26.1"
4544
}
4645
}

packages/eslint-plugin/package.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,21 @@
2424
"test": "echo \"Error: no test specified\" && exit 1"
2525
},
2626
"dependencies": {
27-
"@eslint-react/eslint-plugin": "1.16.1",
28-
"@eslint/js": "9.14.0",
27+
"@eslint-react/eslint-plugin": "1.31.0",
28+
"@eslint/js": "9.22.0",
2929
"@types/eslint": "9.6.1",
30-
"@types/eslint__js": "8.42.3",
31-
"@typescript-eslint/parser": "8.14.0",
32-
"eslint": "9.14.0",
33-
"eslint-config-prettier": "9.1.0",
34-
"eslint-plugin-import-x": "4.4.2",
35-
"eslint-plugin-jest": "28.9.0",
36-
"eslint-plugin-jest-dom": "5.4.0",
30+
"@typescript-eslint/parser": "8.26.1",
31+
"eslint": "9.22.0",
32+
"eslint-config-prettier": "10.1.1",
33+
"eslint-plugin-import-x": "4.6.1",
34+
"eslint-plugin-jest": "28.11.0",
35+
"eslint-plugin-jest-dom": "5.5.0",
3736
"eslint-plugin-jsx-a11y": "6.10.2",
3837
"eslint-plugin-perfectionist": "3.9.1",
39-
"eslint-plugin-react-hooks": "0.0.0-experimental-a4b2d0d5-20250203",
40-
"eslint-plugin-regexp": "2.6.0",
41-
"globals": "15.12.0",
38+
"eslint-plugin-react-hooks": "0.0.0-experimental-d331ba04-20250307",
39+
"eslint-plugin-regexp": "2.7.0",
40+
"globals": "16.0.0",
4241
"typescript": "5.7.3",
43-
"typescript-eslint": "8.14.0"
42+
"typescript-eslint": "8.26.1"
4443
}
4544
}

0 commit comments

Comments
 (0)