@ethang/eslint-config 19.10.3 → 19.11.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 +2 -2
- package/eslint.config.js +5 -1
- package/package.json +13 -13
- package/setup/stylistic.ts +4 -0
package/README.md
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
> [!CAUTION]
|
|
6
6
|
> Do not use this with Prettier! Styling rules are included.
|
|
7
7
|
|
|
8
|
-
-
|
|
8
|
+
- 895 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)
|
|
12
12
|
- 103 rules from [@typescript/eslint](https://github.com/typescript-eslint/typescript-eslint)
|
|
13
|
-
-
|
|
13
|
+
- 68 rules from [@stylistic/eslint-plugin](https://eslint.style/)
|
|
14
14
|
- 42 rules from [eslint-plugin-lodash](https://github.com/wix-incubator/eslint-plugin-lodash)
|
|
15
15
|
- 34 rules from [jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y)
|
|
16
16
|
- 25 rules from [@stylistic/eslint-plugin-ts](https://eslint.style/)
|
package/eslint.config.js
CHANGED
|
@@ -963,6 +963,7 @@ export default tseslint.config(
|
|
|
963
963
|
"stylistic/comma-spacing": "off",
|
|
964
964
|
"stylistic/comma-style": "error",
|
|
965
965
|
"stylistic/computed-property-spacing": "error",
|
|
966
|
+
"stylistic/curly-newline": "error",
|
|
966
967
|
"stylistic/dot-location": ["error", "property"],
|
|
967
968
|
"stylistic/eol-last": "error",
|
|
968
969
|
"stylistic/func-call-spacing": "off",
|
|
@@ -1026,7 +1027,10 @@ export default tseslint.config(
|
|
|
1026
1027
|
"stylistic/no-mixed-operators": "error",
|
|
1027
1028
|
"stylistic/no-mixed-spaces-and-tabs": "error",
|
|
1028
1029
|
"stylistic/no-multi-spaces": "error",
|
|
1029
|
-
"stylistic/no-multiple-empty-lines":
|
|
1030
|
+
"stylistic/no-multiple-empty-lines": [
|
|
1031
|
+
"error",
|
|
1032
|
+
{ max: 1, maxEOF: 1, maxBOF: 0 },
|
|
1033
|
+
],
|
|
1030
1034
|
"stylistic/no-tabs": "error",
|
|
1031
1035
|
"stylistic/no-trailing-spaces": "error",
|
|
1032
1036
|
"stylistic/no-whitespace-before-property": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethang/eslint-config",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.11.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://github.com/eglove/eslint-config-ethang.git"
|
|
6
6
|
},
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"@eslint/js": "^9.12.0",
|
|
20
20
|
"@eslint/json": "^0.5.0",
|
|
21
21
|
"@eslint/markdown": "^6.2.0",
|
|
22
|
-
"@stylistic/eslint-plugin": "^2.
|
|
23
|
-
"@stylistic/eslint-plugin-ts": "^2.
|
|
22
|
+
"@stylistic/eslint-plugin": "^2.9.0",
|
|
23
|
+
"@stylistic/eslint-plugin-ts": "^2.9.0",
|
|
24
24
|
"@tanstack/eslint-plugin-query": "^5.59.1",
|
|
25
|
-
"@tanstack/eslint-plugin-router": "^1.
|
|
26
|
-
"@typescript-eslint/parser": "^8.8.
|
|
25
|
+
"@tanstack/eslint-plugin-router": "^1.62.0",
|
|
26
|
+
"@typescript-eslint/parser": "^8.8.1",
|
|
27
27
|
"eslint": "^9.12.0",
|
|
28
28
|
"eslint-plugin-astro": "^1.2.4",
|
|
29
29
|
"eslint-plugin-barrel-files": "^2.1.0",
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"eslint-plugin-tailwindcss": "^3.17.4",
|
|
40
40
|
"eslint-plugin-unicorn": "^56.0.0",
|
|
41
41
|
"typescript": "^5.6.2",
|
|
42
|
-
"typescript-eslint": "^8.8.
|
|
42
|
+
"typescript-eslint": "^8.8.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@ethang/markdown-generator": "^1.1.1",
|
|
46
|
-
"@ethang/project-builder": "^3.0.
|
|
46
|
+
"@ethang/project-builder": "^3.0.1",
|
|
47
47
|
"@tsconfig/node-lts": "^20.1.3",
|
|
48
48
|
"@tsconfig/strictest": "^2.0.5",
|
|
49
49
|
"@types/eslint-plugin-jsx-a11y": "^6.9.0",
|
|
50
50
|
"@types/eslint-plugin-tailwindcss": "^3.17.0",
|
|
51
51
|
"@types/eslint__js": "^8.42.3",
|
|
52
|
-
"@types/node": "^22.7.
|
|
52
|
+
"@types/node": "^22.7.5",
|
|
53
53
|
"prettier": "^3.3.3"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"@eslint/js": "^9.12.0",
|
|
60
60
|
"@eslint/json": "^0.5.0",
|
|
61
61
|
"@eslint/markdown": "^6.2.0",
|
|
62
|
-
"@stylistic/eslint-plugin": "^2.
|
|
63
|
-
"@stylistic/eslint-plugin-ts": "^2.
|
|
62
|
+
"@stylistic/eslint-plugin": "^2.9.0",
|
|
63
|
+
"@stylistic/eslint-plugin-ts": "^2.9.0",
|
|
64
64
|
"@tanstack/eslint-plugin-query": "^5.59.1",
|
|
65
|
-
"@tanstack/eslint-plugin-router": "^1.
|
|
66
|
-
"@typescript-eslint/parser": "^8.8.
|
|
65
|
+
"@tanstack/eslint-plugin-router": "^1.62.0",
|
|
66
|
+
"@typescript-eslint/parser": "^8.8.1",
|
|
67
67
|
"eslint": "^9.12.0",
|
|
68
68
|
"eslint-plugin-astro": "^1.2.4",
|
|
69
69
|
"eslint-plugin-barrel-files": "^2.1.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"eslint-plugin-tailwindcss": "^3.17.4",
|
|
80
80
|
"eslint-plugin-unicorn": "^56.0.0",
|
|
81
81
|
"typescript": "^5.6.2",
|
|
82
|
-
"typescript-eslint": "^8.8.
|
|
82
|
+
"typescript-eslint": "^8.8.1"
|
|
83
83
|
},
|
|
84
84
|
"engines": {
|
|
85
85
|
"node": ">=20"
|
package/setup/stylistic.ts
CHANGED
|
@@ -51,6 +51,10 @@ const customRules = [
|
|
|
51
51
|
],
|
|
52
52
|
},
|
|
53
53
|
{ name: "multiline-comment-style", rule: "off" },
|
|
54
|
+
{
|
|
55
|
+
name: "no-multiple-empty-lines",
|
|
56
|
+
rule: ["error", { max: 1, maxEOF: 1, maxBOF: 0 }],
|
|
57
|
+
},
|
|
54
58
|
{ name: "padded-blocks", rule: ["error", "never"] },
|
|
55
59
|
{ name: "jsx-indent-props", rule: ["error", 2] },
|
|
56
60
|
{ name: "jsx-newline", rule: ["error", { prevent: true }] },
|