@ethang/eslint-config 19.6.5 → 19.6.7
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 -3
- package/build/rule-list.ts +7 -18
- package/eslint.config.js +1 -4
- package/package.json +3 -5
- package/setup/typescript-eslint.ts +4 -0
- package/setup/ethang.ts +0 -7
package/README.md
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
> [!CAUTION]
|
|
6
6
|
> Do not use this with Prettier! Styling rules are included.
|
|
7
7
|
|
|
8
|
-
-
|
|
8
|
+
- 887 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
|
- 145 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)
|
|
12
|
-
-
|
|
12
|
+
- 103 rules from [@typescript/eslint](https://github.com/typescript-eslint/typescript-eslint)
|
|
13
13
|
- 91 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
|
- 35 rules from [jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y)
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
- 1 rule from [eslint-plugin-depend](https://github.com/es-tooling/eslint-plugin-depend/tree/main)
|
|
24
24
|
- 1 rule from [@cspell/eslint-plugin](https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-eslint-plugin)
|
|
25
25
|
- 1 rule from [eslint-plugin-compat](https://github.com/amilajack/eslint-plugin-compat)
|
|
26
|
-
- 1 rule from [@ethang/eslint-plugin](https://github.com/eglove/eslint-plugin)
|
|
27
26
|
- 1 rule from [@tanstack/eslint-plugin-router](https://tanstack.com/router/latest/docs/eslint/eslint-plugin-router)
|
|
28
27
|
|
|
29
28
|
# Add Even More!
|
package/build/rule-list.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { compatRules } from "../setup/compat.ts";
|
|
|
5
5
|
import { dependRules } from "../setup/depend.ts";
|
|
6
6
|
import { deprecatedRules } from "../setup/deprecated.ts";
|
|
7
7
|
import { eslintRules } from "../setup/eslint.ts";
|
|
8
|
-
import { ethangRules } from "../setup/ethang.ts";
|
|
9
8
|
import { jsonRules } from "../setup/json.ts";
|
|
10
9
|
import { lodashRules } from "../setup/lodash.ts";
|
|
11
10
|
import { markdownRules } from "../setup/markdown.ts";
|
|
@@ -113,21 +112,11 @@ export const ruleList = [
|
|
|
113
112
|
type: "core",
|
|
114
113
|
url: "https://github.com/SonarSource/SonarJS/blob/master/packages/jsts/src/rules/README.md",
|
|
115
114
|
},
|
|
116
|
-
{
|
|
117
|
-
importString: 'import ethang from "@ethang/eslint-plugin";',
|
|
118
|
-
list: ethangRules,
|
|
119
|
-
name: "@ethang/eslint-plugin",
|
|
120
|
-
order: 9,
|
|
121
|
-
pluginName: "ethang",
|
|
122
|
-
pluginValue: "ethang",
|
|
123
|
-
type: "core",
|
|
124
|
-
url: "https://github.com/eglove/eslint-plugin",
|
|
125
|
-
},
|
|
126
115
|
{
|
|
127
116
|
importString: 'import tailwind from "eslint-plugin-tailwindcss";',
|
|
128
117
|
list: tailwindRules,
|
|
129
118
|
name: "eslint-plugin-tailwindcss",
|
|
130
|
-
order:
|
|
119
|
+
order: 9,
|
|
131
120
|
pluginName: "tailwind",
|
|
132
121
|
pluginValue: "tailwind",
|
|
133
122
|
type: "core",
|
|
@@ -137,7 +126,7 @@ export const ruleList = [
|
|
|
137
126
|
importString: 'import stylistic from "@stylistic/eslint-plugin";',
|
|
138
127
|
list: stylisticRules,
|
|
139
128
|
name: "@stylistic/eslint-plugin",
|
|
140
|
-
order:
|
|
129
|
+
order: 10,
|
|
141
130
|
pluginName: "stylistic",
|
|
142
131
|
pluginValue: "stylistic",
|
|
143
132
|
type: "core",
|
|
@@ -147,7 +136,7 @@ export const ruleList = [
|
|
|
147
136
|
importString: 'import perfectionist from "eslint-plugin-perfectionist";',
|
|
148
137
|
list: perfectionistRules,
|
|
149
138
|
name: "eslint-plugin-perfectionist",
|
|
150
|
-
order:
|
|
139
|
+
order: 11,
|
|
151
140
|
pluginName: "perfectionist",
|
|
152
141
|
pluginValue: "perfectionist",
|
|
153
142
|
type: "core",
|
|
@@ -157,7 +146,7 @@ export const ruleList = [
|
|
|
157
146
|
importString: 'import tanstackQuery from "@tanstack/eslint-plugin-query";',
|
|
158
147
|
list: tanstackQueryRules,
|
|
159
148
|
name: "@tanstack/eslint-plugin-query",
|
|
160
|
-
order:
|
|
149
|
+
order: 12,
|
|
161
150
|
pluginName: "@tanstack/query",
|
|
162
151
|
pluginValue: "tanstackQuery",
|
|
163
152
|
type: "core",
|
|
@@ -168,7 +157,7 @@ export const ruleList = [
|
|
|
168
157
|
'import tanstackRouter from "@tanstack/eslint-plugin-router";',
|
|
169
158
|
list: tanstackRouterRules,
|
|
170
159
|
name: "@tanstack/eslint-plugin-router",
|
|
171
|
-
order:
|
|
160
|
+
order: 13,
|
|
172
161
|
pluginName: "@tanstack/router",
|
|
173
162
|
pluginValue: "tanstackRouter",
|
|
174
163
|
type: "core",
|
|
@@ -178,7 +167,7 @@ export const ruleList = [
|
|
|
178
167
|
importString: 'import a11y from "eslint-plugin-jsx-a11y/lib/index.js";',
|
|
179
168
|
list: a11yRules,
|
|
180
169
|
name: "jsx-a11y",
|
|
181
|
-
order:
|
|
170
|
+
order: 14,
|
|
182
171
|
pluginName: "a11y",
|
|
183
172
|
pluginValue: "a11y",
|
|
184
173
|
type: "core",
|
|
@@ -188,7 +177,7 @@ export const ruleList = [
|
|
|
188
177
|
importString: undefined,
|
|
189
178
|
list: deprecatedRules,
|
|
190
179
|
name: "@eslint/js",
|
|
191
|
-
order:
|
|
180
|
+
order: 15,
|
|
192
181
|
pluginName: undefined,
|
|
193
182
|
pluginValue: undefined,
|
|
194
183
|
type: "core",
|
package/eslint.config.js
CHANGED
|
@@ -5,7 +5,6 @@ import barrel from "eslint-plugin-barrel-files";
|
|
|
5
5
|
import compat from "eslint-plugin-compat";
|
|
6
6
|
import cspell from "@cspell/eslint-plugin";
|
|
7
7
|
import depend from "eslint-plugin-depend";
|
|
8
|
-
import ethang from "@ethang/eslint-plugin";
|
|
9
8
|
import json from "@eslint/json";
|
|
10
9
|
import lodashConfig from "eslint-plugin-lodash";
|
|
11
10
|
import markdown from "@eslint/markdown";
|
|
@@ -37,7 +36,6 @@ export default tseslint.config(
|
|
|
37
36
|
unicorn: unicorn,
|
|
38
37
|
lodash: lodashConfig,
|
|
39
38
|
sonar: fixupPluginRules(sonar),
|
|
40
|
-
ethang: ethang,
|
|
41
39
|
tailwind: tailwind,
|
|
42
40
|
stylistic: stylistic,
|
|
43
41
|
perfectionist: perfectionist,
|
|
@@ -401,7 +399,7 @@ export default tseslint.config(
|
|
|
401
399
|
"@typescript-eslint/no-unnecessary-type-arguments": "error",
|
|
402
400
|
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
|
403
401
|
"@typescript-eslint/no-unnecessary-type-constraint": "error",
|
|
404
|
-
"@typescript-eslint/no-unnecessary-type-parameters": "
|
|
402
|
+
"@typescript-eslint/no-unnecessary-type-parameters": "off",
|
|
405
403
|
"@typescript-eslint/no-unsafe-argument": "error",
|
|
406
404
|
"@typescript-eslint/no-unsafe-assignment": "error",
|
|
407
405
|
"@typescript-eslint/no-unsafe-call": "error",
|
|
@@ -932,7 +930,6 @@ export default tseslint.config(
|
|
|
932
930
|
"sonar/weak-ssl": "error",
|
|
933
931
|
"sonar/x-powered-by": "error",
|
|
934
932
|
"sonar/xml-parser-xxe": "error",
|
|
935
|
-
"ethang/handle-native-error": "error",
|
|
936
933
|
"tailwind/classnames-order": "error",
|
|
937
934
|
"tailwind/enforces-negative-arbitrary-values": "error",
|
|
938
935
|
"tailwind/enforces-shorthand": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethang/eslint-config",
|
|
3
|
-
"version": "19.6.
|
|
3
|
+
"version": "19.6.7",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://github.com/eglove/eslint-config-ethang.git"
|
|
6
6
|
},
|
|
@@ -19,10 +19,9 @@
|
|
|
19
19
|
"@eslint/js": "^9.11.0",
|
|
20
20
|
"@eslint/json": "^0.4.0",
|
|
21
21
|
"@eslint/markdown": "^6.1.0",
|
|
22
|
-
"@ethang/eslint-plugin": "^0.0.11",
|
|
23
22
|
"@stylistic/eslint-plugin": "^2.8.0",
|
|
24
23
|
"@tanstack/eslint-plugin-query": "^5.57.0",
|
|
25
|
-
"@tanstack/eslint-plugin-router": "^1.58.
|
|
24
|
+
"@tanstack/eslint-plugin-router": "^1.58.6",
|
|
26
25
|
"@typescript-eslint/parser": "^8.6.0",
|
|
27
26
|
"eslint": "^9.11.0",
|
|
28
27
|
"eslint-plugin-astro": "^1.2.4",
|
|
@@ -59,10 +58,9 @@
|
|
|
59
58
|
"@eslint/js": "^9.11.0",
|
|
60
59
|
"@eslint/json": "^0.4.0",
|
|
61
60
|
"@eslint/markdown": "^6.1.0",
|
|
62
|
-
"@ethang/eslint-plugin": "^0.0.11",
|
|
63
61
|
"@stylistic/eslint-plugin": "^2.8.0",
|
|
64
62
|
"@tanstack/eslint-plugin-query": "^5.57.0",
|
|
65
|
-
"@tanstack/eslint-plugin-router": "^1.58.
|
|
63
|
+
"@tanstack/eslint-plugin-router": "^1.58.6",
|
|
66
64
|
"@typescript-eslint/parser": "^8.6.0",
|
|
67
65
|
"eslint": "^9.11.0",
|
|
68
66
|
"eslint-plugin-astro": "^1.2.4",
|