@ethang/eslint-config 18.4.20 → 18.4.21
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/config.react.js +6 -1
- package/eslint.config.js +1 -0
- package/package.json +5 -5
package/config.react.js
CHANGED
|
@@ -52,6 +52,8 @@ export default tseslint.config({
|
|
|
52
52
|
"react/no-class-component": "error",
|
|
53
53
|
"react/no-clone-element": "error",
|
|
54
54
|
"react/no-comment-textnodes": "error",
|
|
55
|
+
"react/no-complex-conditional-rendering": "error",
|
|
56
|
+
"react/no-complicated-conditional-rendering": "error",
|
|
55
57
|
"react/no-component-will-mount": "error",
|
|
56
58
|
"react/no-component-will-receive-props": "error",
|
|
57
59
|
"react/no-component-will-update": "error",
|
|
@@ -80,8 +82,11 @@ export default tseslint.config({
|
|
|
80
82
|
"react/no-useless-fragment": "error",
|
|
81
83
|
"react/prefer-destructuring-assignment": "error",
|
|
82
84
|
"react/prefer-read-only-props": "error",
|
|
83
|
-
|
|
84
85
|
"react/prefer-shorthand-boolean": "error",
|
|
85
86
|
"react/prefer-shorthand-fragment": "error",
|
|
87
|
+
"react/web-api/no-leaked-event-listener": "error",
|
|
88
|
+
|
|
89
|
+
"react/web-api/no-leaked-interval": "error",
|
|
90
|
+
"react/web-api/no-leaked-timeout": "error",
|
|
86
91
|
},
|
|
87
92
|
});
|
package/eslint.config.js
CHANGED
|
@@ -531,6 +531,7 @@ export default tseslint.config({
|
|
|
531
531
|
|
|
532
532
|
"@tanstack/query/exhaustive-deps": "error",
|
|
533
533
|
"@tanstack/query/no-rest-destructuring": "error",
|
|
534
|
+
"@tanstack/query/no-unstable-deps": "error",
|
|
534
535
|
"@tanstack/query/stable-query-client": "error",
|
|
535
536
|
|
|
536
537
|
"tailwind/classnames-order": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethang/eslint-config",
|
|
3
|
-
"version": "18.4.
|
|
3
|
+
"version": "18.4.21",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://github.com/eglove/eslint-config-ethang.git"
|
|
6
6
|
},
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"author": "Ethan Glover",
|
|
17
17
|
"license": "ISC",
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
19
|
+
"@eslint-react/eslint-plugin": "^1.12.0",
|
|
20
20
|
"@eslint/js": "^9.9.0",
|
|
21
21
|
"@stylistic/eslint-plugin": "^2.6.4",
|
|
22
|
-
"@tanstack/eslint-plugin-query": "^5.
|
|
22
|
+
"@tanstack/eslint-plugin-query": "^5.52.0",
|
|
23
23
|
"@typescript-eslint/parser": "^8.2.0",
|
|
24
24
|
"eslint": "^9.9.0",
|
|
25
25
|
"eslint-plugin-astro": "^1.2.3",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"typescript-eslint": "^8.2.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
42
|
+
"@eslint-react/eslint-plugin": "^1.12.0",
|
|
43
43
|
"@eslint/js": "^9.9.0",
|
|
44
44
|
"@stylistic/eslint-plugin": "^2.6.4",
|
|
45
|
-
"@tanstack/eslint-plugin-query": "^5.
|
|
45
|
+
"@tanstack/eslint-plugin-query": "^5.52.0",
|
|
46
46
|
"@typescript-eslint/parser": "^8.2.0",
|
|
47
47
|
"eslint": "^9.9.0",
|
|
48
48
|
"eslint-plugin-astro": "^1.2.3",
|