@rpcbase/eslint-config 0.122.0 → 0.124.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/eslint.config.js +17 -13
- package/package.json +12 -13
package/eslint.config.js
CHANGED
|
@@ -3,8 +3,7 @@ import globals from "globals"
|
|
|
3
3
|
import tseslint from "typescript-eslint"
|
|
4
4
|
import pluginJs from "@eslint/js"
|
|
5
5
|
// plugins
|
|
6
|
-
import pluginImport from "eslint-plugin-import"
|
|
7
|
-
import pluginReact from "eslint-plugin-react"
|
|
6
|
+
import { importX as pluginImport } from "eslint-plugin-import-x"
|
|
8
7
|
import pluginReactCompiler from "eslint-plugin-react-compiler"
|
|
9
8
|
import reactRefresh from "eslint-plugin-react-refresh"
|
|
10
9
|
import pluginPlaywright from "eslint-plugin-playwright"
|
|
@@ -20,7 +19,15 @@ export const config = [
|
|
|
20
19
|
gitignore(),
|
|
21
20
|
{ files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"] },
|
|
22
21
|
pluginJs.configs.recommended,
|
|
23
|
-
|
|
22
|
+
{
|
|
23
|
+
plugins: {
|
|
24
|
+
import: pluginImport,
|
|
25
|
+
},
|
|
26
|
+
rules: {
|
|
27
|
+
"import/no-unresolved": "error",
|
|
28
|
+
"import/no-duplicates": "warn",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
24
31
|
...tseslint.configs.recommended,
|
|
25
32
|
reactRefresh.configs.recommended,
|
|
26
33
|
{
|
|
@@ -32,19 +39,17 @@ export const config = [
|
|
|
32
39
|
},
|
|
33
40
|
},
|
|
34
41
|
{
|
|
35
|
-
...pluginReact.configs.flat.recommended,
|
|
36
42
|
settings: {
|
|
37
|
-
react: {
|
|
38
|
-
version: "19",
|
|
39
|
-
},
|
|
40
43
|
"import/resolver": {
|
|
41
44
|
typescript: {
|
|
42
45
|
project: "./app",
|
|
43
46
|
},
|
|
44
47
|
},
|
|
48
|
+
"import-x/resolver": {
|
|
49
|
+
typescript: true,
|
|
50
|
+
},
|
|
45
51
|
},
|
|
46
52
|
rules: {
|
|
47
|
-
...pluginReact.configs.flat.recommended.rules,
|
|
48
53
|
"@typescript-eslint/no-empty-object-type": "off",
|
|
49
54
|
"@typescript-eslint/no-unused-vars": [
|
|
50
55
|
"error",
|
|
@@ -57,6 +62,9 @@ export const config = [
|
|
|
57
62
|
},
|
|
58
63
|
],
|
|
59
64
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
65
|
+
"no-unassigned-vars": "off",
|
|
66
|
+
"no-useless-assignment": "off",
|
|
67
|
+
"preserve-caught-error": "off",
|
|
60
68
|
"import/newline-after-import": ["error", { count: 2 }],
|
|
61
69
|
// https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/order.md
|
|
62
70
|
"import/order": [
|
|
@@ -97,10 +105,6 @@ export const config = [
|
|
|
97
105
|
"indent": ["error", 2],
|
|
98
106
|
"no-tabs": "error",
|
|
99
107
|
"quotes": ["error", "double"],
|
|
100
|
-
"react/display-name": "off",
|
|
101
|
-
"react/no-unescaped-entities": "off",
|
|
102
|
-
"react/prop-types": "off",
|
|
103
|
-
"react/react-in-jsx-scope": "off",
|
|
104
108
|
"semi": ["error", "never"],
|
|
105
109
|
},
|
|
106
110
|
},
|
|
@@ -144,7 +148,7 @@ export const config = [
|
|
|
144
148
|
"react-hooks/exhaustive-deps": "warn",
|
|
145
149
|
"react-hooks/use-memo": "error",
|
|
146
150
|
"react-hooks/void-use-memo": "error",
|
|
147
|
-
"react-hooks/preserve-manual-memoization": "
|
|
151
|
+
"react-hooks/preserve-manual-memoization": "warn",
|
|
148
152
|
}
|
|
149
153
|
},
|
|
150
154
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpcbase/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.124.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -37,22 +37,21 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"eslint": "^
|
|
40
|
+
"eslint": "^10"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@eslint/js": "
|
|
44
|
-
"@typescript-eslint/utils": "8.62.
|
|
45
|
-
"@vitest/eslint-plugin": "1.6.
|
|
46
|
-
"eslint-config-flat-gitignore": "2.
|
|
47
|
-
"eslint-import-resolver-typescript": "4.4.
|
|
48
|
-
"eslint-plugin-import": "
|
|
43
|
+
"@eslint/js": "10.0.1",
|
|
44
|
+
"@typescript-eslint/utils": "8.62.1",
|
|
45
|
+
"@vitest/eslint-plugin": "1.6.20",
|
|
46
|
+
"eslint-config-flat-gitignore": "2.3.0",
|
|
47
|
+
"eslint-import-resolver-typescript": "4.4.5",
|
|
48
|
+
"eslint-plugin-import-x": "4.17.1",
|
|
49
49
|
"eslint-plugin-playwright": "2.10.4",
|
|
50
|
-
"eslint-plugin-react": "7.37.5",
|
|
51
50
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
52
|
-
"eslint-plugin-react-hooks": "7.
|
|
53
|
-
"eslint-plugin-react-refresh": "0.5.
|
|
54
|
-
"globals": "17.
|
|
55
|
-
"typescript-eslint": "8.62.
|
|
51
|
+
"eslint-plugin-react-hooks": "7.1.1",
|
|
52
|
+
"eslint-plugin-react-refresh": "0.5.3",
|
|
53
|
+
"globals": "17.7.0",
|
|
54
|
+
"typescript-eslint": "8.62.1"
|
|
56
55
|
},
|
|
57
56
|
"devDependencies": {
|
|
58
57
|
"@types/eslint": "9.6.1",
|