@ethang/eslint-config 19.14.9 → 19.15.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/README.md +2 -2
- package/config.react.js +3 -0
- package/eslint.config.js +1 -0
- package/package.json +9 -12
- package/setup/cspell.ts +1 -0
package/README.md
CHANGED
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
- 52 rules for **Astro**
|
|
32
32
|
- `import astroConfig from "@ethang/eslint-config/config.astro.js";`
|
|
33
33
|
- 52 rules from [eslint-plugin-astro](https://github.com/ota-meshi/eslint-plugin-astro)
|
|
34
|
-
-
|
|
34
|
+
- 77 rules for **React**
|
|
35
35
|
- `import reactConfig from "@ethang/eslint-config/config.react.js";`
|
|
36
|
-
-
|
|
36
|
+
- 74 rules from [@eslint-react/eslint-plugin](https://eslint-react.xyz/)
|
|
37
37
|
- 2 rules from [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks)
|
|
38
38
|
- 1 rules from [eslint-plugin-react-compiler](https://github.com/facebook/react/tree/main/compiler/packages/eslint-plugin-react-compiler)
|
|
39
39
|
- 18 rules for **Solid**
|
package/config.react.js
CHANGED
|
@@ -33,6 +33,7 @@ export default tseslint.config({
|
|
|
33
33
|
"react/dom/no-namespace": "error",
|
|
34
34
|
"react/dom/no-render-return-value": "error",
|
|
35
35
|
"react/dom/no-script-url": "error",
|
|
36
|
+
"react/dom/no-unknown-property": "error",
|
|
36
37
|
"react/dom/no-unsafe-iframe-sandbox": "error",
|
|
37
38
|
"react/dom/no-unsafe-target-blank": "error",
|
|
38
39
|
"react/ensure-forward-ref-using-ref": "error",
|
|
@@ -44,6 +45,8 @@ export default tseslint.config({
|
|
|
44
45
|
"react/hooks-extra/no-unnecessary-use-callback": "error",
|
|
45
46
|
"react/hooks-extra/no-unnecessary-use-memo": "error",
|
|
46
47
|
"react/hooks-extra/prefer-use-state-lazy-initialization": "error",
|
|
48
|
+
"react/jsx-no-duplicate-props": "error",
|
|
49
|
+
"react/jsx-uses-vars": "error",
|
|
47
50
|
"react/naming-convention/component-name": "error",
|
|
48
51
|
"react/naming-convention/filename": ["error", { rule: "kebab-case" }],
|
|
49
52
|
"react/naming-convention/filename-extension": "error",
|
package/eslint.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethang/eslint-config",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.15.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://github.com/eglove/eslint-config-ethang.git"
|
|
6
6
|
},
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
"lint": "prettier . -w"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@cspell/eslint-plugin": "^8.
|
|
17
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
16
|
+
"@cspell/eslint-plugin": "^8.16.0",
|
|
17
|
+
"@eslint-react/eslint-plugin": "^1.16.1",
|
|
18
18
|
"@eslint/compat": "^1.2.2",
|
|
19
19
|
"@eslint/js": "^9.14.0",
|
|
20
20
|
"@eslint/json": "^0.6.0",
|
|
21
21
|
"@eslint/markdown": "^6.2.1",
|
|
22
22
|
"@stylistic/eslint-plugin": "^2.10.1",
|
|
23
23
|
"@stylistic/eslint-plugin-ts": "^2.10.1",
|
|
24
|
-
"@tanstack/eslint-plugin-query": "^5.
|
|
24
|
+
"@tanstack/eslint-plugin-query": "^5.60.1",
|
|
25
25
|
"@tanstack/eslint-plugin-router": "^1.79.0",
|
|
26
26
|
"@typescript-eslint/parser": "^8.13.0",
|
|
27
27
|
"eslint": "^9.14.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"eslint-plugin-depend": "^0.12.0",
|
|
32
32
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
33
33
|
"eslint-plugin-lodash": "^8.0.0",
|
|
34
|
-
"eslint-plugin-n": "^17.13.
|
|
34
|
+
"eslint-plugin-n": "^17.13.1",
|
|
35
35
|
"eslint-plugin-perfectionist": "^3.9.1",
|
|
36
36
|
"eslint-plugin-react-compiler": "19.0.0-beta-8a03594-20241020",
|
|
37
37
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
"prettier": "^3.3.3"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@cspell/eslint-plugin": "^8.
|
|
58
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
57
|
+
"@cspell/eslint-plugin": "^8.16.0",
|
|
58
|
+
"@eslint-react/eslint-plugin": "^1.16.1",
|
|
59
59
|
"@eslint/compat": "^1.2.2",
|
|
60
60
|
"@eslint/js": "^9.14.0",
|
|
61
61
|
"@eslint/json": "^0.6.0",
|
|
62
62
|
"@eslint/markdown": "^6.2.1",
|
|
63
63
|
"@stylistic/eslint-plugin": "^2.10.1",
|
|
64
64
|
"@stylistic/eslint-plugin-ts": "^2.10.1",
|
|
65
|
-
"@tanstack/eslint-plugin-query": "^5.
|
|
65
|
+
"@tanstack/eslint-plugin-query": "^5.60.1",
|
|
66
66
|
"@tanstack/eslint-plugin-router": "^1.79.0",
|
|
67
67
|
"@typescript-eslint/parser": "^8.13.0",
|
|
68
68
|
"eslint": "^9.14.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"eslint-plugin-depend": "^0.12.0",
|
|
73
73
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
74
74
|
"eslint-plugin-lodash": "^8.0.0",
|
|
75
|
-
"eslint-plugin-n": "^17.13.
|
|
75
|
+
"eslint-plugin-n": "^17.13.1",
|
|
76
76
|
"eslint-plugin-perfectionist": "^3.9.1",
|
|
77
77
|
"eslint-plugin-react-compiler": "19.0.0-beta-8a03594-20241020",
|
|
78
78
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
@@ -82,8 +82,5 @@
|
|
|
82
82
|
"eslint-plugin-unicorn": "^56.0.0",
|
|
83
83
|
"typescript": "^5.6.3",
|
|
84
84
|
"typescript-eslint": "^8.13.0"
|
|
85
|
-
},
|
|
86
|
-
"engines": {
|
|
87
|
-
"node": ">=22"
|
|
88
85
|
}
|
|
89
86
|
}
|