@ethang/eslint-config 17.0.12 → 17.1.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 +3 -3
- package/eslint.config.js +6 -4
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
[View Config](https://eslint-config-ethang.pages.dev/rules)
|
|
4
4
|
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* 593 errored rules.
|
|
6
|
+
* 141 rules from vanilla EsLint
|
|
7
7
|
* 112 rules from [sindresorhus/eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
|
|
8
|
-
*
|
|
8
|
+
* 105 rules from [@typescript/eslint](https://github.com/typescript-eslint/typescript-eslint)
|
|
9
9
|
* 74 rules from [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react)
|
|
10
10
|
* 51 rules from [eslint-plugin-astro](https://www.npmjs.com/package/eslint-plugin-astro)
|
|
11
11
|
* 35 rules from [jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y)
|
package/eslint.config.js
CHANGED
|
@@ -9,7 +9,7 @@ import reactHooks from "eslint-plugin-react-hooks";
|
|
|
9
9
|
import unicorn from "eslint-plugin-unicorn";
|
|
10
10
|
import tseslint from "typescript-eslint";
|
|
11
11
|
import sonar from "eslint-plugin-sonarjs";
|
|
12
|
-
import
|
|
12
|
+
import tanstack from "@tanstack/eslint-plugin-query";
|
|
13
13
|
import perfectionist from "eslint-plugin-perfectionist";
|
|
14
14
|
|
|
15
15
|
const languageOptions = {
|
|
@@ -197,9 +197,7 @@ export default tseslint.config(
|
|
|
197
197
|
perfectionist,
|
|
198
198
|
sonar,
|
|
199
199
|
unicorn,
|
|
200
|
-
"@tanstack/query":
|
|
201
|
-
rules: tanstackRules,
|
|
202
|
-
},
|
|
200
|
+
"@tanstack/query": tanstack,
|
|
203
201
|
},
|
|
204
202
|
rules: {
|
|
205
203
|
"accessor-pairs": "error",
|
|
@@ -509,6 +507,7 @@ export default tseslint.config(
|
|
|
509
507
|
"@typescript-eslint/no-dynamic-delete": "error",
|
|
510
508
|
"@typescript-eslint/no-empty-function": "error",
|
|
511
509
|
"@typescript-eslint/no-empty-interface": "error",
|
|
510
|
+
"@typescript-eslint/no-empty-object-type": "error",
|
|
512
511
|
"@typescript-eslint/no-explicit-any": "error",
|
|
513
512
|
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
514
513
|
"@typescript-eslint/no-extraneous-class": "error",
|
|
@@ -540,10 +539,13 @@ export default tseslint.config(
|
|
|
540
539
|
"@typescript-eslint/no-type-alias": "off",
|
|
541
540
|
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
|
|
542
541
|
"@typescript-eslint/no-unnecessary-condition": "error",
|
|
542
|
+
"@typescript-eslint/no-unnecessary-parameter-property-assignment":
|
|
543
|
+
"error",
|
|
543
544
|
"@typescript-eslint/no-unnecessary-qualifier": "error",
|
|
544
545
|
"@typescript-eslint/no-unnecessary-type-arguments": "error",
|
|
545
546
|
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
|
546
547
|
"@typescript-eslint/no-unnecessary-type-constraint": "error",
|
|
548
|
+
"@typescript-eslint/no-unnecessary-type-parameters": "error",
|
|
547
549
|
"@typescript-eslint/no-unsafe-argument": "error",
|
|
548
550
|
"@typescript-eslint/no-unsafe-assignment": "error",
|
|
549
551
|
"@typescript-eslint/no-unsafe-call": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethang/eslint-config",
|
|
3
|
-
"version": "17.0
|
|
3
|
+
"version": "17.1.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://github.com/eglove/eslint-config-ethang.git"
|
|
6
6
|
},
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"license": "ISC",
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"@eslint/js": "^9.6.0",
|
|
20
|
-
"@tanstack/eslint-plugin-query": "^5.
|
|
21
|
-
"@typescript-eslint/parser": "^7.
|
|
20
|
+
"@tanstack/eslint-plugin-query": "^5.50.1",
|
|
21
|
+
"@typescript-eslint/parser": "^7.16.0",
|
|
22
22
|
"eslint": "^9.6.0",
|
|
23
23
|
"eslint-config-prettier": "^9.1.0",
|
|
24
|
-
"eslint-plugin-astro": "^1.2.
|
|
24
|
+
"eslint-plugin-astro": "^1.2.3",
|
|
25
25
|
"eslint-plugin-jsx-a11y": "^6.9.0",
|
|
26
26
|
"eslint-plugin-n": "^17.9.0",
|
|
27
27
|
"eslint-plugin-perfectionist": "^2.11.0",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"eslint-plugin-sonarjs": "^1.0.3",
|
|
32
32
|
"eslint-plugin-unicorn": "^54.0.0",
|
|
33
33
|
"prettier": "^3.3.2",
|
|
34
|
-
"typescript": "^5.5.
|
|
35
|
-
"typescript-eslint": "^7.
|
|
34
|
+
"typescript": "^5.5.3",
|
|
35
|
+
"typescript-eslint": "^7.16.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@eslint/js": "^9.6.0",
|
|
39
|
-
"@tanstack/eslint-plugin-query": "^5.
|
|
40
|
-
"@typescript-eslint/parser": "^7.
|
|
39
|
+
"@tanstack/eslint-plugin-query": "^5.50.1",
|
|
40
|
+
"@typescript-eslint/parser": "^7.16.0",
|
|
41
41
|
"eslint": "^9.6.0",
|
|
42
42
|
"eslint-config-prettier": "^9.1.0",
|
|
43
|
-
"eslint-plugin-astro": "^1.2.
|
|
43
|
+
"eslint-plugin-astro": "^1.2.3",
|
|
44
44
|
"eslint-plugin-jsx-a11y": "^6.9.0",
|
|
45
45
|
"eslint-plugin-n": "^17.9.0",
|
|
46
46
|
"eslint-plugin-perfectionist": "^2.11.0",
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"eslint-plugin-sonarjs": "^1.0.3",
|
|
51
51
|
"eslint-plugin-unicorn": "^54.0.0",
|
|
52
52
|
"prettier": "^3.3.2",
|
|
53
|
-
"typescript": "^5.5.
|
|
54
|
-
"typescript-eslint": "^7.
|
|
53
|
+
"typescript": "^5.5.3",
|
|
54
|
+
"typescript-eslint": "^7.16.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@ethang/project-builder": "^1.1.
|
|
57
|
+
"@ethang/project-builder": "^1.1.43",
|
|
58
58
|
"@tsconfig/node-lts": "^20.1.3",
|
|
59
59
|
"@tsconfig/strictest": "^2.0.5"
|
|
60
60
|
}
|