@ethang/eslint-config 17.1.6 → 17.3.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 +16 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
[View Config](https://eslint-config-ethang.pages.dev/rules)
|
|
4
4
|
|
|
5
|
-
*
|
|
5
|
+
* 596 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
8
|
* 105 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)
|
|
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
|
-
*
|
|
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
|
@@ -128,6 +128,7 @@ export default tseslint.config(
|
|
|
128
128
|
"react/jsx-no-undef": "error",
|
|
129
129
|
"react/jsx-no-useless-fragment": "error",
|
|
130
130
|
"react/jsx-pascal-case": "error",
|
|
131
|
+
"react/jsx-props-no-spread-multi": "error",
|
|
131
132
|
"react/jsx-props-no-spreading": "off",
|
|
132
133
|
"react/jsx-sort-default-props": "off",
|
|
133
134
|
"react/jsx-sort-props": "off", // Conflicts with perfectionist/sort-jsx-props
|
|
@@ -805,7 +806,7 @@ export default tseslint.config(
|
|
|
805
806
|
"object",
|
|
806
807
|
"unknown",
|
|
807
808
|
],
|
|
808
|
-
|
|
809
|
+
newlinesBetween: "always",
|
|
809
810
|
},
|
|
810
811
|
],
|
|
811
812
|
"perfectionist/sort-interfaces": "error",
|
|
@@ -825,7 +826,21 @@ export default tseslint.config(
|
|
|
825
826
|
},
|
|
826
827
|
],
|
|
827
828
|
"perfectionist/sort-intersection-types": "error",
|
|
829
|
+
"perfectionist/sort-switch-case": [
|
|
830
|
+
"error",
|
|
831
|
+
{
|
|
832
|
+
type: "alphabetical",
|
|
833
|
+
order: "asc",
|
|
834
|
+
},
|
|
835
|
+
],
|
|
828
836
|
"perfectionist/sort-union-types": "error",
|
|
837
|
+
"perfectionist/sort-variable-declarations": [
|
|
838
|
+
"error",
|
|
839
|
+
{
|
|
840
|
+
type: "alphabetical",
|
|
841
|
+
order: "asc",
|
|
842
|
+
},
|
|
843
|
+
],
|
|
829
844
|
"perfectionist/sort-vue-attributes": [
|
|
830
845
|
"error",
|
|
831
846
|
{ groups: ["shorthand", "multiline"] },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethang/eslint-config",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.3.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://github.com/eglove/eslint-config-ethang.git"
|
|
6
6
|
},
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"license": "ISC",
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"@eslint/js": "^9.7.0",
|
|
20
|
-
"@tanstack/eslint-plugin-query": "^5.51.
|
|
20
|
+
"@tanstack/eslint-plugin-query": "^5.51.12",
|
|
21
21
|
"@typescript-eslint/parser": "^7.16.1",
|
|
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": "^
|
|
27
|
+
"eslint-plugin-perfectionist": "^3.0.0",
|
|
28
28
|
"eslint-plugin-prettier": "^5.2.1",
|
|
29
|
-
"eslint-plugin-react": "^7.
|
|
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",
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@eslint/js": "^9.7.0",
|
|
39
|
-
"@tanstack/eslint-plugin-query": "^5.51.
|
|
39
|
+
"@tanstack/eslint-plugin-query": "^5.51.12",
|
|
40
40
|
"@typescript-eslint/parser": "^7.16.1",
|
|
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": "^
|
|
46
|
+
"eslint-plugin-perfectionist": "^3.0.0",
|
|
47
47
|
"eslint-plugin-prettier": "^5.2.1",
|
|
48
|
-
"eslint-plugin-react": "^7.
|
|
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",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"typescript-eslint": "^7.16.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@ethang/project-builder": "^1.1.
|
|
57
|
+
"@ethang/project-builder": "^1.1.46",
|
|
58
58
|
"@tsconfig/node-lts": "^20.1.3",
|
|
59
59
|
"@tsconfig/strictest": "^2.0.5"
|
|
60
60
|
}
|