@ethang/eslint-config 17.5.1 → 17.6.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 +5 -5
- package/package.json +6 -6
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
|
+
* 597 errored rules.
|
|
6
|
+
* 142 rules from vanilla EsLint
|
|
7
7
|
* 113 rules from [sindresorhus/eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
|
|
8
|
-
*
|
|
8
|
+
* 104 rules from [@typescript/eslint](https://github.com/typescript-eslint/typescript-eslint)
|
|
9
9
|
* 75 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
|
@@ -312,7 +312,7 @@ export default tseslint.config(
|
|
|
312
312
|
"no-lone-blocks": "error",
|
|
313
313
|
"no-lonely-if": "error",
|
|
314
314
|
"no-loop-func": "off", // Handled by tseslint
|
|
315
|
-
"no-loss-of-precision": "
|
|
315
|
+
"no-loss-of-precision": "error",
|
|
316
316
|
"no-magic-numbers": "off",
|
|
317
317
|
"no-misleading-character-class": "error",
|
|
318
318
|
"no-mixed-requires": "off",
|
|
@@ -476,7 +476,6 @@ export default tseslint.config(
|
|
|
476
476
|
"@typescript-eslint/await-thenable": "error",
|
|
477
477
|
"@typescript-eslint/ban-ts-comment": "error",
|
|
478
478
|
"@typescript-eslint/ban-tslint-comment": "error",
|
|
479
|
-
"@typescript-eslint/ban-types": "error",
|
|
480
479
|
"@typescript-eslint/class-literal-property-style": "error",
|
|
481
480
|
"@typescript-eslint/class-methods-use-this": "off",
|
|
482
481
|
"@typescript-eslint/consistent-generic-constructors": "error",
|
|
@@ -507,7 +506,7 @@ export default tseslint.config(
|
|
|
507
506
|
"@typescript-eslint/no-duplicate-type-constituents": "error",
|
|
508
507
|
"@typescript-eslint/no-dynamic-delete": "error",
|
|
509
508
|
"@typescript-eslint/no-empty-function": "error",
|
|
510
|
-
"@typescript-eslint/no-empty-interface": "
|
|
509
|
+
"@typescript-eslint/no-empty-interface": "off", // Deprecated
|
|
511
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",
|
|
@@ -520,7 +519,7 @@ export default tseslint.config(
|
|
|
520
519
|
"@typescript-eslint/no-invalid-this": "off",
|
|
521
520
|
"@typescript-eslint/no-invalid-void-type": "error",
|
|
522
521
|
"@typescript-eslint/no-loop-func": "error",
|
|
523
|
-
"@typescript-eslint/no-loss-of-precision": "
|
|
522
|
+
"@typescript-eslint/no-loss-of-precision": "off", // Deprecated
|
|
524
523
|
"@typescript-eslint/no-magic-numbers": "off",
|
|
525
524
|
"@typescript-eslint/no-meaningless-void-operator": "error",
|
|
526
525
|
"@typescript-eslint/no-misused-new": "error",
|
|
@@ -534,6 +533,7 @@ export default tseslint.config(
|
|
|
534
533
|
"@typescript-eslint/no-redundant-type-constituents": "error",
|
|
535
534
|
"@typescript-eslint/no-require-imports": "error",
|
|
536
535
|
"@typescript-eslint/no-restricted-imports": "error",
|
|
536
|
+
"@typescript-eslint/no-restricted-types": "error",
|
|
537
537
|
"@typescript-eslint/no-shadow": "error",
|
|
538
538
|
"@typescript-eslint/no-this-alias": "error",
|
|
539
539
|
"@typescript-eslint/no-throw-literal": "off",
|
|
@@ -574,7 +574,7 @@ export default tseslint.config(
|
|
|
574
574
|
"@typescript-eslint/no-useless-empty-export": "error",
|
|
575
575
|
"@typescript-eslint/no-useless-template-literals": "off",
|
|
576
576
|
"@typescript-eslint/no-unnecessary-template-expression": "error",
|
|
577
|
-
"@typescript-eslint/no-var-requires": "
|
|
577
|
+
"@typescript-eslint/no-var-requires": "off", // Deprecated
|
|
578
578
|
"@typescript-eslint/no-wrapper-object-types": "error",
|
|
579
579
|
"@typescript-eslint/non-nullable-type-assertion-style": "error",
|
|
580
580
|
"@typescript-eslint/only-throw-error": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethang/eslint-config",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.6.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://github.com/eglove/eslint-config-ethang.git"
|
|
6
6
|
},
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"@eslint/js": "^9.8.0",
|
|
20
20
|
"@tanstack/eslint-plugin-query": "^5.51.15",
|
|
21
|
-
"@typescript-eslint/parser": "^
|
|
21
|
+
"@typescript-eslint/parser": "^8.0.0",
|
|
22
22
|
"eslint": "^9.8.0",
|
|
23
23
|
"eslint-config-prettier": "^9.1.0",
|
|
24
24
|
"eslint-plugin-astro": "^1.2.3",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
33
33
|
"prettier": "^3.3.3",
|
|
34
34
|
"typescript": "^5.5.4",
|
|
35
|
-
"typescript-eslint": "^
|
|
35
|
+
"typescript-eslint": "^8.0.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@eslint/js": "^9.8.0",
|
|
39
39
|
"@tanstack/eslint-plugin-query": "^5.51.15",
|
|
40
|
-
"@typescript-eslint/parser": "^
|
|
40
|
+
"@typescript-eslint/parser": "^8.0.0",
|
|
41
41
|
"eslint": "^9.8.0",
|
|
42
42
|
"eslint-config-prettier": "^9.1.0",
|
|
43
43
|
"eslint-plugin-astro": "^1.2.3",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
52
52
|
"prettier": "^3.3.3",
|
|
53
53
|
"typescript": "^5.5.4",
|
|
54
|
-
"typescript-eslint": "^
|
|
54
|
+
"typescript-eslint": "^8.0.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@ethang/project-builder": "^1.1.
|
|
57
|
+
"@ethang/project-builder": "^1.1.50",
|
|
58
58
|
"@tsconfig/node-lts": "^20.1.3",
|
|
59
59
|
"@tsconfig/strictest": "^2.0.5"
|
|
60
60
|
}
|