@ethang/eslint-config 19.12.3 → 19.13.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
@@ -5,7 +5,7 @@
5
5
  > [!CAUTION]
6
6
  > Do not use this with Prettier! Styling rules are included.
7
7
 
8
- - 885 errored rules.
8
+ - 882 errored rules.
9
9
  - 294 rules from [eslint-plugin-sonarjs](https://github.com/SonarSource/SonarJS/blob/master/packages/jsts/src/rules/README.md)
10
10
  - 144 rules from [@eslint/js](https://github.com/eslint/eslint/tree/main/packages/js)
11
11
  - 116 rules from [sindresorhus/eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
@@ -15,7 +15,7 @@
15
15
  - 32 rules from [eslint-plugin-lodash](https://github.com/wix-incubator/eslint-plugin-lodash)
16
16
  - 25 rules from [@stylistic/eslint-plugin-ts](https://eslint.style/)
17
17
  - 20 rules from [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n)
18
- - 20 rules from [eslint-plugin-perfectionist](https://github.com/azat-io/eslint-plugin-perfectionist)
18
+ - 17 rules from [eslint-plugin-perfectionist](https://github.com/azat-io/eslint-plugin-perfectionist)
19
19
  - 7 rules from [eslint-plugin-tailwindcss](https://github.com/francoismassart/eslint-plugin-tailwindcss)
20
20
  - 7 rules from [@eslint/markdown](https://github.com/eslint/markdown)
21
21
  - 5 rules from [@tanstack/eslint-plugin-query](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query)
@@ -28,9 +28,9 @@
28
28
 
29
29
  # Add Even More!
30
30
 
31
- - 51 rules for **Astro**
31
+ - 52 rules for **Astro**
32
32
  - `import astroConfig from "@ethang/eslint-config/config.astro.js";`
33
- - 51 rules from [eslint-plugin-astro](https://github.com/ota-meshi/eslint-plugin-astro)
33
+ - 52 rules from [eslint-plugin-astro](https://github.com/ota-meshi/eslint-plugin-astro)
34
34
  - 73 rules for **React**
35
35
  - `import reactConfig from "@ethang/eslint-config/config.react.js";`
36
36
  - 71 rules from [@eslint-react/eslint-plugin](https://eslint-react.xyz/)
package/config.astro.js CHANGED
@@ -61,6 +61,7 @@ export default tseslint.config({
61
61
  "astro/prefer-object-class-list": "error",
62
62
  "astro/prefer-split-class-list": "error",
63
63
  "astro/semi": "error",
64
+ "astro/sort-attributes": "error",
64
65
  "astro/valid-compile": "error",
65
66
  },
66
67
  });
package/eslint.config.js CHANGED
@@ -1111,10 +1111,6 @@ export default tseslint.config(
1111
1111
  "stylistic-ts/space-infix-ops": "error",
1112
1112
  "stylistic-ts/type-annotation-spacing": "error",
1113
1113
  "perfectionist/sort-array-includes": "error",
1114
- "perfectionist/sort-astro-attributes": [
1115
- "error",
1116
- { groups: ["astro-shorthand", "shorthand", "multiline"] },
1117
- ],
1118
1114
  "perfectionist/sort-classes": "error",
1119
1115
  "perfectionist/sort-enums": "error",
1120
1116
  "perfectionist/sort-exports": "error",
@@ -1146,10 +1142,6 @@ export default tseslint.config(
1146
1142
  "perfectionist/sort-object-types": "error",
1147
1143
  "perfectionist/sort-objects": ["error", { partitionByComment: true }],
1148
1144
  "perfectionist/sort-sets": "error",
1149
- "perfectionist/sort-svelte-attributes": [
1150
- "error",
1151
- { groups: ["svelte-shorthand", "shorthand", "multiline"] },
1152
- ],
1153
1145
  "perfectionist/sort-switch-case": [
1154
1146
  "error",
1155
1147
  { order: "asc", type: "alphabetical" },
@@ -1159,10 +1151,6 @@ export default tseslint.config(
1159
1151
  "error",
1160
1152
  { order: "asc", type: "alphabetical" },
1161
1153
  ],
1162
- "perfectionist/sort-vue-attributes": [
1163
- "error",
1164
- { groups: ["shorthand", "multiline"] },
1165
- ],
1166
1154
  "@tanstack/query/exhaustive-deps": "error",
1167
1155
  "@tanstack/query/infinite-query-property-order": "error",
1168
1156
  "@tanstack/query/no-rest-destructuring": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "19.12.3",
3
+ "version": "19.13.1",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },
@@ -13,7 +13,7 @@
13
13
  "lint": "prettier . -w"
14
14
  },
15
15
  "dependencies": {
16
- "@cspell/eslint-plugin": "^8.15.2",
16
+ "@cspell/eslint-plugin": "^8.15.3",
17
17
  "@eslint-react/eslint-plugin": "^1.15.0",
18
18
  "@eslint/compat": "^1.2.0",
19
19
  "@eslint/js": "^9.12.0",
@@ -22,17 +22,17 @@
22
22
  "@stylistic/eslint-plugin": "^2.9.0",
23
23
  "@stylistic/eslint-plugin-ts": "^2.9.0",
24
24
  "@tanstack/eslint-plugin-query": "^5.59.7",
25
- "@tanstack/eslint-plugin-router": "^1.66.1",
25
+ "@tanstack/eslint-plugin-router": "^1.70.0",
26
26
  "@typescript-eslint/parser": "^8.9.0",
27
27
  "eslint": "^9.12.0",
28
- "eslint-plugin-astro": "^1.2.4",
28
+ "eslint-plugin-astro": "^1.3.0",
29
29
  "eslint-plugin-barrel-files": "^2.1.0",
30
30
  "eslint-plugin-compat": "^6.0.1",
31
31
  "eslint-plugin-depend": "^0.11.0",
32
32
  "eslint-plugin-jsx-a11y": "^6.10.0",
33
33
  "eslint-plugin-lodash": "^8.0.0",
34
34
  "eslint-plugin-n": "^17.11.1",
35
- "eslint-plugin-perfectionist": "^3.8.0",
35
+ "eslint-plugin-perfectionist": "^3.9.0",
36
36
  "eslint-plugin-react-hooks": "^5.0.0",
37
37
  "eslint-plugin-solid": "^0.14.3",
38
38
  "eslint-plugin-sonarjs": "2.0.3",
@@ -53,7 +53,7 @@
53
53
  "prettier": "^3.3.3"
54
54
  },
55
55
  "peerDependencies": {
56
- "@cspell/eslint-plugin": "^8.15.2",
56
+ "@cspell/eslint-plugin": "^8.15.3",
57
57
  "@eslint-react/eslint-plugin": "^1.15.0",
58
58
  "@eslint/compat": "^1.2.0",
59
59
  "@eslint/js": "^9.12.0",
@@ -62,17 +62,17 @@
62
62
  "@stylistic/eslint-plugin": "^2.9.0",
63
63
  "@stylistic/eslint-plugin-ts": "^2.9.0",
64
64
  "@tanstack/eslint-plugin-query": "^5.59.7",
65
- "@tanstack/eslint-plugin-router": "^1.66.1",
65
+ "@tanstack/eslint-plugin-router": "^1.70.0",
66
66
  "@typescript-eslint/parser": "^8.9.0",
67
67
  "eslint": "^9.12.0",
68
- "eslint-plugin-astro": "^1.2.4",
68
+ "eslint-plugin-astro": "^1.3.0",
69
69
  "eslint-plugin-barrel-files": "^2.1.0",
70
70
  "eslint-plugin-compat": "^6.0.1",
71
71
  "eslint-plugin-depend": "^0.11.0",
72
72
  "eslint-plugin-jsx-a11y": "^6.10.0",
73
73
  "eslint-plugin-lodash": "^8.0.0",
74
74
  "eslint-plugin-n": "^17.11.1",
75
- "eslint-plugin-perfectionist": "^3.8.0",
75
+ "eslint-plugin-perfectionist": "^3.9.0",
76
76
  "eslint-plugin-react-hooks": "^5.0.0",
77
77
  "eslint-plugin-solid": "^0.14.3",
78
78
  "eslint-plugin-sonarjs": "2.0.3",
@@ -6,15 +6,6 @@ const ruleNames = Object.keys(
6
6
  getNonDeprecatedRules(perfectionist.rules as unknown as EsLintRules),
7
7
  );
8
8
  const customRules = [
9
- {
10
- name: "sort-astro-attributes",
11
- rule: [
12
- "error",
13
- {
14
- groups: ["astro-shorthand", "shorthand", "multiline"],
15
- },
16
- ],
17
- },
18
9
  {
19
10
  name: "sort-imports",
20
11
  rule: [
@@ -42,15 +33,6 @@ const customRules = [
42
33
  name: "sort-objects",
43
34
  rule: ["error", { partitionByComment: true }],
44
35
  },
45
- {
46
- name: "sort-svelte-attributes",
47
- rule: [
48
- "error",
49
- {
50
- groups: ["svelte-shorthand", "shorthand", "multiline"],
51
- },
52
- ],
53
- },
54
36
  {
55
37
  name: "sort-switch-case",
56
38
  rule: [
@@ -71,10 +53,6 @@ const customRules = [
71
53
  },
72
54
  ],
73
55
  },
74
- {
75
- name: "sort-vue-attributes",
76
- rule: ["error", { groups: ["shorthand", "multiline"] }],
77
- },
78
56
  ];
79
57
 
80
58
  export const perfectionistRules = genRules(