@tb-dev/eslint-config 3.4.2 → 3.5.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/dist/index.cjs +12 -9
- package/dist/index.js +12 -9
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -231,14 +231,9 @@ async function perfectionist(options) {
|
|
|
231
231
|
{
|
|
232
232
|
type: "line-length",
|
|
233
233
|
order: "asc",
|
|
234
|
+
"ignore-case": true,
|
|
234
235
|
"newlines-between": "never",
|
|
235
|
-
groups: [
|
|
236
|
-
["style", "side-effect"],
|
|
237
|
-
["builtin", "builtin-type"],
|
|
238
|
-
["external", "external-type"],
|
|
239
|
-
["internal", "internal-type"],
|
|
240
|
-
"unknown"
|
|
241
|
-
]
|
|
236
|
+
groups: [["side-effect-style", "side-effect"], "unknown"]
|
|
242
237
|
}
|
|
243
238
|
],
|
|
244
239
|
"perfectionist/sort-interfaces": [
|
|
@@ -249,6 +244,13 @@ async function perfectionist(options) {
|
|
|
249
244
|
"partition-by-new-line": true
|
|
250
245
|
}
|
|
251
246
|
],
|
|
247
|
+
"perfectionist/sort-intersection-types": [
|
|
248
|
+
"error",
|
|
249
|
+
{
|
|
250
|
+
type: "natural",
|
|
251
|
+
order: "asc"
|
|
252
|
+
}
|
|
253
|
+
],
|
|
252
254
|
"perfectionist/sort-maps": [
|
|
253
255
|
"error",
|
|
254
256
|
{
|
|
@@ -351,11 +353,12 @@ async function typescript(options) {
|
|
|
351
353
|
{
|
|
352
354
|
selector: ["classProperty", "variable"],
|
|
353
355
|
format: ["strictCamelCase", "UPPER_CASE"],
|
|
354
|
-
leadingUnderscore: "
|
|
356
|
+
leadingUnderscore: "allow"
|
|
355
357
|
},
|
|
356
358
|
{
|
|
357
359
|
selector: ["classicAccessor", "classMethod", "function", "parameter", "parameterProperty"],
|
|
358
|
-
format: ["strictCamelCase"]
|
|
360
|
+
format: ["strictCamelCase"],
|
|
361
|
+
leadingUnderscore: "allow"
|
|
359
362
|
},
|
|
360
363
|
{
|
|
361
364
|
selector: ["class", "enum", "enumMember", "interface", "typeAlias", "typeParameter"],
|
package/dist/index.js
CHANGED
|
@@ -208,14 +208,9 @@ async function perfectionist(options) {
|
|
|
208
208
|
{
|
|
209
209
|
type: "line-length",
|
|
210
210
|
order: "asc",
|
|
211
|
+
"ignore-case": true,
|
|
211
212
|
"newlines-between": "never",
|
|
212
|
-
groups: [
|
|
213
|
-
["style", "side-effect"],
|
|
214
|
-
["builtin", "builtin-type"],
|
|
215
|
-
["external", "external-type"],
|
|
216
|
-
["internal", "internal-type"],
|
|
217
|
-
"unknown"
|
|
218
|
-
]
|
|
213
|
+
groups: [["side-effect-style", "side-effect"], "unknown"]
|
|
219
214
|
}
|
|
220
215
|
],
|
|
221
216
|
"perfectionist/sort-interfaces": [
|
|
@@ -226,6 +221,13 @@ async function perfectionist(options) {
|
|
|
226
221
|
"partition-by-new-line": true
|
|
227
222
|
}
|
|
228
223
|
],
|
|
224
|
+
"perfectionist/sort-intersection-types": [
|
|
225
|
+
"error",
|
|
226
|
+
{
|
|
227
|
+
type: "natural",
|
|
228
|
+
order: "asc"
|
|
229
|
+
}
|
|
230
|
+
],
|
|
229
231
|
"perfectionist/sort-maps": [
|
|
230
232
|
"error",
|
|
231
233
|
{
|
|
@@ -328,11 +330,12 @@ async function typescript(options) {
|
|
|
328
330
|
{
|
|
329
331
|
selector: ["classProperty", "variable"],
|
|
330
332
|
format: ["strictCamelCase", "UPPER_CASE"],
|
|
331
|
-
leadingUnderscore: "
|
|
333
|
+
leadingUnderscore: "allow"
|
|
332
334
|
},
|
|
333
335
|
{
|
|
334
336
|
selector: ["classicAccessor", "classMethod", "function", "parameter", "parameterProperty"],
|
|
335
|
-
format: ["strictCamelCase"]
|
|
337
|
+
format: ["strictCamelCase"],
|
|
338
|
+
leadingUnderscore: "allow"
|
|
336
339
|
},
|
|
337
340
|
{
|
|
338
341
|
selector: ["class", "enum", "enumMember", "interface", "typeAlias", "typeParameter"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tb-dev/eslint-config",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "ESLint config",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
"*.{?(c|m)@(j|t)s,css,vue,md,json}": "prettier --write"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
21
|
-
"@typescript-eslint/parser": "^7.
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
21
|
+
"@typescript-eslint/parser": "^7.8.0",
|
|
22
22
|
"eslint-config-prettier": "^9.1.0",
|
|
23
|
-
"eslint-plugin-perfectionist": "^2.
|
|
23
|
+
"eslint-plugin-perfectionist": "^2.10.0",
|
|
24
24
|
"eslint-plugin-unicorn": "^52.0.0",
|
|
25
25
|
"eslint-plugin-vitest": "^0.4.1",
|
|
26
|
-
"eslint-plugin-vue": "^9.
|
|
26
|
+
"eslint-plugin-vue": "^9.25.0",
|
|
27
27
|
"globals": "^15.1.0",
|
|
28
28
|
"vue-eslint-parser": "^9.4.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
32
|
-
"@types/node": "^20.12.
|
|
32
|
+
"@types/node": "^20.12.10",
|
|
33
33
|
"eslint": "^8.57.0",
|
|
34
34
|
"husky": "^9.0.11",
|
|
35
35
|
"lint-staged": "^15.2.2",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"tslib": "^2.6.2",
|
|
38
38
|
"typescript": "^5.4.5",
|
|
39
39
|
"vite": "^5.2.11",
|
|
40
|
-
"vite-plugin-dts": "^3.9.
|
|
40
|
+
"vite-plugin-dts": "^3.9.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"eslint": "^8.57.0",
|