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.
This commit is contained in:
@@ -13,6 +13,7 @@ export const index = deepMerge(
|
|||||||
rules: {
|
rules: {
|
||||||
...reactHooks.configs.recommended.rules,
|
...reactHooks.configs.recommended.rules,
|
||||||
'@eslint-react/hooks-extra/no-direct-set-state-in-use-effect': 'off',
|
'@eslint-react/hooks-extra/no-direct-set-state-in-use-effect': 'off',
|
||||||
|
'@eslint-react/naming-convention/use-state': 'off',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import js from '@eslint/js'
|
|||||||
import tseslint from 'typescript-eslint'
|
import tseslint from 'typescript-eslint'
|
||||||
import perfectionist from 'eslint-plugin-perfectionist'
|
import perfectionist from 'eslint-plugin-perfectionist'
|
||||||
import { configs as regexpPluginConfigs } from 'eslint-plugin-regexp'
|
import { configs as regexpPluginConfigs } from 'eslint-plugin-regexp'
|
||||||
import eslintConfigPrettier from 'eslint-config-prettier'
|
import eslintConfigPrettier from 'eslint-config-prettier/flat'
|
||||||
import payloadPlugin from '@payloadcms/eslint-plugin'
|
import payloadPlugin from '@payloadcms/eslint-plugin'
|
||||||
import reactExtends from './configs/react/index.mjs'
|
import reactExtends from './configs/react/index.mjs'
|
||||||
import jestExtends from './configs/jest/index.mjs'
|
import jestExtends from './configs/jest/index.mjs'
|
||||||
|
|||||||
@@ -24,23 +24,22 @@
|
|||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-react/eslint-plugin": "1.16.1",
|
"@eslint-react/eslint-plugin": "1.31.0",
|
||||||
"@eslint/js": "9.14.0",
|
"@eslint/js": "9.22.0",
|
||||||
"@payloadcms/eslint-plugin": "workspace:*",
|
"@payloadcms/eslint-plugin": "workspace:*",
|
||||||
"@types/eslint": "9.6.1",
|
"@types/eslint": "9.6.1",
|
||||||
"@types/eslint__js": "8.42.3",
|
"@typescript-eslint/parser": "8.26.1",
|
||||||
"@typescript-eslint/parser": "8.14.0",
|
"eslint": "9.22.0",
|
||||||
"eslint": "9.14.0",
|
"eslint-config-prettier": "10.1.1",
|
||||||
"eslint-config-prettier": "9.1.0",
|
"eslint-plugin-import-x": "4.6.1",
|
||||||
"eslint-plugin-import-x": "4.4.2",
|
"eslint-plugin-jest": "28.11.0",
|
||||||
"eslint-plugin-jest": "28.9.0",
|
"eslint-plugin-jest-dom": "5.5.0",
|
||||||
"eslint-plugin-jest-dom": "5.4.0",
|
|
||||||
"eslint-plugin-jsx-a11y": "6.10.2",
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
||||||
"eslint-plugin-perfectionist": "3.9.1",
|
"eslint-plugin-perfectionist": "3.9.1",
|
||||||
"eslint-plugin-react-hooks": "0.0.0-experimental-a4b2d0d5-20250203",
|
"eslint-plugin-react-hooks": "0.0.0-experimental-d331ba04-20250307",
|
||||||
"eslint-plugin-regexp": "2.6.0",
|
"eslint-plugin-regexp": "2.7.0",
|
||||||
"globals": "15.12.0",
|
"globals": "16.0.0",
|
||||||
"typescript": "5.7.3",
|
"typescript": "5.7.3",
|
||||||
"typescript-eslint": "8.14.0"
|
"typescript-eslint": "8.26.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,22 +24,21 @@
|
|||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-react/eslint-plugin": "1.16.1",
|
"@eslint-react/eslint-plugin": "1.31.0",
|
||||||
"@eslint/js": "9.14.0",
|
"@eslint/js": "9.22.0",
|
||||||
"@types/eslint": "9.6.1",
|
"@types/eslint": "9.6.1",
|
||||||
"@types/eslint__js": "8.42.3",
|
"@typescript-eslint/parser": "8.26.1",
|
||||||
"@typescript-eslint/parser": "8.14.0",
|
"eslint": "9.22.0",
|
||||||
"eslint": "9.14.0",
|
"eslint-config-prettier": "10.1.1",
|
||||||
"eslint-config-prettier": "9.1.0",
|
"eslint-plugin-import-x": "4.6.1",
|
||||||
"eslint-plugin-import-x": "4.4.2",
|
"eslint-plugin-jest": "28.11.0",
|
||||||
"eslint-plugin-jest": "28.9.0",
|
"eslint-plugin-jest-dom": "5.5.0",
|
||||||
"eslint-plugin-jest-dom": "5.4.0",
|
|
||||||
"eslint-plugin-jsx-a11y": "6.10.2",
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
||||||
"eslint-plugin-perfectionist": "3.9.1",
|
"eslint-plugin-perfectionist": "3.9.1",
|
||||||
"eslint-plugin-react-hooks": "0.0.0-experimental-a4b2d0d5-20250203",
|
"eslint-plugin-react-hooks": "0.0.0-experimental-d331ba04-20250307",
|
||||||
"eslint-plugin-regexp": "2.6.0",
|
"eslint-plugin-regexp": "2.7.0",
|
||||||
"globals": "15.12.0",
|
"globals": "16.0.0",
|
||||||
"typescript": "5.7.3",
|
"typescript": "5.7.3",
|
||||||
"typescript-eslint": "8.14.0"
|
"typescript-eslint": "8.26.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
891
pnpm-lock.yaml
generated
891
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user