@ethang/eslint-config 17.5.2 → 17.6.1

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 CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  [View Config](https://eslint-config-ethang.pages.dev/rules)
4
4
 
5
- * 599 errored rules.
6
- * 141 rules from vanilla EsLint
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
- * 107 rules from [@typescript/eslint](https://github.com/typescript-eslint/typescript-eslint)
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": "off", // Handled by tseslint
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": "error",
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": "error",
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,9 +533,9 @@ 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
- "@typescript-eslint/no-throw-literal": "off",
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",
@@ -572,9 +571,8 @@ export default tseslint.config(
572
571
  "@typescript-eslint/no-use-before-define": "off",
573
572
  "@typescript-eslint/no-useless-constructor": "error",
574
573
  "@typescript-eslint/no-useless-empty-export": "error",
575
- "@typescript-eslint/no-useless-template-literals": "off",
576
574
  "@typescript-eslint/no-unnecessary-template-expression": "error",
577
- "@typescript-eslint/no-var-requires": "error",
575
+ "@typescript-eslint/no-var-requires": "off", // Deprecated
578
576
  "@typescript-eslint/no-wrapper-object-types": "error",
579
577
  "@typescript-eslint/non-nullable-type-assertion-style": "error",
580
578
  "@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.5.2",
3
+ "version": "17.6.1",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },
@@ -18,13 +18,13 @@
18
18
  "peerDependencies": {
19
19
  "@eslint/js": "^9.8.0",
20
20
  "@tanstack/eslint-plugin-query": "^5.51.15",
21
- "@typescript-eslint/parser": "^7.18.0",
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",
25
25
  "eslint-plugin-jsx-a11y": "^6.9.0",
26
26
  "eslint-plugin-n": "^17.10.1",
27
- "eslint-plugin-perfectionist": "^3.0.0",
27
+ "eslint-plugin-perfectionist": "^3.1.0",
28
28
  "eslint-plugin-prettier": "^5.2.1",
29
29
  "eslint-plugin-react": "^7.35.0",
30
30
  "eslint-plugin-react-hooks": "^4.6.2",
@@ -32,18 +32,18 @@
32
32
  "eslint-plugin-unicorn": "^55.0.0",
33
33
  "prettier": "^3.3.3",
34
34
  "typescript": "^5.5.4",
35
- "typescript-eslint": "^7.18.0"
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": "^7.18.0",
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",
44
44
  "eslint-plugin-jsx-a11y": "^6.9.0",
45
45
  "eslint-plugin-n": "^17.10.1",
46
- "eslint-plugin-perfectionist": "^3.0.0",
46
+ "eslint-plugin-perfectionist": "^3.1.0",
47
47
  "eslint-plugin-prettier": "^5.2.1",
48
48
  "eslint-plugin-react": "^7.35.0",
49
49
  "eslint-plugin-react-hooks": "^4.6.2",
@@ -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": "^7.18.0"
54
+ "typescript-eslint": "^8.0.0"
55
55
  },
56
56
  "devDependencies": {
57
- "@ethang/project-builder": "^1.1.49",
57
+ "@ethang/project-builder": "^1.1.52",
58
58
  "@tsconfig/node-lts": "^20.1.3",
59
59
  "@tsconfig/strictest": "^2.0.5"
60
60
  }