@ethang/eslint-config 19.2.7 → 19.2.8
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 -1
- package/build/update-readme.js +6 -0
- package/build/update-rules.js +4 -0
- package/eslint.config.js +3 -0
- package/package.json +6 -4
- package/setup/ethang.js +6 -0
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
|
-
-
|
|
8
|
+
- 884 errored rules.
|
|
9
9
|
- 289 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
|
- 113 rules from [sindresorhus/eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
- 2 rules from [@eslint/json](https://github.com/eslint/json)
|
|
23
23
|
- 1 rule from [eslint-plugin-depend](https://github.com/es-tooling/eslint-plugin-depend/tree/main)
|
|
24
24
|
- 1 rule from [eslint-plugin-compat](https://github.com/amilajack/eslint-plugin-compat)
|
|
25
|
+
- 1 rule from [@ethang/eslint-plugin](https://github.com/eglove/eslint-plugin)
|
|
25
26
|
|
|
26
27
|
# Add Even More!
|
|
27
28
|
|
package/build/update-readme.js
CHANGED
|
@@ -20,6 +20,7 @@ import { jsonRules } from "../setup/json.js";
|
|
|
20
20
|
import { astroRules } from "../setup/astro.js";
|
|
21
21
|
import { reactRules } from "../setup/react.js";
|
|
22
22
|
import { solidRules } from "../setup/solid.js";
|
|
23
|
+
import { ethangRules } from "../setup/ethang.js";
|
|
23
24
|
|
|
24
25
|
export const updateReadme = () => {
|
|
25
26
|
const md = new MarkdownGenerator();
|
|
@@ -123,6 +124,11 @@ export const updateReadme = () => {
|
|
|
123
124
|
name: "@eslint/json",
|
|
124
125
|
url: "https://github.com/eslint/json",
|
|
125
126
|
},
|
|
127
|
+
{
|
|
128
|
+
list: ethangRules,
|
|
129
|
+
name: "@ethang/eslint-plugin",
|
|
130
|
+
url: "https://github.com/eglove/eslint-plugin",
|
|
131
|
+
},
|
|
126
132
|
];
|
|
127
133
|
|
|
128
134
|
let total = 0;
|
package/build/update-rules.js
CHANGED
|
@@ -18,6 +18,7 @@ import { deprecatedRules } from "../setup/deprecated.js";
|
|
|
18
18
|
import { markdownRules } from "../setup/markdown.js";
|
|
19
19
|
import { jsonRules } from "../setup/json.js";
|
|
20
20
|
import { getLatestReact } from "./get-react-version.mjs";
|
|
21
|
+
import { ethangRules } from "../setup/ethang.js";
|
|
21
22
|
|
|
22
23
|
export const updateRules = async () => {
|
|
23
24
|
let configFile = "";
|
|
@@ -36,6 +37,7 @@ export const updateRules = async () => {
|
|
|
36
37
|
...unicornRules,
|
|
37
38
|
...lodashRules,
|
|
38
39
|
...sonarRules,
|
|
40
|
+
...ethangRules,
|
|
39
41
|
...tanstackQueryRules,
|
|
40
42
|
...tailwindRules,
|
|
41
43
|
...stylisticRules,
|
|
@@ -66,6 +68,7 @@ export const updateRules = async () => {
|
|
|
66
68
|
'import markdown from "@eslint/markdown";',
|
|
67
69
|
'import json from "@eslint/json";',
|
|
68
70
|
'import { ignores } from "./constants.js";',
|
|
71
|
+
'import ethang from "@ethang/eslint-plugin";',
|
|
69
72
|
].sort((a, b) => {
|
|
70
73
|
return a.localeCompare(b);
|
|
71
74
|
});
|
|
@@ -97,6 +100,7 @@ export default tseslint.config(
|
|
|
97
100
|
barrel,
|
|
98
101
|
compat,
|
|
99
102
|
depend,
|
|
103
|
+
ethang,
|
|
100
104
|
lodash: lodashConfig,
|
|
101
105
|
n,
|
|
102
106
|
perfectionist,
|
package/eslint.config.js
CHANGED
|
@@ -3,6 +3,7 @@ import a11y from "eslint-plugin-jsx-a11y/lib/index.js";
|
|
|
3
3
|
import barrel from "eslint-plugin-barrel-files";
|
|
4
4
|
import compat from "eslint-plugin-compat";
|
|
5
5
|
import depend from "eslint-plugin-depend";
|
|
6
|
+
import ethang from "@ethang/eslint-plugin";
|
|
6
7
|
import json from "@eslint/json";
|
|
7
8
|
import lodashConfig from "eslint-plugin-lodash";
|
|
8
9
|
import markdown from "@eslint/markdown";
|
|
@@ -39,6 +40,7 @@ export default tseslint.config(
|
|
|
39
40
|
barrel,
|
|
40
41
|
compat,
|
|
41
42
|
depend,
|
|
43
|
+
ethang,
|
|
42
44
|
lodash: lodashConfig,
|
|
43
45
|
n,
|
|
44
46
|
perfectionist,
|
|
@@ -938,6 +940,7 @@ export default tseslint.config(
|
|
|
938
940
|
"sonar/x-powered-by": "error",
|
|
939
941
|
"sonar/xml-parser-xxe": "error",
|
|
940
942
|
"sonar/xpath": "off",
|
|
943
|
+
"ethang/handle-native-error": "error",
|
|
941
944
|
"@tanstack/query/exhaustive-deps": "error",
|
|
942
945
|
"@tanstack/query/stable-query-client": "error",
|
|
943
946
|
"@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.2.
|
|
3
|
+
"version": "19.2.8",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://github.com/eglove/eslint-config-ethang.git"
|
|
6
6
|
},
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"@eslint/js": "^9.9.1",
|
|
18
18
|
"@eslint/json": "^0.4.0",
|
|
19
19
|
"@eslint/markdown": "^6.0.0",
|
|
20
|
+
"@ethang/eslint-plugin": "^0.0.6",
|
|
20
21
|
"@stylistic/eslint-plugin": "^2.7.2",
|
|
21
22
|
"@tanstack/eslint-plugin-query": "^5.53.0",
|
|
22
23
|
"@typescript-eslint/parser": "^8.3.0",
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
"eslint-plugin-n": "^17.10.2",
|
|
31
32
|
"eslint-plugin-perfectionist": "^3.3.0",
|
|
32
33
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
33
|
-
"eslint-plugin-solid": "^0.14.
|
|
34
|
+
"eslint-plugin-solid": "^0.14.3",
|
|
34
35
|
"eslint-plugin-sonarjs": "2.0.2",
|
|
35
36
|
"eslint-plugin-tailwindcss": "^3.17.4",
|
|
36
37
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"@ethang/markdown-generator": "^1.1.1",
|
|
42
|
-
"@ethang/project-builder": "^2.5.
|
|
43
|
+
"@ethang/project-builder": "^2.5.8",
|
|
43
44
|
"@tsconfig/node-lts": "^20.1.3",
|
|
44
45
|
"@tsconfig/strictest": "^2.0.5",
|
|
45
46
|
"prettier": "^3.3.3"
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
"@eslint/js": "^9.9.1",
|
|
50
51
|
"@eslint/json": "^0.4.0",
|
|
51
52
|
"@eslint/markdown": "^6.0.0",
|
|
53
|
+
"@ethang/eslint-plugin": "^0.0.6",
|
|
52
54
|
"@stylistic/eslint-plugin": "^2.7.2",
|
|
53
55
|
"@tanstack/eslint-plugin-query": "^5.53.0",
|
|
54
56
|
"@typescript-eslint/parser": "^8.3.0",
|
|
@@ -62,7 +64,7 @@
|
|
|
62
64
|
"eslint-plugin-n": "^17.10.2",
|
|
63
65
|
"eslint-plugin-perfectionist": "^3.3.0",
|
|
64
66
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
65
|
-
"eslint-plugin-solid": "^0.14.
|
|
67
|
+
"eslint-plugin-solid": "^0.14.3",
|
|
66
68
|
"eslint-plugin-sonarjs": "2.0.2",
|
|
67
69
|
"eslint-plugin-tailwindcss": "^3.17.4",
|
|
68
70
|
"eslint-plugin-unicorn": "^55.0.0",
|