@ethang/eslint-config 19.6.3 → 19.6.4
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/build/rule-list.ts +13 -13
- package/eslint.config.js +6 -5
- package/package.json +3 -3
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
|
+
- 889 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)
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
- 20 rules from [eslint-plugin-perfectionist](https://github.com/azat-io/eslint-plugin-perfectionist)
|
|
18
18
|
- 7 rules from [eslint-plugin-tailwindcss](https://github.com/francoismassart/eslint-plugin-tailwindcss)
|
|
19
19
|
- 7 rules from [@eslint/markdown](https://github.com/eslint/markdown)
|
|
20
|
+
- 5 rules from [@tanstack/eslint-plugin-query](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query)
|
|
20
21
|
- 4 rules from [eslint-plugin-barrel-files](https://github.com/thepassle/eslint-plugin-barrel-files)
|
|
21
|
-
- 4 rules from [@tanstack/eslint-plugin-query](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query)
|
|
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 [@cspell/eslint-plugin](https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-eslint-plugin)
|
package/build/rule-list.ts
CHANGED
|
@@ -123,21 +123,11 @@ export const ruleList = [
|
|
|
123
123
|
type: "core",
|
|
124
124
|
url: "https://github.com/eglove/eslint-plugin",
|
|
125
125
|
},
|
|
126
|
-
{
|
|
127
|
-
importString: 'import tanstackQuery from "@tanstack/eslint-plugin-query";',
|
|
128
|
-
list: tanstackQueryRules,
|
|
129
|
-
name: "@tanstack/eslint-plugin-query",
|
|
130
|
-
order: 10,
|
|
131
|
-
pluginName: "@tanstack/query",
|
|
132
|
-
pluginValue: "tanstackQuery",
|
|
133
|
-
type: "core",
|
|
134
|
-
url: "https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query",
|
|
135
|
-
},
|
|
136
126
|
{
|
|
137
127
|
importString: 'import tailwind from "eslint-plugin-tailwindcss";',
|
|
138
128
|
list: tailwindRules,
|
|
139
129
|
name: "eslint-plugin-tailwindcss",
|
|
140
|
-
order:
|
|
130
|
+
order: 10,
|
|
141
131
|
pluginName: "tailwind",
|
|
142
132
|
pluginValue: "tailwind",
|
|
143
133
|
type: "core",
|
|
@@ -147,7 +137,7 @@ export const ruleList = [
|
|
|
147
137
|
importString: 'import stylistic from "@stylistic/eslint-plugin";',
|
|
148
138
|
list: stylisticRules,
|
|
149
139
|
name: "@stylistic/eslint-plugin",
|
|
150
|
-
order:
|
|
140
|
+
order: 11,
|
|
151
141
|
pluginName: "stylistic",
|
|
152
142
|
pluginValue: "stylistic",
|
|
153
143
|
type: "core",
|
|
@@ -157,12 +147,22 @@ export const ruleList = [
|
|
|
157
147
|
importString: 'import perfectionist from "eslint-plugin-perfectionist";',
|
|
158
148
|
list: perfectionistRules,
|
|
159
149
|
name: "eslint-plugin-perfectionist",
|
|
160
|
-
order:
|
|
150
|
+
order: 12,
|
|
161
151
|
pluginName: "perfectionist",
|
|
162
152
|
pluginValue: "perfectionist",
|
|
163
153
|
type: "core",
|
|
164
154
|
url: "https://github.com/azat-io/eslint-plugin-perfectionist",
|
|
165
155
|
},
|
|
156
|
+
{
|
|
157
|
+
importString: 'import tanstackQuery from "@tanstack/eslint-plugin-query";',
|
|
158
|
+
list: tanstackQueryRules,
|
|
159
|
+
name: "@tanstack/eslint-plugin-query",
|
|
160
|
+
order: 13,
|
|
161
|
+
pluginName: "@tanstack/query",
|
|
162
|
+
pluginValue: "tanstackQuery",
|
|
163
|
+
type: "core",
|
|
164
|
+
url: "https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query",
|
|
165
|
+
},
|
|
166
166
|
{
|
|
167
167
|
importString:
|
|
168
168
|
'import tanstackRouter from "@tanstack/eslint-plugin-router";',
|
package/eslint.config.js
CHANGED
|
@@ -38,10 +38,10 @@ export default tseslint.config(
|
|
|
38
38
|
lodash: lodashConfig,
|
|
39
39
|
sonar: fixupPluginRules(sonar),
|
|
40
40
|
ethang: ethang,
|
|
41
|
-
"@tanstack/query": tanstackQuery,
|
|
42
41
|
tailwind: tailwind,
|
|
43
42
|
stylistic: stylistic,
|
|
44
43
|
perfectionist: perfectionist,
|
|
44
|
+
"@tanstack/query": tanstackQuery,
|
|
45
45
|
"@tanstack/router": tanstackRouter,
|
|
46
46
|
a11y: a11y,
|
|
47
47
|
},
|
|
@@ -933,10 +933,6 @@ export default tseslint.config(
|
|
|
933
933
|
"sonar/x-powered-by": "error",
|
|
934
934
|
"sonar/xml-parser-xxe": "error",
|
|
935
935
|
"ethang/handle-native-error": "error",
|
|
936
|
-
"@tanstack/query/exhaustive-deps": "error",
|
|
937
|
-
"@tanstack/query/no-rest-destructuring": "error",
|
|
938
|
-
"@tanstack/query/no-unstable-deps": "error",
|
|
939
|
-
"@tanstack/query/stable-query-client": "error",
|
|
940
936
|
"tailwind/classnames-order": "error",
|
|
941
937
|
"tailwind/enforces-negative-arbitrary-values": "error",
|
|
942
938
|
"tailwind/enforces-shorthand": "error",
|
|
@@ -1115,6 +1111,11 @@ export default tseslint.config(
|
|
|
1115
1111
|
"error",
|
|
1116
1112
|
{ groups: ["shorthand", "multiline"] },
|
|
1117
1113
|
],
|
|
1114
|
+
"@tanstack/query/exhaustive-deps": "error",
|
|
1115
|
+
"@tanstack/query/infinite-query-property-order": "error",
|
|
1116
|
+
"@tanstack/query/no-rest-destructuring": "error",
|
|
1117
|
+
"@tanstack/query/no-unstable-deps": "error",
|
|
1118
|
+
"@tanstack/query/stable-query-client": "error",
|
|
1118
1119
|
"@tanstack/router/create-route-property-order": "error",
|
|
1119
1120
|
"a11y/alt-text": "error",
|
|
1120
1121
|
"a11y/anchor-ambiguous-text": "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.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://github.com/eglove/eslint-config-ethang.git"
|
|
6
6
|
},
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@eslint/markdown": "^6.1.0",
|
|
22
22
|
"@ethang/eslint-plugin": "^0.0.10",
|
|
23
23
|
"@stylistic/eslint-plugin": "^2.8.0",
|
|
24
|
-
"@tanstack/eslint-plugin-query": "^5.
|
|
24
|
+
"@tanstack/eslint-plugin-query": "^5.57.0",
|
|
25
25
|
"@tanstack/eslint-plugin-router": "^1.58.0",
|
|
26
26
|
"@typescript-eslint/parser": "^8.6.0",
|
|
27
27
|
"eslint": "^9.11.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@eslint/markdown": "^6.1.0",
|
|
62
62
|
"@ethang/eslint-plugin": "^0.0.10",
|
|
63
63
|
"@stylistic/eslint-plugin": "^2.8.0",
|
|
64
|
-
"@tanstack/eslint-plugin-query": "^5.
|
|
64
|
+
"@tanstack/eslint-plugin-query": "^5.57.0",
|
|
65
65
|
"@tanstack/eslint-plugin-router": "^1.58.0",
|
|
66
66
|
"@typescript-eslint/parser": "^8.6.0",
|
|
67
67
|
"eslint": "^9.11.0",
|