@eslinted/defaults 20.4.0-rc.3 → 20.4.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.d.ts +49 -109
- package/dist/index.d.ts.map +1 -1
- package/dist/rules/index.d.ts +49 -109
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/js.d.ts +43 -55
- package/dist/rules/js.d.ts.map +1 -1
- package/dist/rules/js.js +0 -2
- package/dist/rules/js.js.map +1 -1
- package/dist/rules/js.stylistic.d.ts +43 -1
- package/dist/rules/js.stylistic.d.ts.map +1 -1
- package/dist/rules/js.stylistic.js +43 -1
- package/dist/rules/js.stylistic.js.map +1 -1
- package/dist/rules/json/index.d.ts +6 -54
- package/dist/rules/json/index.d.ts.map +1 -1
- package/dist/rules/json/index.js +0 -2
- package/dist/rules/json/index.js.map +1 -1
- package/dist/rules/json/jsonc.d.ts +6 -0
- package/dist/rules/json/jsonc.d.ts.map +1 -1
- package/dist/rules/json/jsonc.js +6 -0
- package/dist/rules/json/jsonc.js.map +1 -1
- package/package.json +1 -1
- package/src/rules/js.stylistic.ts +46 -10
- package/src/rules/js.ts +0 -2
- package/src/rules/json/index.ts +0 -2
- package/src/rules/json/jsonc.ts +8 -5
- package/dist/rules/global.d.ts +0 -58
- package/dist/rules/global.d.ts.map +0 -1
- package/dist/rules/global.js +0 -56
- package/dist/rules/global.js.map +0 -1
- package/src/rules/global.ts +0 -57
package/dist/index.d.ts
CHANGED
|
@@ -15,60 +15,6 @@ declare const _default: {
|
|
|
15
15
|
};
|
|
16
16
|
rules: {
|
|
17
17
|
js: ({
|
|
18
|
-
rules: {
|
|
19
|
-
readonly "stylistic/eol-last": import("./rules/state.js").State.WARN;
|
|
20
|
-
readonly "stylistic/linebreak-style": import("./rules/state.js").State.WARN;
|
|
21
|
-
readonly "stylistic/exp-list-style": readonly [
|
|
22
|
-
import("./rules/state.js").State.WARN,
|
|
23
|
-
{
|
|
24
|
-
readonly singleLine: {
|
|
25
|
-
readonly maxItems: 2;
|
|
26
|
-
};
|
|
27
|
-
readonly overrides: {
|
|
28
|
-
readonly ExportNamedDeclaration: {
|
|
29
|
-
readonly singleLine: {
|
|
30
|
-
readonly maxItems: 1;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
readonly TSInterfaceBody: {
|
|
34
|
-
readonly singleLine: {
|
|
35
|
-
readonly maxItems: 0;
|
|
36
|
-
readonly spacing: "never";
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
readonly TSEnumBody: {
|
|
40
|
-
readonly singleLine: {
|
|
41
|
-
readonly maxItems: 0;
|
|
42
|
-
readonly spacing: "never";
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
readonly TSTupleType: {
|
|
46
|
-
readonly singleLine: {
|
|
47
|
-
readonly maxItems: 3;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
readonly TSTypeParameterDeclaration: {
|
|
51
|
-
readonly singleLine: {
|
|
52
|
-
readonly maxItems: 1;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
readonly JSONArrayExpression: {
|
|
56
|
-
readonly singleLine: {
|
|
57
|
-
readonly maxItems: 0;
|
|
58
|
-
readonly spacing: "never";
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
readonly JSONObjectExpression: {
|
|
62
|
-
readonly singleLine: {
|
|
63
|
-
readonly maxItems: 0;
|
|
64
|
-
readonly spacing: "never";
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
];
|
|
70
|
-
};
|
|
71
|
-
} | {
|
|
72
18
|
rules: {
|
|
73
19
|
readonly "array-callback-return": readonly [
|
|
74
20
|
import("./rules/state.js").State.ON,
|
|
@@ -355,6 +301,18 @@ declare const _default: {
|
|
|
355
301
|
};
|
|
356
302
|
} | {
|
|
357
303
|
rules: {
|
|
304
|
+
readonly "stylistic/eol-last": import("./rules/state.js").State.WARN;
|
|
305
|
+
readonly "stylistic/linebreak-style": import("./rules/state.js").State.WARN;
|
|
306
|
+
readonly "stylistic/array-bracket-newline": import("./rules/state.js").State.WARN;
|
|
307
|
+
readonly "stylistic/array-bracket-spacing": import("./rules/state.js").State.WARN;
|
|
308
|
+
readonly "stylistic/array-element-newline": readonly [
|
|
309
|
+
import("./rules/state.js").State.WARN,
|
|
310
|
+
{
|
|
311
|
+
readonly consistent: true;
|
|
312
|
+
readonly multiline: true;
|
|
313
|
+
readonly minItems: 3;
|
|
314
|
+
}
|
|
315
|
+
];
|
|
358
316
|
readonly "stylistic/arrow-parens": readonly [
|
|
359
317
|
import("./rules/state.js").State.WARN,
|
|
360
318
|
"as-needed"
|
|
@@ -380,7 +338,15 @@ declare const _default: {
|
|
|
380
338
|
import("./rules/state.js").State.WARN,
|
|
381
339
|
"property"
|
|
382
340
|
];
|
|
341
|
+
readonly "stylistic/function-call-argument-newline": readonly [
|
|
342
|
+
import("./rules/state.js").State.WARN,
|
|
343
|
+
"consistent"
|
|
344
|
+
];
|
|
383
345
|
readonly "stylistic/function-call-spacing": import("./rules/state.js").State.WARN;
|
|
346
|
+
readonly "stylistic/function-paren-newline": readonly [
|
|
347
|
+
import("./rules/state.js").State.WARN,
|
|
348
|
+
"multiline-arguments"
|
|
349
|
+
];
|
|
384
350
|
readonly "stylistic/generator-star-spacing": import("./rules/state.js").State.WARN;
|
|
385
351
|
readonly "stylistic/implicit-arrow-linebreak": import("./rules/state.js").State.WARN;
|
|
386
352
|
readonly "stylistic/indent": readonly [
|
|
@@ -443,7 +409,12 @@ declare const _default: {
|
|
|
443
409
|
import("./rules/state.js").State.WARN,
|
|
444
410
|
"always-multiline"
|
|
445
411
|
];
|
|
446
|
-
readonly "stylistic/newline-per-chained-call":
|
|
412
|
+
readonly "stylistic/newline-per-chained-call": readonly [
|
|
413
|
+
import("./rules/state.js").State.WARN,
|
|
414
|
+
{
|
|
415
|
+
readonly ignoreChainWithDepth: 1;
|
|
416
|
+
}
|
|
417
|
+
];
|
|
447
418
|
readonly "stylistic/no-extra-parens": import("./rules/state.js").State.WARN;
|
|
448
419
|
readonly "stylistic/no-extra-semi": import("./rules/state.js").State.WARN;
|
|
449
420
|
readonly "stylistic/no-floating-decimal": import("./rules/state.js").State.WARN;
|
|
@@ -472,6 +443,22 @@ declare const _default: {
|
|
|
472
443
|
import("./rules/state.js").State.WARN,
|
|
473
444
|
"below"
|
|
474
445
|
];
|
|
446
|
+
readonly "stylistic/object-curly-newline": readonly [
|
|
447
|
+
import("./rules/state.js").State.WARN,
|
|
448
|
+
{
|
|
449
|
+
readonly consistent: true;
|
|
450
|
+
readonly multiline: true;
|
|
451
|
+
readonly minProperties: 3;
|
|
452
|
+
}
|
|
453
|
+
];
|
|
454
|
+
readonly "stylistic/object-curly-spacing": readonly [
|
|
455
|
+
import("./rules/state.js").State.WARN,
|
|
456
|
+
"always",
|
|
457
|
+
{
|
|
458
|
+
readonly emptyObjects: "never";
|
|
459
|
+
}
|
|
460
|
+
];
|
|
461
|
+
readonly "stylistic/object-property-newline": import("./rules/state.js").State.WARN;
|
|
475
462
|
readonly "stylistic/one-var-declaration-per-line": readonly [
|
|
476
463
|
import("./rules/state.js").State.WARN,
|
|
477
464
|
"always"
|
|
@@ -513,6 +500,7 @@ declare const _default: {
|
|
|
513
500
|
readonly named: "never";
|
|
514
501
|
}
|
|
515
502
|
];
|
|
503
|
+
readonly "stylistic/space-in-parens": import("./rules/state.js").State.WARN;
|
|
516
504
|
readonly "stylistic/space-infix-ops": import("./rules/state.js").State.WARN;
|
|
517
505
|
readonly "stylistic/space-unary-ops": import("./rules/state.js").State.WARN;
|
|
518
506
|
readonly "stylistic/spaced-comment": readonly [
|
|
@@ -989,60 +977,6 @@ declare const _default: {
|
|
|
989
977
|
};
|
|
990
978
|
}[];
|
|
991
979
|
json: ({
|
|
992
|
-
rules: {
|
|
993
|
-
readonly "stylistic/eol-last": import("./rules/state.js").State.WARN;
|
|
994
|
-
readonly "stylistic/linebreak-style": import("./rules/state.js").State.WARN;
|
|
995
|
-
readonly "stylistic/exp-list-style": readonly [
|
|
996
|
-
import("./rules/state.js").State.WARN,
|
|
997
|
-
{
|
|
998
|
-
readonly singleLine: {
|
|
999
|
-
readonly maxItems: 2;
|
|
1000
|
-
};
|
|
1001
|
-
readonly overrides: {
|
|
1002
|
-
readonly ExportNamedDeclaration: {
|
|
1003
|
-
readonly singleLine: {
|
|
1004
|
-
readonly maxItems: 1;
|
|
1005
|
-
};
|
|
1006
|
-
};
|
|
1007
|
-
readonly TSInterfaceBody: {
|
|
1008
|
-
readonly singleLine: {
|
|
1009
|
-
readonly maxItems: 0;
|
|
1010
|
-
readonly spacing: "never";
|
|
1011
|
-
};
|
|
1012
|
-
};
|
|
1013
|
-
readonly TSEnumBody: {
|
|
1014
|
-
readonly singleLine: {
|
|
1015
|
-
readonly maxItems: 0;
|
|
1016
|
-
readonly spacing: "never";
|
|
1017
|
-
};
|
|
1018
|
-
};
|
|
1019
|
-
readonly TSTupleType: {
|
|
1020
|
-
readonly singleLine: {
|
|
1021
|
-
readonly maxItems: 3;
|
|
1022
|
-
};
|
|
1023
|
-
};
|
|
1024
|
-
readonly TSTypeParameterDeclaration: {
|
|
1025
|
-
readonly singleLine: {
|
|
1026
|
-
readonly maxItems: 1;
|
|
1027
|
-
};
|
|
1028
|
-
};
|
|
1029
|
-
readonly JSONArrayExpression: {
|
|
1030
|
-
readonly singleLine: {
|
|
1031
|
-
readonly maxItems: 0;
|
|
1032
|
-
readonly spacing: "never";
|
|
1033
|
-
};
|
|
1034
|
-
};
|
|
1035
|
-
readonly JSONObjectExpression: {
|
|
1036
|
-
readonly singleLine: {
|
|
1037
|
-
readonly maxItems: 0;
|
|
1038
|
-
readonly spacing: "never";
|
|
1039
|
-
};
|
|
1040
|
-
};
|
|
1041
|
-
};
|
|
1042
|
-
}
|
|
1043
|
-
];
|
|
1044
|
-
};
|
|
1045
|
-
} | {
|
|
1046
980
|
rules: {
|
|
1047
981
|
readonly "json/no-unsafe-values": import("./rules/state.js").State.ON;
|
|
1048
982
|
readonly "json/no-unnormalized-keys": import("./rules/state.js").State.ON;
|
|
@@ -1050,6 +984,11 @@ declare const _default: {
|
|
|
1050
984
|
} | {
|
|
1051
985
|
rules: {
|
|
1052
986
|
readonly "jsonc/no-comments": import("./rules/state.js").State.ON;
|
|
987
|
+
readonly "jsonc/array-bracket-spacing": import("./rules/state.js").State.WARN;
|
|
988
|
+
readonly "jsonc/array-element-newline": readonly [
|
|
989
|
+
import("./rules/state.js").State.WARN,
|
|
990
|
+
"consistent"
|
|
991
|
+
];
|
|
1053
992
|
readonly "jsonc/comma-dangle": import("./rules/state.js").State.ON;
|
|
1054
993
|
readonly "jsonc/comma-style": import("./rules/state.js").State.WARN;
|
|
1055
994
|
readonly "jsonc/indent": readonly [
|
|
@@ -1065,6 +1004,7 @@ declare const _default: {
|
|
|
1065
1004
|
readonly skipComments: true;
|
|
1066
1005
|
}
|
|
1067
1006
|
];
|
|
1007
|
+
readonly "jsonc/object-property-newline": import("./rules/state.js").State.WARN;
|
|
1068
1008
|
};
|
|
1069
1009
|
})[];
|
|
1070
1010
|
jsonc: {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
|
package/dist/rules/index.d.ts
CHANGED
|
@@ -1,59 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
js: ({
|
|
3
|
-
rules: {
|
|
4
|
-
readonly "stylistic/eol-last": import("./state.js").State.WARN;
|
|
5
|
-
readonly "stylistic/linebreak-style": import("./state.js").State.WARN;
|
|
6
|
-
readonly "stylistic/exp-list-style": readonly [
|
|
7
|
-
import("./state.js").State.WARN,
|
|
8
|
-
{
|
|
9
|
-
readonly singleLine: {
|
|
10
|
-
readonly maxItems: 2;
|
|
11
|
-
};
|
|
12
|
-
readonly overrides: {
|
|
13
|
-
readonly ExportNamedDeclaration: {
|
|
14
|
-
readonly singleLine: {
|
|
15
|
-
readonly maxItems: 1;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
readonly TSInterfaceBody: {
|
|
19
|
-
readonly singleLine: {
|
|
20
|
-
readonly maxItems: 0;
|
|
21
|
-
readonly spacing: "never";
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
readonly TSEnumBody: {
|
|
25
|
-
readonly singleLine: {
|
|
26
|
-
readonly maxItems: 0;
|
|
27
|
-
readonly spacing: "never";
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
readonly TSTupleType: {
|
|
31
|
-
readonly singleLine: {
|
|
32
|
-
readonly maxItems: 3;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
readonly TSTypeParameterDeclaration: {
|
|
36
|
-
readonly singleLine: {
|
|
37
|
-
readonly maxItems: 1;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
readonly JSONArrayExpression: {
|
|
41
|
-
readonly singleLine: {
|
|
42
|
-
readonly maxItems: 0;
|
|
43
|
-
readonly spacing: "never";
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
readonly JSONObjectExpression: {
|
|
47
|
-
readonly singleLine: {
|
|
48
|
-
readonly maxItems: 0;
|
|
49
|
-
readonly spacing: "never";
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
];
|
|
55
|
-
};
|
|
56
|
-
} | {
|
|
57
3
|
rules: {
|
|
58
4
|
readonly "array-callback-return": readonly [
|
|
59
5
|
import("./state.js").State.ON,
|
|
@@ -340,6 +286,18 @@ declare const _default: {
|
|
|
340
286
|
};
|
|
341
287
|
} | {
|
|
342
288
|
rules: {
|
|
289
|
+
readonly "stylistic/eol-last": import("./state.js").State.WARN;
|
|
290
|
+
readonly "stylistic/linebreak-style": import("./state.js").State.WARN;
|
|
291
|
+
readonly "stylistic/array-bracket-newline": import("./state.js").State.WARN;
|
|
292
|
+
readonly "stylistic/array-bracket-spacing": import("./state.js").State.WARN;
|
|
293
|
+
readonly "stylistic/array-element-newline": readonly [
|
|
294
|
+
import("./state.js").State.WARN,
|
|
295
|
+
{
|
|
296
|
+
readonly consistent: true;
|
|
297
|
+
readonly multiline: true;
|
|
298
|
+
readonly minItems: 3;
|
|
299
|
+
}
|
|
300
|
+
];
|
|
343
301
|
readonly "stylistic/arrow-parens": readonly [
|
|
344
302
|
import("./state.js").State.WARN,
|
|
345
303
|
"as-needed"
|
|
@@ -365,7 +323,15 @@ declare const _default: {
|
|
|
365
323
|
import("./state.js").State.WARN,
|
|
366
324
|
"property"
|
|
367
325
|
];
|
|
326
|
+
readonly "stylistic/function-call-argument-newline": readonly [
|
|
327
|
+
import("./state.js").State.WARN,
|
|
328
|
+
"consistent"
|
|
329
|
+
];
|
|
368
330
|
readonly "stylistic/function-call-spacing": import("./state.js").State.WARN;
|
|
331
|
+
readonly "stylistic/function-paren-newline": readonly [
|
|
332
|
+
import("./state.js").State.WARN,
|
|
333
|
+
"multiline-arguments"
|
|
334
|
+
];
|
|
369
335
|
readonly "stylistic/generator-star-spacing": import("./state.js").State.WARN;
|
|
370
336
|
readonly "stylistic/implicit-arrow-linebreak": import("./state.js").State.WARN;
|
|
371
337
|
readonly "stylistic/indent": readonly [
|
|
@@ -428,7 +394,12 @@ declare const _default: {
|
|
|
428
394
|
import("./state.js").State.WARN,
|
|
429
395
|
"always-multiline"
|
|
430
396
|
];
|
|
431
|
-
readonly "stylistic/newline-per-chained-call":
|
|
397
|
+
readonly "stylistic/newline-per-chained-call": readonly [
|
|
398
|
+
import("./state.js").State.WARN,
|
|
399
|
+
{
|
|
400
|
+
readonly ignoreChainWithDepth: 1;
|
|
401
|
+
}
|
|
402
|
+
];
|
|
432
403
|
readonly "stylistic/no-extra-parens": import("./state.js").State.WARN;
|
|
433
404
|
readonly "stylistic/no-extra-semi": import("./state.js").State.WARN;
|
|
434
405
|
readonly "stylistic/no-floating-decimal": import("./state.js").State.WARN;
|
|
@@ -457,6 +428,22 @@ declare const _default: {
|
|
|
457
428
|
import("./state.js").State.WARN,
|
|
458
429
|
"below"
|
|
459
430
|
];
|
|
431
|
+
readonly "stylistic/object-curly-newline": readonly [
|
|
432
|
+
import("./state.js").State.WARN,
|
|
433
|
+
{
|
|
434
|
+
readonly consistent: true;
|
|
435
|
+
readonly multiline: true;
|
|
436
|
+
readonly minProperties: 3;
|
|
437
|
+
}
|
|
438
|
+
];
|
|
439
|
+
readonly "stylistic/object-curly-spacing": readonly [
|
|
440
|
+
import("./state.js").State.WARN,
|
|
441
|
+
"always",
|
|
442
|
+
{
|
|
443
|
+
readonly emptyObjects: "never";
|
|
444
|
+
}
|
|
445
|
+
];
|
|
446
|
+
readonly "stylistic/object-property-newline": import("./state.js").State.WARN;
|
|
460
447
|
readonly "stylistic/one-var-declaration-per-line": readonly [
|
|
461
448
|
import("./state.js").State.WARN,
|
|
462
449
|
"always"
|
|
@@ -498,6 +485,7 @@ declare const _default: {
|
|
|
498
485
|
readonly named: "never";
|
|
499
486
|
}
|
|
500
487
|
];
|
|
488
|
+
readonly "stylistic/space-in-parens": import("./state.js").State.WARN;
|
|
501
489
|
readonly "stylistic/space-infix-ops": import("./state.js").State.WARN;
|
|
502
490
|
readonly "stylistic/space-unary-ops": import("./state.js").State.WARN;
|
|
503
491
|
readonly "stylistic/spaced-comment": readonly [
|
|
@@ -974,60 +962,6 @@ declare const _default: {
|
|
|
974
962
|
};
|
|
975
963
|
}[];
|
|
976
964
|
json: ({
|
|
977
|
-
rules: {
|
|
978
|
-
readonly "stylistic/eol-last": import("./state.js").State.WARN;
|
|
979
|
-
readonly "stylistic/linebreak-style": import("./state.js").State.WARN;
|
|
980
|
-
readonly "stylistic/exp-list-style": readonly [
|
|
981
|
-
import("./state.js").State.WARN,
|
|
982
|
-
{
|
|
983
|
-
readonly singleLine: {
|
|
984
|
-
readonly maxItems: 2;
|
|
985
|
-
};
|
|
986
|
-
readonly overrides: {
|
|
987
|
-
readonly ExportNamedDeclaration: {
|
|
988
|
-
readonly singleLine: {
|
|
989
|
-
readonly maxItems: 1;
|
|
990
|
-
};
|
|
991
|
-
};
|
|
992
|
-
readonly TSInterfaceBody: {
|
|
993
|
-
readonly singleLine: {
|
|
994
|
-
readonly maxItems: 0;
|
|
995
|
-
readonly spacing: "never";
|
|
996
|
-
};
|
|
997
|
-
};
|
|
998
|
-
readonly TSEnumBody: {
|
|
999
|
-
readonly singleLine: {
|
|
1000
|
-
readonly maxItems: 0;
|
|
1001
|
-
readonly spacing: "never";
|
|
1002
|
-
};
|
|
1003
|
-
};
|
|
1004
|
-
readonly TSTupleType: {
|
|
1005
|
-
readonly singleLine: {
|
|
1006
|
-
readonly maxItems: 3;
|
|
1007
|
-
};
|
|
1008
|
-
};
|
|
1009
|
-
readonly TSTypeParameterDeclaration: {
|
|
1010
|
-
readonly singleLine: {
|
|
1011
|
-
readonly maxItems: 1;
|
|
1012
|
-
};
|
|
1013
|
-
};
|
|
1014
|
-
readonly JSONArrayExpression: {
|
|
1015
|
-
readonly singleLine: {
|
|
1016
|
-
readonly maxItems: 0;
|
|
1017
|
-
readonly spacing: "never";
|
|
1018
|
-
};
|
|
1019
|
-
};
|
|
1020
|
-
readonly JSONObjectExpression: {
|
|
1021
|
-
readonly singleLine: {
|
|
1022
|
-
readonly maxItems: 0;
|
|
1023
|
-
readonly spacing: "never";
|
|
1024
|
-
};
|
|
1025
|
-
};
|
|
1026
|
-
};
|
|
1027
|
-
}
|
|
1028
|
-
];
|
|
1029
|
-
};
|
|
1030
|
-
} | {
|
|
1031
965
|
rules: {
|
|
1032
966
|
readonly "json/no-unsafe-values": import("./state.js").State.ON;
|
|
1033
967
|
readonly "json/no-unnormalized-keys": import("./state.js").State.ON;
|
|
@@ -1035,6 +969,11 @@ declare const _default: {
|
|
|
1035
969
|
} | {
|
|
1036
970
|
rules: {
|
|
1037
971
|
readonly "jsonc/no-comments": import("./state.js").State.ON;
|
|
972
|
+
readonly "jsonc/array-bracket-spacing": import("./state.js").State.WARN;
|
|
973
|
+
readonly "jsonc/array-element-newline": readonly [
|
|
974
|
+
import("./state.js").State.WARN,
|
|
975
|
+
"consistent"
|
|
976
|
+
];
|
|
1038
977
|
readonly "jsonc/comma-dangle": import("./state.js").State.ON;
|
|
1039
978
|
readonly "jsonc/comma-style": import("./state.js").State.WARN;
|
|
1040
979
|
readonly "jsonc/indent": readonly [
|
|
@@ -1050,6 +989,7 @@ declare const _default: {
|
|
|
1050
989
|
readonly skipComments: true;
|
|
1051
990
|
}
|
|
1052
991
|
];
|
|
992
|
+
readonly "jsonc/object-property-newline": import("./state.js").State.WARN;
|
|
1053
993
|
};
|
|
1054
994
|
})[];
|
|
1055
995
|
jsonc: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBASE"}
|
package/dist/rules/js.d.ts
CHANGED
|
@@ -1,58 +1,4 @@
|
|
|
1
1
|
declare const _default: ({
|
|
2
|
-
rules: {
|
|
3
|
-
readonly "stylistic/eol-last": import("./state.js").State.WARN;
|
|
4
|
-
readonly "stylistic/linebreak-style": import("./state.js").State.WARN;
|
|
5
|
-
readonly "stylistic/exp-list-style": readonly [
|
|
6
|
-
import("./state.js").State.WARN,
|
|
7
|
-
{
|
|
8
|
-
readonly singleLine: {
|
|
9
|
-
readonly maxItems: 2;
|
|
10
|
-
};
|
|
11
|
-
readonly overrides: {
|
|
12
|
-
readonly ExportNamedDeclaration: {
|
|
13
|
-
readonly singleLine: {
|
|
14
|
-
readonly maxItems: 1;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
readonly TSInterfaceBody: {
|
|
18
|
-
readonly singleLine: {
|
|
19
|
-
readonly maxItems: 0;
|
|
20
|
-
readonly spacing: "never";
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
readonly TSEnumBody: {
|
|
24
|
-
readonly singleLine: {
|
|
25
|
-
readonly maxItems: 0;
|
|
26
|
-
readonly spacing: "never";
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
readonly TSTupleType: {
|
|
30
|
-
readonly singleLine: {
|
|
31
|
-
readonly maxItems: 3;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
readonly TSTypeParameterDeclaration: {
|
|
35
|
-
readonly singleLine: {
|
|
36
|
-
readonly maxItems: 1;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
readonly JSONArrayExpression: {
|
|
40
|
-
readonly singleLine: {
|
|
41
|
-
readonly maxItems: 0;
|
|
42
|
-
readonly spacing: "never";
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
readonly JSONObjectExpression: {
|
|
46
|
-
readonly singleLine: {
|
|
47
|
-
readonly maxItems: 0;
|
|
48
|
-
readonly spacing: "never";
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
];
|
|
54
|
-
};
|
|
55
|
-
} | {
|
|
56
2
|
rules: {
|
|
57
3
|
readonly "array-callback-return": readonly [
|
|
58
4
|
import("./state.js").State.ON,
|
|
@@ -339,6 +285,18 @@ declare const _default: ({
|
|
|
339
285
|
};
|
|
340
286
|
} | {
|
|
341
287
|
rules: {
|
|
288
|
+
readonly "stylistic/eol-last": import("./state.js").State.WARN;
|
|
289
|
+
readonly "stylistic/linebreak-style": import("./state.js").State.WARN;
|
|
290
|
+
readonly "stylistic/array-bracket-newline": import("./state.js").State.WARN;
|
|
291
|
+
readonly "stylistic/array-bracket-spacing": import("./state.js").State.WARN;
|
|
292
|
+
readonly "stylistic/array-element-newline": readonly [
|
|
293
|
+
import("./state.js").State.WARN,
|
|
294
|
+
{
|
|
295
|
+
readonly consistent: true;
|
|
296
|
+
readonly multiline: true;
|
|
297
|
+
readonly minItems: 3;
|
|
298
|
+
}
|
|
299
|
+
];
|
|
342
300
|
readonly "stylistic/arrow-parens": readonly [
|
|
343
301
|
import("./state.js").State.WARN,
|
|
344
302
|
"as-needed"
|
|
@@ -364,7 +322,15 @@ declare const _default: ({
|
|
|
364
322
|
import("./state.js").State.WARN,
|
|
365
323
|
"property"
|
|
366
324
|
];
|
|
325
|
+
readonly "stylistic/function-call-argument-newline": readonly [
|
|
326
|
+
import("./state.js").State.WARN,
|
|
327
|
+
"consistent"
|
|
328
|
+
];
|
|
367
329
|
readonly "stylistic/function-call-spacing": import("./state.js").State.WARN;
|
|
330
|
+
readonly "stylistic/function-paren-newline": readonly [
|
|
331
|
+
import("./state.js").State.WARN,
|
|
332
|
+
"multiline-arguments"
|
|
333
|
+
];
|
|
368
334
|
readonly "stylistic/generator-star-spacing": import("./state.js").State.WARN;
|
|
369
335
|
readonly "stylistic/implicit-arrow-linebreak": import("./state.js").State.WARN;
|
|
370
336
|
readonly "stylistic/indent": readonly [
|
|
@@ -427,7 +393,12 @@ declare const _default: ({
|
|
|
427
393
|
import("./state.js").State.WARN,
|
|
428
394
|
"always-multiline"
|
|
429
395
|
];
|
|
430
|
-
readonly "stylistic/newline-per-chained-call":
|
|
396
|
+
readonly "stylistic/newline-per-chained-call": readonly [
|
|
397
|
+
import("./state.js").State.WARN,
|
|
398
|
+
{
|
|
399
|
+
readonly ignoreChainWithDepth: 1;
|
|
400
|
+
}
|
|
401
|
+
];
|
|
431
402
|
readonly "stylistic/no-extra-parens": import("./state.js").State.WARN;
|
|
432
403
|
readonly "stylistic/no-extra-semi": import("./state.js").State.WARN;
|
|
433
404
|
readonly "stylistic/no-floating-decimal": import("./state.js").State.WARN;
|
|
@@ -456,6 +427,22 @@ declare const _default: ({
|
|
|
456
427
|
import("./state.js").State.WARN,
|
|
457
428
|
"below"
|
|
458
429
|
];
|
|
430
|
+
readonly "stylistic/object-curly-newline": readonly [
|
|
431
|
+
import("./state.js").State.WARN,
|
|
432
|
+
{
|
|
433
|
+
readonly consistent: true;
|
|
434
|
+
readonly multiline: true;
|
|
435
|
+
readonly minProperties: 3;
|
|
436
|
+
}
|
|
437
|
+
];
|
|
438
|
+
readonly "stylistic/object-curly-spacing": readonly [
|
|
439
|
+
import("./state.js").State.WARN,
|
|
440
|
+
"always",
|
|
441
|
+
{
|
|
442
|
+
readonly emptyObjects: "never";
|
|
443
|
+
}
|
|
444
|
+
];
|
|
445
|
+
readonly "stylistic/object-property-newline": import("./state.js").State.WARN;
|
|
459
446
|
readonly "stylistic/one-var-declaration-per-line": readonly [
|
|
460
447
|
import("./state.js").State.WARN,
|
|
461
448
|
"always"
|
|
@@ -497,6 +484,7 @@ declare const _default: ({
|
|
|
497
484
|
readonly named: "never";
|
|
498
485
|
}
|
|
499
486
|
];
|
|
487
|
+
readonly "stylistic/space-in-parens": import("./state.js").State.WARN;
|
|
500
488
|
readonly "stylistic/space-infix-ops": import("./state.js").State.WARN;
|
|
501
489
|
readonly "stylistic/space-unary-ops": import("./state.js").State.WARN;
|
|
502
490
|
readonly "stylistic/spaced-comment": readonly [
|
package/dist/rules/js.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../src/rules/js.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../src/rules/js.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
|
package/dist/rules/js.js
CHANGED
package/dist/rules/js.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"js.js","sourceRoot":"","sources":["../../src/rules/js.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"js.js","sourceRoot":"","sources":["../../src/rules/js.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,SAAS,MAAM,gBAAgB,CAAC;AAEvC,eAAe;IACb,MAAM;IACN,SAAS;CACV,CAAC"}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import { State } from "./state.js";
|
|
2
2
|
declare const _default: {
|
|
3
3
|
rules: {
|
|
4
|
+
readonly "stylistic/eol-last": State.WARN;
|
|
5
|
+
readonly "stylistic/linebreak-style": State.WARN;
|
|
6
|
+
readonly "stylistic/array-bracket-newline": State.WARN;
|
|
7
|
+
readonly "stylistic/array-bracket-spacing": State.WARN;
|
|
8
|
+
readonly "stylistic/array-element-newline": readonly [
|
|
9
|
+
State.WARN,
|
|
10
|
+
{
|
|
11
|
+
readonly consistent: true;
|
|
12
|
+
readonly multiline: true;
|
|
13
|
+
readonly minItems: 3;
|
|
14
|
+
}
|
|
15
|
+
];
|
|
4
16
|
readonly "stylistic/arrow-parens": readonly [
|
|
5
17
|
State.WARN,
|
|
6
18
|
"as-needed"
|
|
@@ -26,7 +38,15 @@ declare const _default: {
|
|
|
26
38
|
State.WARN,
|
|
27
39
|
"property"
|
|
28
40
|
];
|
|
41
|
+
readonly "stylistic/function-call-argument-newline": readonly [
|
|
42
|
+
State.WARN,
|
|
43
|
+
"consistent"
|
|
44
|
+
];
|
|
29
45
|
readonly "stylistic/function-call-spacing": State.WARN;
|
|
46
|
+
readonly "stylistic/function-paren-newline": readonly [
|
|
47
|
+
State.WARN,
|
|
48
|
+
"multiline-arguments"
|
|
49
|
+
];
|
|
30
50
|
readonly "stylistic/generator-star-spacing": State.WARN;
|
|
31
51
|
readonly "stylistic/implicit-arrow-linebreak": State.WARN;
|
|
32
52
|
readonly "stylistic/indent": readonly [
|
|
@@ -89,7 +109,12 @@ declare const _default: {
|
|
|
89
109
|
State.WARN,
|
|
90
110
|
"always-multiline"
|
|
91
111
|
];
|
|
92
|
-
readonly "stylistic/newline-per-chained-call":
|
|
112
|
+
readonly "stylistic/newline-per-chained-call": readonly [
|
|
113
|
+
State.WARN,
|
|
114
|
+
{
|
|
115
|
+
readonly ignoreChainWithDepth: 1;
|
|
116
|
+
}
|
|
117
|
+
];
|
|
93
118
|
readonly "stylistic/no-extra-parens": State.WARN;
|
|
94
119
|
readonly "stylistic/no-extra-semi": State.WARN;
|
|
95
120
|
readonly "stylistic/no-floating-decimal": State.WARN;
|
|
@@ -118,6 +143,22 @@ declare const _default: {
|
|
|
118
143
|
State.WARN,
|
|
119
144
|
"below"
|
|
120
145
|
];
|
|
146
|
+
readonly "stylistic/object-curly-newline": readonly [
|
|
147
|
+
State.WARN,
|
|
148
|
+
{
|
|
149
|
+
readonly consistent: true;
|
|
150
|
+
readonly multiline: true;
|
|
151
|
+
readonly minProperties: 3;
|
|
152
|
+
}
|
|
153
|
+
];
|
|
154
|
+
readonly "stylistic/object-curly-spacing": readonly [
|
|
155
|
+
State.WARN,
|
|
156
|
+
"always",
|
|
157
|
+
{
|
|
158
|
+
readonly emptyObjects: "never";
|
|
159
|
+
}
|
|
160
|
+
];
|
|
161
|
+
readonly "stylistic/object-property-newline": State.WARN;
|
|
121
162
|
readonly "stylistic/one-var-declaration-per-line": readonly [
|
|
122
163
|
State.WARN,
|
|
123
164
|
"always"
|
|
@@ -159,6 +200,7 @@ declare const _default: {
|
|
|
159
200
|
readonly named: "never";
|
|
160
201
|
}
|
|
161
202
|
];
|
|
203
|
+
readonly "stylistic/space-in-parens": State.WARN;
|
|
162
204
|
readonly "stylistic/space-infix-ops": State.WARN;
|
|
163
205
|
readonly "stylistic/space-unary-ops": State.WARN;
|
|
164
206
|
readonly "stylistic/spaced-comment": readonly [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"js.stylistic.d.ts","sourceRoot":"","sources":["../../src/rules/js.stylistic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC
|
|
1
|
+
{"version":3,"file":"js.stylistic.d.ts","sourceRoot":"","sources":["../../src/rules/js.stylistic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGhC,wBAmRE"}
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
rules: {
|
|
3
|
+
"stylistic/eol-last": 1,
|
|
4
|
+
"stylistic/linebreak-style": 1,
|
|
5
|
+
"stylistic/array-bracket-newline": 1,
|
|
6
|
+
"stylistic/array-bracket-spacing": 1,
|
|
7
|
+
"stylistic/array-element-newline": [
|
|
8
|
+
1,
|
|
9
|
+
{
|
|
10
|
+
consistent: true,
|
|
11
|
+
multiline: true,
|
|
12
|
+
minItems: 3,
|
|
13
|
+
},
|
|
14
|
+
],
|
|
3
15
|
"stylistic/arrow-parens": [
|
|
4
16
|
1,
|
|
5
17
|
"as-needed",
|
|
@@ -25,7 +37,15 @@ export default {
|
|
|
25
37
|
1,
|
|
26
38
|
"property",
|
|
27
39
|
],
|
|
40
|
+
"stylistic/function-call-argument-newline": [
|
|
41
|
+
1,
|
|
42
|
+
"consistent",
|
|
43
|
+
],
|
|
28
44
|
"stylistic/function-call-spacing": 1,
|
|
45
|
+
"stylistic/function-paren-newline": [
|
|
46
|
+
1,
|
|
47
|
+
"multiline-arguments",
|
|
48
|
+
],
|
|
29
49
|
"stylistic/generator-star-spacing": 1,
|
|
30
50
|
"stylistic/implicit-arrow-linebreak": 1,
|
|
31
51
|
"stylistic/indent": [
|
|
@@ -88,7 +108,12 @@ export default {
|
|
|
88
108
|
1,
|
|
89
109
|
"always-multiline",
|
|
90
110
|
],
|
|
91
|
-
"stylistic/newline-per-chained-call":
|
|
111
|
+
"stylistic/newline-per-chained-call": [
|
|
112
|
+
1,
|
|
113
|
+
{
|
|
114
|
+
ignoreChainWithDepth: 1,
|
|
115
|
+
},
|
|
116
|
+
],
|
|
92
117
|
"stylistic/no-extra-parens": 1,
|
|
93
118
|
"stylistic/no-extra-semi": 1,
|
|
94
119
|
"stylistic/no-floating-decimal": 1,
|
|
@@ -117,6 +142,22 @@ export default {
|
|
|
117
142
|
1,
|
|
118
143
|
"below",
|
|
119
144
|
],
|
|
145
|
+
"stylistic/object-curly-newline": [
|
|
146
|
+
1,
|
|
147
|
+
{
|
|
148
|
+
consistent: true,
|
|
149
|
+
multiline: true,
|
|
150
|
+
minProperties: 3,
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
"stylistic/object-curly-spacing": [
|
|
154
|
+
1,
|
|
155
|
+
"always",
|
|
156
|
+
{
|
|
157
|
+
emptyObjects: "never",
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
"stylistic/object-property-newline": 1,
|
|
120
161
|
"stylistic/one-var-declaration-per-line": [
|
|
121
162
|
1,
|
|
122
163
|
"always",
|
|
@@ -158,6 +199,7 @@ export default {
|
|
|
158
199
|
named: "never",
|
|
159
200
|
},
|
|
160
201
|
],
|
|
202
|
+
"stylistic/space-in-parens": 1,
|
|
161
203
|
"stylistic/space-infix-ops": 1,
|
|
162
204
|
"stylistic/space-unary-ops": 1,
|
|
163
205
|
"stylistic/spaced-comment": [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"js.stylistic.js","sourceRoot":"","sources":["../../src/rules/js.stylistic.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;
|
|
1
|
+
{"version":3,"file":"js.stylistic.js","sourceRoot":"","sources":["../../src/rules/js.stylistic.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,58 +1,4 @@
|
|
|
1
1
|
declare const _default: ({
|
|
2
|
-
rules: {
|
|
3
|
-
readonly "stylistic/eol-last": import("../state.js").State.WARN;
|
|
4
|
-
readonly "stylistic/linebreak-style": import("../state.js").State.WARN;
|
|
5
|
-
readonly "stylistic/exp-list-style": readonly [
|
|
6
|
-
import("../state.js").State.WARN,
|
|
7
|
-
{
|
|
8
|
-
readonly singleLine: {
|
|
9
|
-
readonly maxItems: 2;
|
|
10
|
-
};
|
|
11
|
-
readonly overrides: {
|
|
12
|
-
readonly ExportNamedDeclaration: {
|
|
13
|
-
readonly singleLine: {
|
|
14
|
-
readonly maxItems: 1;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
readonly TSInterfaceBody: {
|
|
18
|
-
readonly singleLine: {
|
|
19
|
-
readonly maxItems: 0;
|
|
20
|
-
readonly spacing: "never";
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
readonly TSEnumBody: {
|
|
24
|
-
readonly singleLine: {
|
|
25
|
-
readonly maxItems: 0;
|
|
26
|
-
readonly spacing: "never";
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
readonly TSTupleType: {
|
|
30
|
-
readonly singleLine: {
|
|
31
|
-
readonly maxItems: 3;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
readonly TSTypeParameterDeclaration: {
|
|
35
|
-
readonly singleLine: {
|
|
36
|
-
readonly maxItems: 1;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
readonly JSONArrayExpression: {
|
|
40
|
-
readonly singleLine: {
|
|
41
|
-
readonly maxItems: 0;
|
|
42
|
-
readonly spacing: "never";
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
readonly JSONObjectExpression: {
|
|
46
|
-
readonly singleLine: {
|
|
47
|
-
readonly maxItems: 0;
|
|
48
|
-
readonly spacing: "never";
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
];
|
|
54
|
-
};
|
|
55
|
-
} | {
|
|
56
2
|
rules: {
|
|
57
3
|
readonly "json/no-unsafe-values": import("../state.js").State.ON;
|
|
58
4
|
readonly "json/no-unnormalized-keys": import("../state.js").State.ON;
|
|
@@ -60,6 +6,11 @@ declare const _default: ({
|
|
|
60
6
|
} | {
|
|
61
7
|
rules: {
|
|
62
8
|
readonly "jsonc/no-comments": import("../state.js").State.ON;
|
|
9
|
+
readonly "jsonc/array-bracket-spacing": import("../state.js").State.WARN;
|
|
10
|
+
readonly "jsonc/array-element-newline": readonly [
|
|
11
|
+
import("../state.js").State.WARN,
|
|
12
|
+
"consistent"
|
|
13
|
+
];
|
|
63
14
|
readonly "jsonc/comma-dangle": import("../state.js").State.ON;
|
|
64
15
|
readonly "jsonc/comma-style": import("../state.js").State.WARN;
|
|
65
16
|
readonly "jsonc/indent": readonly [
|
|
@@ -75,6 +26,7 @@ declare const _default: ({
|
|
|
75
26
|
readonly skipComments: true;
|
|
76
27
|
}
|
|
77
28
|
];
|
|
29
|
+
readonly "jsonc/object-property-newline": import("../state.js").State.WARN;
|
|
78
30
|
};
|
|
79
31
|
})[];
|
|
80
32
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
|
package/dist/rules/json/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,eAAe;IACb,IAAI;IACJ,KAAK;CACN,CAAC"}
|
|
@@ -2,6 +2,11 @@ import { State } from "../state.js";
|
|
|
2
2
|
declare const _default: {
|
|
3
3
|
rules: {
|
|
4
4
|
readonly "jsonc/no-comments": State.ON;
|
|
5
|
+
readonly "jsonc/array-bracket-spacing": State.WARN;
|
|
6
|
+
readonly "jsonc/array-element-newline": readonly [
|
|
7
|
+
State.WARN,
|
|
8
|
+
"consistent"
|
|
9
|
+
];
|
|
5
10
|
readonly "jsonc/comma-dangle": State.ON;
|
|
6
11
|
readonly "jsonc/comma-style": State.WARN;
|
|
7
12
|
readonly "jsonc/indent": readonly [
|
|
@@ -17,6 +22,7 @@ declare const _default: {
|
|
|
17
22
|
readonly skipComments: true;
|
|
18
23
|
}
|
|
19
24
|
];
|
|
25
|
+
readonly "jsonc/object-property-newline": State.WARN;
|
|
20
26
|
};
|
|
21
27
|
};
|
|
22
28
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../src/rules/json/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../src/rules/json/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;AAGjC,wBA2DE"}
|
package/dist/rules/json/jsonc.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
rules: {
|
|
3
3
|
"jsonc/no-comments": 2,
|
|
4
|
+
"jsonc/array-bracket-spacing": 1,
|
|
5
|
+
"jsonc/array-element-newline": [
|
|
6
|
+
1,
|
|
7
|
+
"consistent",
|
|
8
|
+
],
|
|
4
9
|
"jsonc/comma-dangle": 2,
|
|
5
10
|
"jsonc/comma-style": 1,
|
|
6
11
|
"jsonc/indent": [
|
|
@@ -16,6 +21,7 @@ export default {
|
|
|
16
21
|
skipComments: true,
|
|
17
22
|
},
|
|
18
23
|
],
|
|
24
|
+
"jsonc/object-property-newline": 1,
|
|
19
25
|
},
|
|
20
26
|
};
|
|
21
27
|
//# sourceMappingURL=jsonc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../src/rules/json/jsonc.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAML,mBAAmB,GAAU;
|
|
1
|
+
{"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../src/rules/json/jsonc.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAML,mBAAmB,GAAU;QAmB7B,6BAA6B,GAAY;QACzC,6BAA6B,EAAE;;YAE7B,YAAY;SACb;QACD,oBAAoB,GAAU;QAC9B,mBAAmB,GAAY;QAC/B,cAAc,EAAE;;YAEd,CAAC;SACF;QACD,mBAAmB,GAAY;QAC/B,oBAAoB,GAAU;QAE9B,+BAA+B,EAAE;;YAE/B;gBACE,WAAW,EAAE,IAAI;gBACjB,YAAY,EAAE,IAAI;aACnB;SACF;QAQD,+BAA+B,GAAY;KAInC;CACX,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$schema": "https://json.schemastore.org/package",
|
|
4
4
|
"$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
|
|
5
5
|
"name": "@eslinted/defaults",
|
|
6
|
-
"version": "20.4.0
|
|
6
|
+
"version": "20.4.0",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted-defaults",
|
|
8
8
|
"description": "Default scopes for `linted`",
|
|
9
9
|
"keywords": [],
|
|
@@ -3,9 +3,21 @@ import { State } from "./state";
|
|
|
3
3
|
// DOC: https://eslint.style/rules
|
|
4
4
|
export default {
|
|
5
5
|
rules: {
|
|
6
|
-
// "
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
// "global"
|
|
7
|
+
"stylistic/eol-last": State.WARN,
|
|
8
|
+
"stylistic/linebreak-style": State.WARN,
|
|
9
|
+
// end
|
|
10
|
+
|
|
11
|
+
"stylistic/array-bracket-newline": State.WARN,
|
|
12
|
+
"stylistic/array-bracket-spacing": State.WARN,
|
|
13
|
+
"stylistic/array-element-newline": [
|
|
14
|
+
State.WARN,
|
|
15
|
+
{
|
|
16
|
+
consistent: true,
|
|
17
|
+
multiline: true,
|
|
18
|
+
minItems: 3,
|
|
19
|
+
},
|
|
20
|
+
],
|
|
9
21
|
"stylistic/arrow-parens": [
|
|
10
22
|
State.WARN,
|
|
11
23
|
"as-needed",
|
|
@@ -32,9 +44,15 @@ export default {
|
|
|
32
44
|
"property",
|
|
33
45
|
],
|
|
34
46
|
// "stylistic/eol-last": State.OFF /* @global */,
|
|
35
|
-
|
|
47
|
+
"stylistic/function-call-argument-newline": [
|
|
48
|
+
State.WARN,
|
|
49
|
+
"consistent",
|
|
50
|
+
],
|
|
36
51
|
"stylistic/function-call-spacing": State.WARN,
|
|
37
|
-
|
|
52
|
+
"stylistic/function-paren-newline": [
|
|
53
|
+
State.WARN,
|
|
54
|
+
"multiline-arguments",
|
|
55
|
+
] /* BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290 */,
|
|
38
56
|
"stylistic/generator-star-spacing": State.WARN,
|
|
39
57
|
"stylistic/implicit-arrow-linebreak": State.WARN,
|
|
40
58
|
"stylistic/indent": [
|
|
@@ -102,7 +120,12 @@ export default {
|
|
|
102
120
|
"always-multiline",
|
|
103
121
|
],
|
|
104
122
|
// "stylistic/new-parens": State.OFF,
|
|
105
|
-
"stylistic/newline-per-chained-call":
|
|
123
|
+
"stylistic/newline-per-chained-call": [
|
|
124
|
+
State.WARN,
|
|
125
|
+
{
|
|
126
|
+
ignoreChainWithDepth: 1,
|
|
127
|
+
},
|
|
128
|
+
],
|
|
106
129
|
// "stylistic/no-confusing-arrow": State.OFF,
|
|
107
130
|
"stylistic/no-extra-parens": State.WARN,
|
|
108
131
|
"stylistic/no-extra-semi": State.WARN,
|
|
@@ -133,9 +156,22 @@ export default {
|
|
|
133
156
|
State.WARN,
|
|
134
157
|
"below",
|
|
135
158
|
],
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
159
|
+
"stylistic/object-curly-newline": [
|
|
160
|
+
State.WARN,
|
|
161
|
+
{
|
|
162
|
+
consistent: true,
|
|
163
|
+
multiline: true,
|
|
164
|
+
minProperties: 3,
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
"stylistic/object-curly-spacing": [
|
|
168
|
+
State.WARN,
|
|
169
|
+
"always",
|
|
170
|
+
{
|
|
171
|
+
emptyObjects: "never",
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
"stylistic/object-property-newline": State.WARN,
|
|
139
175
|
"stylistic/one-var-declaration-per-line": [
|
|
140
176
|
State.WARN,
|
|
141
177
|
"always",
|
|
@@ -178,7 +214,7 @@ export default {
|
|
|
178
214
|
named: "never",
|
|
179
215
|
},
|
|
180
216
|
],
|
|
181
|
-
|
|
217
|
+
"stylistic/space-in-parens": State.WARN,
|
|
182
218
|
"stylistic/space-infix-ops": State.WARN,
|
|
183
219
|
"stylistic/space-unary-ops": State.WARN,
|
|
184
220
|
"stylistic/spaced-comment": [
|
package/src/rules/js.ts
CHANGED
package/src/rules/json/index.ts
CHANGED
package/src/rules/json/jsonc.ts
CHANGED
|
@@ -27,8 +27,11 @@ export default {
|
|
|
27
27
|
// "jsonc/valid-json-number": State.OFF,
|
|
28
28
|
// "jsonc/vue-custom-block/no-parsing-error": State.OFF,
|
|
29
29
|
// "jsonc/array-bracket-newline": State.OFF /* BUG: DO NOT CONFIGURE */,
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
"jsonc/array-bracket-spacing": State.WARN,
|
|
31
|
+
"jsonc/array-element-newline": [
|
|
32
|
+
State.WARN,
|
|
33
|
+
"consistent",
|
|
34
|
+
],
|
|
32
35
|
"jsonc/comma-dangle": State.ON,
|
|
33
36
|
"jsonc/comma-style": State.WARN,
|
|
34
37
|
"jsonc/indent": [
|
|
@@ -50,9 +53,9 @@ export default {
|
|
|
50
53
|
// "jsonc/no-octal": State.OFF,
|
|
51
54
|
// "jsonc/no-sparse-arrays": State.OFF,
|
|
52
55
|
// "jsonc/no-useless-escape": State.OFF,
|
|
53
|
-
// "jsonc/object-curly-newline": State.OFF /*
|
|
54
|
-
// "jsonc/object-curly-spacing": State.OFF /*
|
|
55
|
-
|
|
56
|
+
// "jsonc/object-curly-newline": State.OFF /* buggy */,
|
|
57
|
+
// "jsonc/object-curly-spacing": State.OFF /* buggy */,
|
|
58
|
+
"jsonc/object-property-newline": State.WARN,
|
|
56
59
|
// "jsonc/quote-props": State.OFF,
|
|
57
60
|
// "jsonc/quotes": State.OFF,
|
|
58
61
|
// "jsonc/space-unary-ops": State.OFF,
|
package/dist/rules/global.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { State } from "./state.js";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
rules: {
|
|
4
|
-
readonly "stylistic/eol-last": State.WARN;
|
|
5
|
-
readonly "stylistic/linebreak-style": State.WARN;
|
|
6
|
-
readonly "stylistic/exp-list-style": readonly [
|
|
7
|
-
State.WARN,
|
|
8
|
-
{
|
|
9
|
-
readonly singleLine: {
|
|
10
|
-
readonly maxItems: 2;
|
|
11
|
-
};
|
|
12
|
-
readonly overrides: {
|
|
13
|
-
readonly ExportNamedDeclaration: {
|
|
14
|
-
readonly singleLine: {
|
|
15
|
-
readonly maxItems: 1;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
readonly TSInterfaceBody: {
|
|
19
|
-
readonly singleLine: {
|
|
20
|
-
readonly maxItems: 0;
|
|
21
|
-
readonly spacing: "never";
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
readonly TSEnumBody: {
|
|
25
|
-
readonly singleLine: {
|
|
26
|
-
readonly maxItems: 0;
|
|
27
|
-
readonly spacing: "never";
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
readonly TSTupleType: {
|
|
31
|
-
readonly singleLine: {
|
|
32
|
-
readonly maxItems: 3;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
readonly TSTypeParameterDeclaration: {
|
|
36
|
-
readonly singleLine: {
|
|
37
|
-
readonly maxItems: 1;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
readonly JSONArrayExpression: {
|
|
41
|
-
readonly singleLine: {
|
|
42
|
-
readonly maxItems: 0;
|
|
43
|
-
readonly spacing: "never";
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
readonly JSONObjectExpression: {
|
|
47
|
-
readonly singleLine: {
|
|
48
|
-
readonly maxItems: 0;
|
|
49
|
-
readonly spacing: "never";
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
];
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
export default _default;
|
|
58
|
-
//# sourceMappingURL=global.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/rules/global.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhC,wBAsDE"}
|
package/dist/rules/global.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
rules: {
|
|
3
|
-
"stylistic/eol-last": 1,
|
|
4
|
-
"stylistic/linebreak-style": 1,
|
|
5
|
-
"stylistic/exp-list-style": [
|
|
6
|
-
1,
|
|
7
|
-
{
|
|
8
|
-
singleLine: {
|
|
9
|
-
maxItems: 2,
|
|
10
|
-
},
|
|
11
|
-
overrides: {
|
|
12
|
-
ExportNamedDeclaration: {
|
|
13
|
-
singleLine: {
|
|
14
|
-
maxItems: 1,
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
TSInterfaceBody: {
|
|
18
|
-
singleLine: {
|
|
19
|
-
maxItems: 0,
|
|
20
|
-
spacing: "never",
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
TSEnumBody: {
|
|
24
|
-
singleLine: {
|
|
25
|
-
maxItems: 0,
|
|
26
|
-
spacing: "never",
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
TSTupleType: {
|
|
30
|
-
singleLine: {
|
|
31
|
-
maxItems: 3,
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
TSTypeParameterDeclaration: {
|
|
35
|
-
singleLine: {
|
|
36
|
-
maxItems: 1,
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
JSONArrayExpression: {
|
|
40
|
-
singleLine: {
|
|
41
|
-
maxItems: 0,
|
|
42
|
-
spacing: "never",
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
JSONObjectExpression: {
|
|
46
|
-
singleLine: {
|
|
47
|
-
maxItems: 0,
|
|
48
|
-
spacing: "never",
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=global.js.map
|
package/dist/rules/global.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/rules/global.ts"],"names":[],"mappings":"AAEA,eAAe;IACb,KAAK,EAAE;QACL,oBAAoB,GAAY;QAChC,2BAA2B,GAAY;QACvC,0BAA0B,EAAE;;YAE1B;gBACE,UAAU,EAAE;oBACV,QAAQ,EAAE,CAAC;iBACZ;gBACD,SAAS,EAAE;oBACT,sBAAsB,EAAE;wBACtB,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;yBACZ;qBACF;oBACD,eAAe,EAAE;wBACf,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;4BACX,OAAO,EAAE,OAAO;yBACjB;qBACF;oBACD,UAAU,EAAE;wBACV,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;4BACX,OAAO,EAAE,OAAO;yBACjB;qBACF;oBACD,WAAW,EAAE;wBACX,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;yBACZ;qBACF;oBACD,0BAA0B,EAAE;wBAC1B,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;yBACZ;qBACF;oBACD,mBAAmB,EAAE;wBACnB,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;4BACX,OAAO,EAAE,OAAO;yBACjB;qBACF;oBACD,oBAAoB,EAAE;wBACpB,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;4BACX,OAAO,EAAE,OAAO;yBACjB;qBACF;iBACF;aACF;SACF;KACO;CACX,CAAC"}
|
package/src/rules/global.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { State } from "./state";
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
rules: {
|
|
5
|
-
"stylistic/eol-last": State.WARN,
|
|
6
|
-
"stylistic/linebreak-style": State.WARN,
|
|
7
|
-
"stylistic/exp-list-style": [
|
|
8
|
-
State.WARN,
|
|
9
|
-
{
|
|
10
|
-
singleLine: {
|
|
11
|
-
maxItems: 2,
|
|
12
|
-
},
|
|
13
|
-
overrides: {
|
|
14
|
-
ExportNamedDeclaration: {
|
|
15
|
-
singleLine: {
|
|
16
|
-
maxItems: 1,
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
TSInterfaceBody: {
|
|
20
|
-
singleLine: {
|
|
21
|
-
maxItems: 0,
|
|
22
|
-
spacing: "never",
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
TSEnumBody: {
|
|
26
|
-
singleLine: {
|
|
27
|
-
maxItems: 0,
|
|
28
|
-
spacing: "never",
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
TSTupleType: {
|
|
32
|
-
singleLine: {
|
|
33
|
-
maxItems: 3,
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
TSTypeParameterDeclaration: {
|
|
37
|
-
singleLine: {
|
|
38
|
-
maxItems: 1,
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
JSONArrayExpression: {
|
|
42
|
-
singleLine: {
|
|
43
|
-
maxItems: 0,
|
|
44
|
-
spacing: "never",
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
JSONObjectExpression: {
|
|
48
|
-
singleLine: {
|
|
49
|
-
maxItems: 0,
|
|
50
|
-
spacing: "never",
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
} as const,
|
|
57
|
-
};
|