Skip to content

Commit b05ee78

Browse files
committed
Updated packages, simplified eslint config
1 parent fc88390 commit b05ee78

3 files changed

Lines changed: 1071 additions & 2081 deletions

File tree

eslint.config.mjs

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,15 @@
11
import eslint from "@eslint/js";
22
import { defineConfig } from "eslint/config";
33
import tseslint from "typescript-eslint";
4-
import react from "eslint-plugin-react";
5-
import reactHooks from "eslint-plugin-react-hooks";
4+
import eslintReact from "@eslint-react/eslint-plugin";
65
import prettierRecommended from "eslint-plugin-prettier/recommended";
76

87
export default defineConfig(
98
eslint.configs.recommended,
10-
react.configs.flat.recommended,
11-
prettierRecommended,
129
...tseslint.configs.recommended,
1310
{
14-
plugins: {
15-
"react-hooks": reactHooks,
16-
},
17-
settings: {
18-
react: {
19-
version: "detect",
20-
},
21-
},
22-
rules: {
23-
...reactHooks.configs.recommended.rules,
24-
"react/react-in-jsx-scope": "off",
25-
},
11+
files: ["**/*.{ts,tsx}"],
12+
...eslintReact.configs["recommended-typescript"],
2613
},
14+
prettierRecommended,
2715
);

package.json

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,30 @@
1515
"lint-ts": "tsc --noemit"
1616
},
1717
"devDependencies": {
18-
"@eslint/js": "^9.39.2",
18+
"@eslint-react/eslint-plugin": "^2.13.0",
19+
"@eslint/js": "^10.0.1",
1920
"@testing-library/dom": "^10.4.1",
20-
"@testing-library/react": "^16.3.1",
21+
"@testing-library/react": "^16.3.2",
2122
"@testing-library/user-event": "^14.6.1",
22-
"@types/node": "^25.0.3",
23-
"@types/react": "^19.2.7",
24-
"@vitejs/plugin-react": "^5.1.2",
25-
"@vitest/coverage-v8": "^4.0.16",
23+
"@types/node": "^25.3.3",
24+
"@types/react": "^19.2.14",
25+
"@vitejs/plugin-react": "^5.1.4",
26+
"@vitest/coverage-v8": "^4.0.18",
2627
"babel-plugin-react-compiler": "1.0.0",
27-
"eslint": "^9.39.2",
28+
"eslint": "^10.0.2",
2829
"eslint-config-prettier": "^10.1.8",
29-
"eslint-plugin-prettier": "^5.5.4",
30-
"eslint-plugin-react": "^7.37.5",
31-
"eslint-plugin-react-hooks": "^7.0.1",
32-
"jsdom": "^27.4.0",
33-
"prettier": "^3.7.4",
30+
"eslint-plugin-prettier": "^5.5.5",
31+
"jsdom": "^28.1.0",
32+
"prettier": "^3.8.1",
3433
"typescript": "^5.9.3",
35-
"typescript-eslint": "^8.52.0",
36-
"vite": "^7.3.0",
37-
"vitest": "^4.0.16"
34+
"typescript-eslint": "^8.56.1",
35+
"vite": "^7.3.1",
36+
"vitest": "^4.0.18"
3837
},
3938
"dependencies": {
40-
"react": "^19.2.3",
41-
"react-dom": "^19.2.3",
42-
"react-router-dom": "^7.11.0",
43-
"zustand": "^5.0.9"
39+
"react": "^19.2.4",
40+
"react-dom": "^19.2.4",
41+
"react-router-dom": "^7.13.1",
42+
"zustand": "^5.0.11"
4443
}
4544
}

0 commit comments

Comments
 (0)