@tb-dev/eslint-config 3.3.0 → 3.3.2
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 +7 -31
- package/dist/index.js +7 -31
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -212,26 +212,6 @@ async function perfectionist(options) {
|
|
|
212
212
|
perfectionist: plugin
|
|
213
213
|
},
|
|
214
214
|
rules: {
|
|
215
|
-
"perfectionist/sort-classes": [
|
|
216
|
-
"error",
|
|
217
|
-
{
|
|
218
|
-
type: "natural",
|
|
219
|
-
order: "asc",
|
|
220
|
-
groups: [
|
|
221
|
-
"index-signature",
|
|
222
|
-
"property",
|
|
223
|
-
"private-property",
|
|
224
|
-
"constructor",
|
|
225
|
-
"method",
|
|
226
|
-
"private-method",
|
|
227
|
-
["get-method", "set-method"],
|
|
228
|
-
"static-property",
|
|
229
|
-
"static-method",
|
|
230
|
-
"static-private-method",
|
|
231
|
-
"unknown"
|
|
232
|
-
]
|
|
233
|
-
}
|
|
234
|
-
],
|
|
235
215
|
"perfectionist/sort-enums": [
|
|
236
216
|
"error",
|
|
237
217
|
{
|
|
@@ -369,20 +349,16 @@ async function typescript(options) {
|
|
|
369
349
|
"@typescript-eslint/naming-convention": [
|
|
370
350
|
"error",
|
|
371
351
|
{
|
|
372
|
-
selector: [
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
"parameterProperty",
|
|
379
|
-
"variable"
|
|
380
|
-
],
|
|
381
|
-
format: ["camelCase"]
|
|
352
|
+
selector: ["classProperty", "variable"],
|
|
353
|
+
format: ["strictCamelCase", "UPPER_CASE"]
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
selector: ["classicAccessor", "classMethod", "function", "parameter", "parameterProperty"],
|
|
357
|
+
format: ["strictCamelCase"]
|
|
382
358
|
},
|
|
383
359
|
{
|
|
384
360
|
selector: ["class", "enum", "enumMember", "interface", "typeAlias", "typeParameter"],
|
|
385
|
-
format: ["
|
|
361
|
+
format: ["StrictPascalCase"]
|
|
386
362
|
}
|
|
387
363
|
],
|
|
388
364
|
"@typescript-eslint/no-array-delete": "error",
|
package/dist/index.js
CHANGED
|
@@ -189,26 +189,6 @@ async function perfectionist(options) {
|
|
|
189
189
|
perfectionist: plugin
|
|
190
190
|
},
|
|
191
191
|
rules: {
|
|
192
|
-
"perfectionist/sort-classes": [
|
|
193
|
-
"error",
|
|
194
|
-
{
|
|
195
|
-
type: "natural",
|
|
196
|
-
order: "asc",
|
|
197
|
-
groups: [
|
|
198
|
-
"index-signature",
|
|
199
|
-
"property",
|
|
200
|
-
"private-property",
|
|
201
|
-
"constructor",
|
|
202
|
-
"method",
|
|
203
|
-
"private-method",
|
|
204
|
-
["get-method", "set-method"],
|
|
205
|
-
"static-property",
|
|
206
|
-
"static-method",
|
|
207
|
-
"static-private-method",
|
|
208
|
-
"unknown"
|
|
209
|
-
]
|
|
210
|
-
}
|
|
211
|
-
],
|
|
212
192
|
"perfectionist/sort-enums": [
|
|
213
193
|
"error",
|
|
214
194
|
{
|
|
@@ -346,20 +326,16 @@ async function typescript(options) {
|
|
|
346
326
|
"@typescript-eslint/naming-convention": [
|
|
347
327
|
"error",
|
|
348
328
|
{
|
|
349
|
-
selector: [
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
"parameterProperty",
|
|
356
|
-
"variable"
|
|
357
|
-
],
|
|
358
|
-
format: ["camelCase"]
|
|
329
|
+
selector: ["classProperty", "variable"],
|
|
330
|
+
format: ["strictCamelCase", "UPPER_CASE"]
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
selector: ["classicAccessor", "classMethod", "function", "parameter", "parameterProperty"],
|
|
334
|
+
format: ["strictCamelCase"]
|
|
359
335
|
},
|
|
360
336
|
{
|
|
361
337
|
selector: ["class", "enum", "enumMember", "interface", "typeAlias", "typeParameter"],
|
|
362
|
-
format: ["
|
|
338
|
+
format: ["StrictPascalCase"]
|
|
363
339
|
}
|
|
364
340
|
],
|
|
365
341
|
"@typescript-eslint/no-array-delete": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tb-dev/eslint-config",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"description": "ESLint config",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"prettier": "^3.2.5",
|
|
38
38
|
"tslib": "^2.6.2",
|
|
39
39
|
"typescript": "^5.4.3",
|
|
40
|
-
"vite": "^5.2.
|
|
41
|
-
"vite-plugin-dts": "^3.
|
|
40
|
+
"vite": "^5.2.7",
|
|
41
|
+
"vite-plugin-dts": "^3.8.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"eslint": "^8.57.0",
|