Skip to content

Commit 208c230

Browse files
committed
Use the shareable ESLint config
1 parent 170123d commit 208c230

File tree

10 files changed

+81
-707
lines changed

10 files changed

+81
-707
lines changed

.eslintrc.js

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

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ typesversions
3131
.pnp.*
3232
*.tgz
3333

34-
tsconfig.vitest-temp.json
34+
tsconfig.vitest-temp.json
35+
.eslintcache

eslint.config.mts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { createESLintConfig } from '@reduxjs/eslint-config'
2+
import { configs } from 'typescript-eslint'
3+
4+
export default createESLintConfig([
5+
{ name: 'root-workspace/global-ignores', ignores: ['**/'] },
6+
configs.disableTypeChecked,
7+
])

package.json

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,12 @@
3131
"@babel/helper-compilation-targets": "^7.23.6",
3232
"@babel/traverse": "^7.24.1",
3333
"@babel/types": "^7.24.0",
34+
"@reduxjs/eslint-config": "workspace:^",
3435
"@reduxjs/prettier-config": "workspace:^",
3536
"@types/react": "^18.2.77",
3637
"@types/react-dom": "^18.2.25",
37-
"@typescript-eslint/eslint-plugin": "6.12.0",
38-
"@typescript-eslint/parser": "6.12.0",
39-
"eslint": "^7.25.0",
40-
"eslint-config-prettier": "^9.1.0",
41-
"eslint-config-react-app": "^7.0.1",
42-
"eslint-plugin-flowtype": "^5.7.2",
43-
"eslint-plugin-import": "^2.22.1",
44-
"eslint-plugin-jsx-a11y": "^6.4.1",
45-
"eslint-plugin-prettier": "^5.1.3",
46-
"eslint-plugin-react": "^7.23.2",
47-
"eslint-plugin-react-hooks": "^4.2.0",
38+
"eslint": "^9.10.0",
39+
"jiti": "^2.0.0-beta.3",
4840
"netlify-plugin-cache": "^1.0.3",
4941
"prettier": "^3.2.5",
5042
"react": "^18.2.0",
@@ -53,7 +45,8 @@
5345
"release-it": "^14.12.5",
5446
"serve": "^14.2.0",
5547
"ts-node": "^10.9.2",
56-
"typescript": "^5.5.4"
48+
"typescript": "^5.5.4",
49+
"typescript-eslint": "^8.6.0"
5750
},
5851
"resolutions": {
5952
"jest-snapshot": "29.3.1"

packages/rtk-codemods/.eslintrc.json

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { createESLintConfig } from '@reduxjs/eslint-config'
2+
3+
export default createESLintConfig([
4+
{ ignores: ['**/__testfixtures__/'] },
5+
{ rules: { '@typescript-eslint/array-type': [0] } }
6+
])

packages/rtk-codemods/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,11 @@
2929
"typescript": "^5.3.3"
3030
},
3131
"devDependencies": {
32+
"@reduxjs/eslint-config": "workspace:^",
3233
"@reduxjs/prettier-config": "workspace:^",
3334
"@types/jscodeshift": "^0.11.11",
34-
"@typescript-eslint/parser": "^6.19.1",
35-
"eslint": "^8.56.0",
36-
"eslint-config-prettier": "^9.1.0",
37-
"eslint-plugin-node": "^11.1.0",
38-
"eslint-plugin-prettier": "^5.1.3",
35+
"eslint": "^9.10.0",
36+
"jiti": "^2.0.0-beta.3",
3937
"prettier": "^3.2.5",
4038
"vitest": "^1.6.0"
4139
},

packages/toolkit/eslint.config.mts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { createESLintConfig } from '@reduxjs/eslint-config'
2+
3+
export default createESLintConfig()

packages/toolkit/package.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"@babel/helper-module-imports": "^7.24.7",
5555
"@microsoft/api-extractor": "^7.13.2",
5656
"@phryneas/ts-version": "^1.0.2",
57+
"@reduxjs/eslint-config": "workspace:^",
5758
"@reduxjs/prettier-config": "workspace:^",
5859
"@size-limit/file": "^11.0.1",
5960
"@size-limit/webpack": "^11.0.1",
@@ -68,23 +69,14 @@
6869
"@types/react": "^18.0.12",
6970
"@types/react-dom": "^18.0.5",
7071
"@types/yargs": "^16.0.1",
71-
"@typescript-eslint/eslint-plugin": "^6",
72-
"@typescript-eslint/parser": "^6",
7372
"axios": "^0.19.2",
7473
"console-testing-library": "patch:console-testing-library@npm%3A0.6.1#~/.yarn/patches/console-testing-library-npm-0.6.1-4d9957d402.patch",
7574
"esbuild": "^0.23.0",
7675
"esbuild-extra": "^0.4.0",
77-
"eslint": "^7.25.0",
78-
"eslint-config-prettier": "^9.1.0",
79-
"eslint-config-react-app": "^7.0.1",
80-
"eslint-plugin-flowtype": "^5.7.2",
81-
"eslint-plugin-import": "^2.22.1",
82-
"eslint-plugin-jsx-a11y": "^6.4.1",
83-
"eslint-plugin-prettier": "^5.1.3",
84-
"eslint-plugin-react": "^7.23.2",
85-
"eslint-plugin-react-hooks": "^4.2.0",
76+
"eslint": "^9.10.0",
8677
"fs-extra": "^9.1.0",
8778
"invariant": "^2.2.4",
79+
"jiti": "^2.0.0-beta.3",
8880
"jsdom": "^21.0.0",
8981
"json-stringify-safe": "^5.0.1",
9082
"msw": "^2.1.4",

0 commit comments

Comments
 (0)