@ethang/eslint-config 17.2.0 → 17.4.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 CHANGED
@@ -2,16 +2,16 @@
2
2
 
3
3
  [View Config](https://eslint-config-ethang.pages.dev/rules)
4
4
 
5
- * 593 errored rules.
5
+ * 598 errored rules.
6
6
  * 141 rules from vanilla EsLint
7
7
  * 112 rules from [sindresorhus/eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
8
- * 105 rules from [@typescript/eslint](https://github.com/typescript-eslint/typescript-eslint)
9
- * 74 rules from [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react)
8
+ * 107 rules from [@typescript/eslint](https://github.com/typescript-eslint/typescript-eslint)
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)
12
12
  * 32 rules from [eslint-plugin-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs)
13
13
  * 20 rules from [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n/tree/67bbfdf3c6862dcbfe455a4afbd83fa60f9d1ea4)
14
- * 17 rules from [eslint-plugin-perfectionist](https://github.com/azat-io/eslint-plugin-perfectionist)
14
+ * 19 rules from [eslint-plugin-perfectionist](https://github.com/azat-io/eslint-plugin-perfectionist)
15
15
  * 3 rules from [@tanstack/eslint-plugin-query](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query)
16
16
  * 2 rules from [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks)
17
17
  * Includes Prettier built in (do NOT use this with a separate Prettier config.)
package/eslint.config.js CHANGED
@@ -552,6 +552,7 @@ export default tseslint.config(
552
552
  "@typescript-eslint/no-unsafe-call": "error",
553
553
  "@typescript-eslint/no-unsafe-declaration-merging": "error",
554
554
  "@typescript-eslint/no-unsafe-enum-comparison": "error",
555
+ "@typescript-eslint/no-unsafe-function-type": "error",
555
556
  "@typescript-eslint/no-unsafe-member-access": "error",
556
557
  "@typescript-eslint/no-unsafe-return": "error",
557
558
  "@typescript-eslint/no-unsafe-unary-minus": "error",
@@ -574,6 +575,7 @@ export default tseslint.config(
574
575
  "@typescript-eslint/no-useless-template-literals": "off",
575
576
  "@typescript-eslint/no-unnecessary-template-expression": "error",
576
577
  "@typescript-eslint/no-var-requires": "error",
578
+ "@typescript-eslint/no-wrapper-object-types": "error",
577
579
  "@typescript-eslint/non-nullable-type-assertion-style": "error",
578
580
  "@typescript-eslint/only-throw-error": "error",
579
581
  "@typescript-eslint/padding-line-between-statements": "off",
@@ -806,7 +808,7 @@ export default tseslint.config(
806
808
  "object",
807
809
  "unknown",
808
810
  ],
809
- "newlines-between": "always",
811
+ newlinesBetween: "always",
810
812
  },
811
813
  ],
812
814
  "perfectionist/sort-interfaces": "error",
@@ -826,7 +828,21 @@ export default tseslint.config(
826
828
  },
827
829
  ],
828
830
  "perfectionist/sort-intersection-types": "error",
831
+ "perfectionist/sort-switch-case": [
832
+ "error",
833
+ {
834
+ type: "alphabetical",
835
+ order: "asc",
836
+ },
837
+ ],
829
838
  "perfectionist/sort-union-types": "error",
839
+ "perfectionist/sort-variable-declarations": [
840
+ "error",
841
+ {
842
+ type: "alphabetical",
843
+ order: "asc",
844
+ },
845
+ ],
830
846
  "perfectionist/sort-vue-attributes": [
831
847
  "error",
832
848
  { groups: ["shorthand", "multiline"] },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "17.2.0",
3
+ "version": "17.4.0",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },
@@ -18,43 +18,43 @@
18
18
  "peerDependencies": {
19
19
  "@eslint/js": "^9.7.0",
20
20
  "@tanstack/eslint-plugin-query": "^5.51.12",
21
- "@typescript-eslint/parser": "^7.16.1",
21
+ "@typescript-eslint/parser": "^7.17.0",
22
22
  "eslint": "^9.7.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.9.0",
27
- "eslint-plugin-perfectionist": "^2.11.0",
27
+ "eslint-plugin-perfectionist": "^3.0.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",
31
31
  "eslint-plugin-sonarjs": "1.0.3",
32
32
  "eslint-plugin-unicorn": "^54.0.0",
33
33
  "prettier": "^3.3.3",
34
- "typescript": "^5.5.3",
35
- "typescript-eslint": "^7.16.1"
34
+ "typescript": "^5.5.4",
35
+ "typescript-eslint": "^7.17.0"
36
36
  },
37
37
  "dependencies": {
38
38
  "@eslint/js": "^9.7.0",
39
39
  "@tanstack/eslint-plugin-query": "^5.51.12",
40
- "@typescript-eslint/parser": "^7.16.1",
40
+ "@typescript-eslint/parser": "^7.17.0",
41
41
  "eslint": "^9.7.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.9.0",
46
- "eslint-plugin-perfectionist": "^2.11.0",
46
+ "eslint-plugin-perfectionist": "^3.0.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",
50
50
  "eslint-plugin-sonarjs": "1.0.3",
51
51
  "eslint-plugin-unicorn": "^54.0.0",
52
52
  "prettier": "^3.3.3",
53
- "typescript": "^5.5.3",
54
- "typescript-eslint": "^7.16.1"
53
+ "typescript": "^5.5.4",
54
+ "typescript-eslint": "^7.17.0"
55
55
  },
56
56
  "devDependencies": {
57
- "@ethang/project-builder": "^1.1.46",
57
+ "@ethang/project-builder": "^1.1.47",
58
58
  "@tsconfig/node-lts": "^20.1.3",
59
59
  "@tsconfig/strictest": "^2.0.5"
60
60
  }