@eslinted/defaults 20.3.0 → 20.4.0-rc.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 +59 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/rules/global.d.ts +45 -0
- package/dist/rules/global.d.ts.map +1 -1
- package/dist/rules/global.js +45 -0
- package/dist/rules/global.js.map +1 -1
- package/dist/rules/index.d.ts +59 -14
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/js.d.ts +9 -9
- package/dist/rules/js.stylistic.d.ts +9 -9
- package/dist/rules/js.stylistic.js +9 -9
- package/dist/rules/js.stylistic.js.map +1 -1
- package/dist/rules/json/index.d.ts +5 -5
- package/dist/rules/json/jsonc.d.ts +5 -5
- package/dist/rules/json/jsonc.js +5 -5
- package/dist/rules/json/jsonc.js.map +1 -1
- package/dist/rules/yml/index.d.ts.map +1 -1
- package/dist/rules/yml/index.js.map +1 -1
- package/package.json +1 -1
- package/src/rules/global.ts +45 -0
- package/src/rules/js.stylistic.ts +14 -14
- package/src/rules/json/jsonc.ts +8 -8
- package/src/rules/yml/index.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,51 @@ declare const _default: {
|
|
|
18
18
|
rules: {
|
|
19
19
|
readonly "stylistic/eol-last": import("./rules/state.js").State.WARN;
|
|
20
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
|
+
};
|
|
37
|
+
};
|
|
38
|
+
readonly TSEnumBody: {
|
|
39
|
+
readonly singleLine: {
|
|
40
|
+
readonly maxItems: 0;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
readonly TSTupleType: {
|
|
44
|
+
readonly singleLine: {
|
|
45
|
+
readonly maxItems: 3;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
readonly TSTypeParameterDeclaration: {
|
|
49
|
+
readonly singleLine: {
|
|
50
|
+
readonly maxItems: 1;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
readonly JSONArrayExpression: {
|
|
54
|
+
readonly singleLine: {
|
|
55
|
+
readonly maxItems: 0;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
readonly JSONObjectExpression: {
|
|
59
|
+
readonly singleLine: {
|
|
60
|
+
readonly maxItems: 0;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
];
|
|
21
66
|
};
|
|
22
67
|
}[];
|
|
23
68
|
js: ({
|
|
@@ -307,10 +352,10 @@ declare const _default: {
|
|
|
307
352
|
};
|
|
308
353
|
} | {
|
|
309
354
|
rules: {
|
|
310
|
-
readonly "stylistic/array-bracket-newline": import("./rules/state.js").State.
|
|
311
|
-
readonly "stylistic/array-bracket-spacing": import("./rules/state.js").State.
|
|
355
|
+
readonly "stylistic/array-bracket-newline": import("./rules/state.js").State.OFF;
|
|
356
|
+
readonly "stylistic/array-bracket-spacing": import("./rules/state.js").State.OFF;
|
|
312
357
|
readonly "stylistic/array-element-newline": readonly [
|
|
313
|
-
import("./rules/state.js").State.
|
|
358
|
+
import("./rules/state.js").State.OFF,
|
|
314
359
|
{
|
|
315
360
|
readonly consistent: true;
|
|
316
361
|
readonly multiline: true;
|
|
@@ -343,12 +388,12 @@ declare const _default: {
|
|
|
343
388
|
"property"
|
|
344
389
|
];
|
|
345
390
|
readonly "stylistic/function-call-argument-newline": readonly [
|
|
346
|
-
import("./rules/state.js").State.
|
|
391
|
+
import("./rules/state.js").State.OFF,
|
|
347
392
|
"consistent"
|
|
348
393
|
];
|
|
349
394
|
readonly "stylistic/function-call-spacing": import("./rules/state.js").State.WARN;
|
|
350
395
|
readonly "stylistic/function-paren-newline": readonly [
|
|
351
|
-
import("./rules/state.js").State.
|
|
396
|
+
import("./rules/state.js").State.OFF,
|
|
352
397
|
"multiline-arguments"
|
|
353
398
|
];
|
|
354
399
|
readonly "stylistic/generator-star-spacing": import("./rules/state.js").State.WARN;
|
|
@@ -443,7 +488,7 @@ declare const _default: {
|
|
|
443
488
|
"below"
|
|
444
489
|
];
|
|
445
490
|
readonly "stylistic/object-curly-newline": readonly [
|
|
446
|
-
import("./rules/state.js").State.
|
|
491
|
+
import("./rules/state.js").State.OFF,
|
|
447
492
|
{
|
|
448
493
|
readonly consistent: true;
|
|
449
494
|
readonly multiline: true;
|
|
@@ -451,13 +496,13 @@ declare const _default: {
|
|
|
451
496
|
}
|
|
452
497
|
];
|
|
453
498
|
readonly "stylistic/object-curly-spacing": readonly [
|
|
454
|
-
import("./rules/state.js").State.
|
|
499
|
+
import("./rules/state.js").State.OFF,
|
|
455
500
|
"always",
|
|
456
501
|
{
|
|
457
502
|
readonly emptyObjects: "never";
|
|
458
503
|
}
|
|
459
504
|
];
|
|
460
|
-
readonly "stylistic/object-property-newline": import("./rules/state.js").State.
|
|
505
|
+
readonly "stylistic/object-property-newline": import("./rules/state.js").State.OFF;
|
|
461
506
|
readonly "stylistic/one-var-declaration-per-line": readonly [
|
|
462
507
|
import("./rules/state.js").State.WARN,
|
|
463
508
|
"always"
|
|
@@ -499,7 +544,7 @@ declare const _default: {
|
|
|
499
544
|
readonly named: "never";
|
|
500
545
|
}
|
|
501
546
|
];
|
|
502
|
-
readonly "stylistic/space-in-parens": import("./rules/state.js").State.
|
|
547
|
+
readonly "stylistic/space-in-parens": import("./rules/state.js").State.OFF;
|
|
503
548
|
readonly "stylistic/space-infix-ops": import("./rules/state.js").State.WARN;
|
|
504
549
|
readonly "stylistic/space-unary-ops": import("./rules/state.js").State.WARN;
|
|
505
550
|
readonly "stylistic/spaced-comment": readonly [
|
|
@@ -983,9 +1028,9 @@ declare const _default: {
|
|
|
983
1028
|
} | {
|
|
984
1029
|
rules: {
|
|
985
1030
|
readonly "jsonc/no-comments": import("./rules/state.js").State.ON;
|
|
986
|
-
readonly "jsonc/array-bracket-spacing": import("./rules/state.js").State.
|
|
1031
|
+
readonly "jsonc/array-bracket-spacing": import("./rules/state.js").State.OFF;
|
|
987
1032
|
readonly "jsonc/array-element-newline": readonly [
|
|
988
|
-
import("./rules/state.js").State.
|
|
1033
|
+
import("./rules/state.js").State.OFF,
|
|
989
1034
|
"consistent"
|
|
990
1035
|
];
|
|
991
1036
|
readonly "jsonc/comma-dangle": import("./rules/state.js").State.ON;
|
|
@@ -1004,7 +1049,7 @@ declare const _default: {
|
|
|
1004
1049
|
}
|
|
1005
1050
|
];
|
|
1006
1051
|
readonly "jsonc/object-curly-newline": readonly [
|
|
1007
|
-
import("./rules/state.js").State.
|
|
1052
|
+
import("./rules/state.js").State.OFF,
|
|
1008
1053
|
{
|
|
1009
1054
|
readonly consistent: true;
|
|
1010
1055
|
readonly multiline: true;
|
|
@@ -1012,13 +1057,13 @@ declare const _default: {
|
|
|
1012
1057
|
}
|
|
1013
1058
|
];
|
|
1014
1059
|
readonly "jsonc/object-curly-spacing": readonly [
|
|
1015
|
-
import("./rules/state.js").State.
|
|
1060
|
+
import("./rules/state.js").State.OFF,
|
|
1016
1061
|
"always",
|
|
1017
1062
|
{
|
|
1018
1063
|
readonly emptyObjects: "never";
|
|
1019
1064
|
}
|
|
1020
1065
|
];
|
|
1021
|
-
readonly "jsonc/object-property-newline": import("./rules/state.js").State.
|
|
1066
|
+
readonly "jsonc/object-property-newline": import("./rules/state.js").State.OFF;
|
|
1022
1067
|
};
|
|
1023
1068
|
})[];
|
|
1024
1069
|
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/global.d.ts
CHANGED
|
@@ -3,6 +3,51 @@ declare const _default: {
|
|
|
3
3
|
rules: {
|
|
4
4
|
readonly "stylistic/eol-last": State.WARN;
|
|
5
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
|
+
};
|
|
22
|
+
};
|
|
23
|
+
readonly TSEnumBody: {
|
|
24
|
+
readonly singleLine: {
|
|
25
|
+
readonly maxItems: 0;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
readonly TSTupleType: {
|
|
29
|
+
readonly singleLine: {
|
|
30
|
+
readonly maxItems: 3;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
readonly TSTypeParameterDeclaration: {
|
|
34
|
+
readonly singleLine: {
|
|
35
|
+
readonly maxItems: 1;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
readonly JSONArrayExpression: {
|
|
39
|
+
readonly singleLine: {
|
|
40
|
+
readonly maxItems: 0;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
readonly JSONObjectExpression: {
|
|
44
|
+
readonly singleLine: {
|
|
45
|
+
readonly maxItems: 0;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
];
|
|
6
51
|
};
|
|
7
52
|
}[];
|
|
8
53
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/rules/global.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC
|
|
1
|
+
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/rules/global.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhC,wBAoDE"}
|
package/dist/rules/global.js
CHANGED
|
@@ -3,6 +3,51 @@ export default [
|
|
|
3
3
|
rules: {
|
|
4
4
|
"stylistic/eol-last": 1,
|
|
5
5
|
"stylistic/linebreak-style": 1,
|
|
6
|
+
"stylistic/exp-list-style": [
|
|
7
|
+
1,
|
|
8
|
+
{
|
|
9
|
+
singleLine: {
|
|
10
|
+
maxItems: 2,
|
|
11
|
+
},
|
|
12
|
+
overrides: {
|
|
13
|
+
ExportNamedDeclaration: {
|
|
14
|
+
singleLine: {
|
|
15
|
+
maxItems: 1,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
TSInterfaceBody: {
|
|
19
|
+
singleLine: {
|
|
20
|
+
maxItems: 0,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
TSEnumBody: {
|
|
24
|
+
singleLine: {
|
|
25
|
+
maxItems: 0,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
TSTupleType: {
|
|
29
|
+
singleLine: {
|
|
30
|
+
maxItems: 3,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
TSTypeParameterDeclaration: {
|
|
34
|
+
singleLine: {
|
|
35
|
+
maxItems: 1,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
JSONArrayExpression: {
|
|
39
|
+
singleLine: {
|
|
40
|
+
maxItems: 0,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
JSONObjectExpression: {
|
|
44
|
+
singleLine: {
|
|
45
|
+
maxItems: 0,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
],
|
|
6
51
|
},
|
|
7
52
|
},
|
|
8
53
|
];
|
package/dist/rules/global.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/rules/global.ts"],"names":[],"mappings":"AAEA,eAAe;IACb;QACE,KAAK,EAAE;YACL,oBAAoB,GAAY;YAChC,2BAA2B,GAAY;
|
|
1
|
+
{"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/rules/global.ts"],"names":[],"mappings":"AAEA,eAAe;IACb;QACE,KAAK,EAAE;YACL,oBAAoB,GAAY;YAChC,2BAA2B,GAAY;YACvC,0BAA0B,EAAE;;gBAE1B;oBACE,UAAU,EAAE;wBACV,QAAQ,EAAE,CAAC;qBACZ;oBACD,SAAS,EAAE;wBACT,sBAAsB,EAAE;4BACtB,UAAU,EAAE;gCACV,QAAQ,EAAE,CAAC;6BACZ;yBACF;wBACD,eAAe,EAAE;4BACf,UAAU,EAAE;gCACV,QAAQ,EAAE,CAAC;6BACZ;yBACF;wBACD,UAAU,EAAE;4BACV,UAAU,EAAE;gCACV,QAAQ,EAAE,CAAC;6BACZ;yBACF;wBACD,WAAW,EAAE;4BACX,UAAU,EAAE;gCACV,QAAQ,EAAE,CAAC;6BACZ;yBACF;wBACD,0BAA0B,EAAE;4BAC1B,UAAU,EAAE;gCACV,QAAQ,EAAE,CAAC;6BACZ;yBACF;wBACD,mBAAmB,EAAE;4BACnB,UAAU,EAAE;gCACV,QAAQ,EAAE,CAAC;6BACZ;yBACF;wBACD,oBAAoB,EAAE;4BACpB,UAAU,EAAE;gCACV,QAAQ,EAAE,CAAC;6BACZ;yBACF;qBACF;iBACF;aACF;SACO;KACX;CACF,CAAC"}
|
package/dist/rules/index.d.ts
CHANGED
|
@@ -3,6 +3,51 @@ declare const _default: {
|
|
|
3
3
|
rules: {
|
|
4
4
|
readonly "stylistic/eol-last": import("./state.js").State.WARN;
|
|
5
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
|
+
};
|
|
22
|
+
};
|
|
23
|
+
readonly TSEnumBody: {
|
|
24
|
+
readonly singleLine: {
|
|
25
|
+
readonly maxItems: 0;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
readonly TSTupleType: {
|
|
29
|
+
readonly singleLine: {
|
|
30
|
+
readonly maxItems: 3;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
readonly TSTypeParameterDeclaration: {
|
|
34
|
+
readonly singleLine: {
|
|
35
|
+
readonly maxItems: 1;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
readonly JSONArrayExpression: {
|
|
39
|
+
readonly singleLine: {
|
|
40
|
+
readonly maxItems: 0;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
readonly JSONObjectExpression: {
|
|
44
|
+
readonly singleLine: {
|
|
45
|
+
readonly maxItems: 0;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
];
|
|
6
51
|
};
|
|
7
52
|
}[];
|
|
8
53
|
js: ({
|
|
@@ -292,10 +337,10 @@ declare const _default: {
|
|
|
292
337
|
};
|
|
293
338
|
} | {
|
|
294
339
|
rules: {
|
|
295
|
-
readonly "stylistic/array-bracket-newline": import("./state.js").State.
|
|
296
|
-
readonly "stylistic/array-bracket-spacing": import("./state.js").State.
|
|
340
|
+
readonly "stylistic/array-bracket-newline": import("./state.js").State.OFF;
|
|
341
|
+
readonly "stylistic/array-bracket-spacing": import("./state.js").State.OFF;
|
|
297
342
|
readonly "stylistic/array-element-newline": readonly [
|
|
298
|
-
import("./state.js").State.
|
|
343
|
+
import("./state.js").State.OFF,
|
|
299
344
|
{
|
|
300
345
|
readonly consistent: true;
|
|
301
346
|
readonly multiline: true;
|
|
@@ -328,12 +373,12 @@ declare const _default: {
|
|
|
328
373
|
"property"
|
|
329
374
|
];
|
|
330
375
|
readonly "stylistic/function-call-argument-newline": readonly [
|
|
331
|
-
import("./state.js").State.
|
|
376
|
+
import("./state.js").State.OFF,
|
|
332
377
|
"consistent"
|
|
333
378
|
];
|
|
334
379
|
readonly "stylistic/function-call-spacing": import("./state.js").State.WARN;
|
|
335
380
|
readonly "stylistic/function-paren-newline": readonly [
|
|
336
|
-
import("./state.js").State.
|
|
381
|
+
import("./state.js").State.OFF,
|
|
337
382
|
"multiline-arguments"
|
|
338
383
|
];
|
|
339
384
|
readonly "stylistic/generator-star-spacing": import("./state.js").State.WARN;
|
|
@@ -428,7 +473,7 @@ declare const _default: {
|
|
|
428
473
|
"below"
|
|
429
474
|
];
|
|
430
475
|
readonly "stylistic/object-curly-newline": readonly [
|
|
431
|
-
import("./state.js").State.
|
|
476
|
+
import("./state.js").State.OFF,
|
|
432
477
|
{
|
|
433
478
|
readonly consistent: true;
|
|
434
479
|
readonly multiline: true;
|
|
@@ -436,13 +481,13 @@ declare const _default: {
|
|
|
436
481
|
}
|
|
437
482
|
];
|
|
438
483
|
readonly "stylistic/object-curly-spacing": readonly [
|
|
439
|
-
import("./state.js").State.
|
|
484
|
+
import("./state.js").State.OFF,
|
|
440
485
|
"always",
|
|
441
486
|
{
|
|
442
487
|
readonly emptyObjects: "never";
|
|
443
488
|
}
|
|
444
489
|
];
|
|
445
|
-
readonly "stylistic/object-property-newline": import("./state.js").State.
|
|
490
|
+
readonly "stylistic/object-property-newline": import("./state.js").State.OFF;
|
|
446
491
|
readonly "stylistic/one-var-declaration-per-line": readonly [
|
|
447
492
|
import("./state.js").State.WARN,
|
|
448
493
|
"always"
|
|
@@ -484,7 +529,7 @@ declare const _default: {
|
|
|
484
529
|
readonly named: "never";
|
|
485
530
|
}
|
|
486
531
|
];
|
|
487
|
-
readonly "stylistic/space-in-parens": import("./state.js").State.
|
|
532
|
+
readonly "stylistic/space-in-parens": import("./state.js").State.OFF;
|
|
488
533
|
readonly "stylistic/space-infix-ops": import("./state.js").State.WARN;
|
|
489
534
|
readonly "stylistic/space-unary-ops": import("./state.js").State.WARN;
|
|
490
535
|
readonly "stylistic/spaced-comment": readonly [
|
|
@@ -968,9 +1013,9 @@ declare const _default: {
|
|
|
968
1013
|
} | {
|
|
969
1014
|
rules: {
|
|
970
1015
|
readonly "jsonc/no-comments": import("./state.js").State.ON;
|
|
971
|
-
readonly "jsonc/array-bracket-spacing": import("./state.js").State.
|
|
1016
|
+
readonly "jsonc/array-bracket-spacing": import("./state.js").State.OFF;
|
|
972
1017
|
readonly "jsonc/array-element-newline": readonly [
|
|
973
|
-
import("./state.js").State.
|
|
1018
|
+
import("./state.js").State.OFF,
|
|
974
1019
|
"consistent"
|
|
975
1020
|
];
|
|
976
1021
|
readonly "jsonc/comma-dangle": import("./state.js").State.ON;
|
|
@@ -989,7 +1034,7 @@ declare const _default: {
|
|
|
989
1034
|
}
|
|
990
1035
|
];
|
|
991
1036
|
readonly "jsonc/object-curly-newline": readonly [
|
|
992
|
-
import("./state.js").State.
|
|
1037
|
+
import("./state.js").State.OFF,
|
|
993
1038
|
{
|
|
994
1039
|
readonly consistent: true;
|
|
995
1040
|
readonly multiline: true;
|
|
@@ -997,13 +1042,13 @@ declare const _default: {
|
|
|
997
1042
|
}
|
|
998
1043
|
];
|
|
999
1044
|
readonly "jsonc/object-curly-spacing": readonly [
|
|
1000
|
-
import("./state.js").State.
|
|
1045
|
+
import("./state.js").State.OFF,
|
|
1001
1046
|
"always",
|
|
1002
1047
|
{
|
|
1003
1048
|
readonly emptyObjects: "never";
|
|
1004
1049
|
}
|
|
1005
1050
|
];
|
|
1006
|
-
readonly "jsonc/object-property-newline": import("./state.js").State.
|
|
1051
|
+
readonly "jsonc/object-property-newline": import("./state.js").State.OFF;
|
|
1007
1052
|
};
|
|
1008
1053
|
})[];
|
|
1009
1054
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,wBAUE"}
|
package/dist/rules/js.d.ts
CHANGED
|
@@ -285,10 +285,10 @@ declare const _default: ({
|
|
|
285
285
|
};
|
|
286
286
|
} | {
|
|
287
287
|
rules: {
|
|
288
|
-
readonly "stylistic/array-bracket-newline": import("./state.js").State.
|
|
289
|
-
readonly "stylistic/array-bracket-spacing": import("./state.js").State.
|
|
288
|
+
readonly "stylistic/array-bracket-newline": import("./state.js").State.OFF;
|
|
289
|
+
readonly "stylistic/array-bracket-spacing": import("./state.js").State.OFF;
|
|
290
290
|
readonly "stylistic/array-element-newline": readonly [
|
|
291
|
-
import("./state.js").State.
|
|
291
|
+
import("./state.js").State.OFF,
|
|
292
292
|
{
|
|
293
293
|
readonly consistent: true;
|
|
294
294
|
readonly multiline: true;
|
|
@@ -321,12 +321,12 @@ declare const _default: ({
|
|
|
321
321
|
"property"
|
|
322
322
|
];
|
|
323
323
|
readonly "stylistic/function-call-argument-newline": readonly [
|
|
324
|
-
import("./state.js").State.
|
|
324
|
+
import("./state.js").State.OFF,
|
|
325
325
|
"consistent"
|
|
326
326
|
];
|
|
327
327
|
readonly "stylistic/function-call-spacing": import("./state.js").State.WARN;
|
|
328
328
|
readonly "stylistic/function-paren-newline": readonly [
|
|
329
|
-
import("./state.js").State.
|
|
329
|
+
import("./state.js").State.OFF,
|
|
330
330
|
"multiline-arguments"
|
|
331
331
|
];
|
|
332
332
|
readonly "stylistic/generator-star-spacing": import("./state.js").State.WARN;
|
|
@@ -421,7 +421,7 @@ declare const _default: ({
|
|
|
421
421
|
"below"
|
|
422
422
|
];
|
|
423
423
|
readonly "stylistic/object-curly-newline": readonly [
|
|
424
|
-
import("./state.js").State.
|
|
424
|
+
import("./state.js").State.OFF,
|
|
425
425
|
{
|
|
426
426
|
readonly consistent: true;
|
|
427
427
|
readonly multiline: true;
|
|
@@ -429,13 +429,13 @@ declare const _default: ({
|
|
|
429
429
|
}
|
|
430
430
|
];
|
|
431
431
|
readonly "stylistic/object-curly-spacing": readonly [
|
|
432
|
-
import("./state.js").State.
|
|
432
|
+
import("./state.js").State.OFF,
|
|
433
433
|
"always",
|
|
434
434
|
{
|
|
435
435
|
readonly emptyObjects: "never";
|
|
436
436
|
}
|
|
437
437
|
];
|
|
438
|
-
readonly "stylistic/object-property-newline": import("./state.js").State.
|
|
438
|
+
readonly "stylistic/object-property-newline": import("./state.js").State.OFF;
|
|
439
439
|
readonly "stylistic/one-var-declaration-per-line": readonly [
|
|
440
440
|
import("./state.js").State.WARN,
|
|
441
441
|
"always"
|
|
@@ -477,7 +477,7 @@ declare const _default: ({
|
|
|
477
477
|
readonly named: "never";
|
|
478
478
|
}
|
|
479
479
|
];
|
|
480
|
-
readonly "stylistic/space-in-parens": import("./state.js").State.
|
|
480
|
+
readonly "stylistic/space-in-parens": import("./state.js").State.OFF;
|
|
481
481
|
readonly "stylistic/space-infix-ops": import("./state.js").State.WARN;
|
|
482
482
|
readonly "stylistic/space-unary-ops": import("./state.js").State.WARN;
|
|
483
483
|
readonly "stylistic/spaced-comment": readonly [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { State } from "./state.js";
|
|
2
2
|
declare const _default: {
|
|
3
3
|
rules: {
|
|
4
|
-
readonly "stylistic/array-bracket-newline": State.
|
|
5
|
-
readonly "stylistic/array-bracket-spacing": State.
|
|
4
|
+
readonly "stylistic/array-bracket-newline": State.OFF;
|
|
5
|
+
readonly "stylistic/array-bracket-spacing": State.OFF;
|
|
6
6
|
readonly "stylistic/array-element-newline": readonly [
|
|
7
|
-
State.
|
|
7
|
+
State.OFF,
|
|
8
8
|
{
|
|
9
9
|
readonly consistent: true;
|
|
10
10
|
readonly multiline: true;
|
|
@@ -37,12 +37,12 @@ declare const _default: {
|
|
|
37
37
|
"property"
|
|
38
38
|
];
|
|
39
39
|
readonly "stylistic/function-call-argument-newline": readonly [
|
|
40
|
-
State.
|
|
40
|
+
State.OFF,
|
|
41
41
|
"consistent"
|
|
42
42
|
];
|
|
43
43
|
readonly "stylistic/function-call-spacing": State.WARN;
|
|
44
44
|
readonly "stylistic/function-paren-newline": readonly [
|
|
45
|
-
State.
|
|
45
|
+
State.OFF,
|
|
46
46
|
"multiline-arguments"
|
|
47
47
|
];
|
|
48
48
|
readonly "stylistic/generator-star-spacing": State.WARN;
|
|
@@ -137,7 +137,7 @@ declare const _default: {
|
|
|
137
137
|
"below"
|
|
138
138
|
];
|
|
139
139
|
readonly "stylistic/object-curly-newline": readonly [
|
|
140
|
-
State.
|
|
140
|
+
State.OFF,
|
|
141
141
|
{
|
|
142
142
|
readonly consistent: true;
|
|
143
143
|
readonly multiline: true;
|
|
@@ -145,13 +145,13 @@ declare const _default: {
|
|
|
145
145
|
}
|
|
146
146
|
];
|
|
147
147
|
readonly "stylistic/object-curly-spacing": readonly [
|
|
148
|
-
State.
|
|
148
|
+
State.OFF,
|
|
149
149
|
"always",
|
|
150
150
|
{
|
|
151
151
|
readonly emptyObjects: "never";
|
|
152
152
|
}
|
|
153
153
|
];
|
|
154
|
-
readonly "stylistic/object-property-newline": State.
|
|
154
|
+
readonly "stylistic/object-property-newline": State.OFF;
|
|
155
155
|
readonly "stylistic/one-var-declaration-per-line": readonly [
|
|
156
156
|
State.WARN,
|
|
157
157
|
"always"
|
|
@@ -193,7 +193,7 @@ declare const _default: {
|
|
|
193
193
|
readonly named: "never";
|
|
194
194
|
}
|
|
195
195
|
];
|
|
196
|
-
readonly "stylistic/space-in-parens": State.
|
|
196
|
+
readonly "stylistic/space-in-parens": State.OFF;
|
|
197
197
|
readonly "stylistic/space-infix-ops": State.WARN;
|
|
198
198
|
readonly "stylistic/space-unary-ops": State.WARN;
|
|
199
199
|
readonly "stylistic/spaced-comment": readonly [
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
rules: {
|
|
3
|
-
"stylistic/array-bracket-newline":
|
|
4
|
-
"stylistic/array-bracket-spacing":
|
|
3
|
+
"stylistic/array-bracket-newline": 0,
|
|
4
|
+
"stylistic/array-bracket-spacing": 0,
|
|
5
5
|
"stylistic/array-element-newline": [
|
|
6
|
-
|
|
6
|
+
0,
|
|
7
7
|
{
|
|
8
8
|
consistent: true,
|
|
9
9
|
multiline: true,
|
|
@@ -36,12 +36,12 @@ export default {
|
|
|
36
36
|
"property",
|
|
37
37
|
],
|
|
38
38
|
"stylistic/function-call-argument-newline": [
|
|
39
|
-
|
|
39
|
+
0,
|
|
40
40
|
"consistent",
|
|
41
41
|
],
|
|
42
42
|
"stylistic/function-call-spacing": 1,
|
|
43
43
|
"stylistic/function-paren-newline": [
|
|
44
|
-
|
|
44
|
+
0,
|
|
45
45
|
"multiline-arguments",
|
|
46
46
|
],
|
|
47
47
|
"stylistic/generator-star-spacing": 1,
|
|
@@ -136,7 +136,7 @@ export default {
|
|
|
136
136
|
"below",
|
|
137
137
|
],
|
|
138
138
|
"stylistic/object-curly-newline": [
|
|
139
|
-
|
|
139
|
+
0,
|
|
140
140
|
{
|
|
141
141
|
consistent: true,
|
|
142
142
|
multiline: true,
|
|
@@ -144,13 +144,13 @@ export default {
|
|
|
144
144
|
},
|
|
145
145
|
],
|
|
146
146
|
"stylistic/object-curly-spacing": [
|
|
147
|
-
|
|
147
|
+
0,
|
|
148
148
|
"always",
|
|
149
149
|
{
|
|
150
150
|
emptyObjects: "never",
|
|
151
151
|
},
|
|
152
152
|
],
|
|
153
|
-
"stylistic/object-property-newline":
|
|
153
|
+
"stylistic/object-property-newline": 0,
|
|
154
154
|
"stylistic/one-var-declaration-per-line": [
|
|
155
155
|
1,
|
|
156
156
|
"always",
|
|
@@ -192,7 +192,7 @@ export default {
|
|
|
192
192
|
named: "never",
|
|
193
193
|
},
|
|
194
194
|
],
|
|
195
|
-
"stylistic/space-in-parens":
|
|
195
|
+
"stylistic/space-in-parens": 0,
|
|
196
196
|
"stylistic/space-infix-ops": 1,
|
|
197
197
|
"stylistic/space-unary-ops": 1,
|
|
198
198
|
"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;QACL,iCAAiC,
|
|
1
|
+
{"version":3,"file":"js.stylistic.js","sourceRoot":"","sources":["../../src/rules/js.stylistic.ts"],"names":[],"mappings":"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"}
|
|
@@ -6,9 +6,9 @@ declare const _default: ({
|
|
|
6
6
|
} | {
|
|
7
7
|
rules: {
|
|
8
8
|
readonly "jsonc/no-comments": import("../state.js").State.ON;
|
|
9
|
-
readonly "jsonc/array-bracket-spacing": import("../state.js").State.
|
|
9
|
+
readonly "jsonc/array-bracket-spacing": import("../state.js").State.OFF;
|
|
10
10
|
readonly "jsonc/array-element-newline": readonly [
|
|
11
|
-
import("../state.js").State.
|
|
11
|
+
import("../state.js").State.OFF,
|
|
12
12
|
"consistent"
|
|
13
13
|
];
|
|
14
14
|
readonly "jsonc/comma-dangle": import("../state.js").State.ON;
|
|
@@ -27,7 +27,7 @@ declare const _default: ({
|
|
|
27
27
|
}
|
|
28
28
|
];
|
|
29
29
|
readonly "jsonc/object-curly-newline": readonly [
|
|
30
|
-
import("../state.js").State.
|
|
30
|
+
import("../state.js").State.OFF,
|
|
31
31
|
{
|
|
32
32
|
readonly consistent: true;
|
|
33
33
|
readonly multiline: true;
|
|
@@ -35,13 +35,13 @@ declare const _default: ({
|
|
|
35
35
|
}
|
|
36
36
|
];
|
|
37
37
|
readonly "jsonc/object-curly-spacing": readonly [
|
|
38
|
-
import("../state.js").State.
|
|
38
|
+
import("../state.js").State.OFF,
|
|
39
39
|
"always",
|
|
40
40
|
{
|
|
41
41
|
readonly emptyObjects: "never";
|
|
42
42
|
}
|
|
43
43
|
];
|
|
44
|
-
readonly "jsonc/object-property-newline": import("../state.js").State.
|
|
44
|
+
readonly "jsonc/object-property-newline": import("../state.js").State.OFF;
|
|
45
45
|
};
|
|
46
46
|
})[];
|
|
47
47
|
export default _default;
|
|
@@ -2,9 +2,9 @@ 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.
|
|
5
|
+
readonly "jsonc/array-bracket-spacing": State.OFF;
|
|
6
6
|
readonly "jsonc/array-element-newline": readonly [
|
|
7
|
-
State.
|
|
7
|
+
State.OFF,
|
|
8
8
|
"consistent"
|
|
9
9
|
];
|
|
10
10
|
readonly "jsonc/comma-dangle": State.ON;
|
|
@@ -23,7 +23,7 @@ declare const _default: {
|
|
|
23
23
|
}
|
|
24
24
|
];
|
|
25
25
|
readonly "jsonc/object-curly-newline": readonly [
|
|
26
|
-
State.
|
|
26
|
+
State.OFF,
|
|
27
27
|
{
|
|
28
28
|
readonly consistent: true;
|
|
29
29
|
readonly multiline: true;
|
|
@@ -31,13 +31,13 @@ declare const _default: {
|
|
|
31
31
|
}
|
|
32
32
|
];
|
|
33
33
|
readonly "jsonc/object-curly-spacing": readonly [
|
|
34
|
-
State.
|
|
34
|
+
State.OFF,
|
|
35
35
|
"always",
|
|
36
36
|
{
|
|
37
37
|
readonly emptyObjects: "never";
|
|
38
38
|
}
|
|
39
39
|
];
|
|
40
|
-
readonly "jsonc/object-property-newline": State.
|
|
40
|
+
readonly "jsonc/object-property-newline": State.OFF;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
export default _default;
|
package/dist/rules/json/jsonc.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
rules: {
|
|
3
3
|
"jsonc/no-comments": 2,
|
|
4
|
-
"jsonc/array-bracket-spacing":
|
|
4
|
+
"jsonc/array-bracket-spacing": 0,
|
|
5
5
|
"jsonc/array-element-newline": [
|
|
6
|
-
|
|
6
|
+
0,
|
|
7
7
|
"consistent",
|
|
8
8
|
],
|
|
9
9
|
"jsonc/comma-dangle": 2,
|
|
@@ -22,7 +22,7 @@ export default {
|
|
|
22
22
|
},
|
|
23
23
|
],
|
|
24
24
|
"jsonc/object-curly-newline": [
|
|
25
|
-
|
|
25
|
+
0,
|
|
26
26
|
{
|
|
27
27
|
consistent: true,
|
|
28
28
|
multiline: true,
|
|
@@ -30,13 +30,13 @@ export default {
|
|
|
30
30
|
},
|
|
31
31
|
],
|
|
32
32
|
"jsonc/object-curly-spacing": [
|
|
33
|
-
|
|
33
|
+
0,
|
|
34
34
|
"always",
|
|
35
35
|
{
|
|
36
36
|
emptyObjects: "never",
|
|
37
37
|
},
|
|
38
38
|
],
|
|
39
|
-
"jsonc/object-property-newline":
|
|
39
|
+
"jsonc/object-property-newline": 0,
|
|
40
40
|
},
|
|
41
41
|
};
|
|
42
42
|
//# 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;QAmB7B,6BAA6B,
|
|
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,GAAW;QACxC,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;QAMD,4BAA4B,EAAE;;YAE5B;gBACE,UAAU,EAAE,IAAI;gBAChB,SAAS,EAAE,IAAI;gBACf,aAAa,EAAE,CAAC;aACjB;SACF;QACD,4BAA4B,EAAE;;YAE5B,QAAQ;YACR;gBACE,YAAY,EAAE,OAAO;aACtB;SACF;QACD,+BAA+B,GAAW;KAIlC;CACX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;AAGjC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;AAGjC,wBAsDE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":"AAGA,eAAe;IACb;QACE,KAAK,EAAE;YAEL,2CAA2C,GAAY;YACvD,8CAA8C,GAAY;YAC1D,mBAAmB,GAAY;YAC/B,6CAA6C,GAAY;YACzD,oBAAoB,GAAY;YAKhC,kBAAkB,GAAY;YAE9B,6BAA6B,GAAY;YACzC,mBAAmB,GAAY;YAI/B,wBAAwB,GAAY;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":"AAGA,eAAe;IACb;QACE,KAAK,EAAE;YAEL,2CAA2C,GAAY;YACvD,8CAA8C,GAAY;YAC1D,mBAAmB,GAAY;YAC/B,6CAA6C,GAAY;YACzD,oBAAoB,GAAY;YAKhC,kBAAkB,GAAY;YAE9B,6BAA6B,GAAY;YACzC,mBAAmB,GAAY;YAI/B,wBAAwB,GAAY;YAYpC,6BAA6B,GAAU;YAEvC,oBAAoB,EAAE;;gBAEpB,QAAQ;gBACR;oBACE,UAAU,EAAE,CAAC,GAAG,CAAC;oBACjB,OAAO,EAAE;wBACP,GAAG;wBACH,GAAG;wBACH,IAAI;wBACJ,KAAK;wBACL,MAAM;wBACN,OAAO;wBACP,QAAQ;wBACR,WAAW;qBACZ;iBACF;aACF;SAEO;KACX;CACF,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.
|
|
6
|
+
"version": "20.4.0-rc.0",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted-defaults",
|
|
8
8
|
"description": "Default scopes for `linted`",
|
|
9
9
|
"keywords": [],
|
package/src/rules/global.ts
CHANGED
|
@@ -5,6 +5,51 @@ export default [
|
|
|
5
5
|
rules: {
|
|
6
6
|
"stylistic/eol-last": State.WARN,
|
|
7
7
|
"stylistic/linebreak-style": State.WARN,
|
|
8
|
+
"stylistic/exp-list-style": [
|
|
9
|
+
State.WARN,
|
|
10
|
+
{
|
|
11
|
+
singleLine: {
|
|
12
|
+
maxItems: 2,
|
|
13
|
+
},
|
|
14
|
+
overrides: {
|
|
15
|
+
ExportNamedDeclaration: {
|
|
16
|
+
singleLine: {
|
|
17
|
+
maxItems: 1,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
TSInterfaceBody: {
|
|
21
|
+
singleLine: {
|
|
22
|
+
maxItems: 0,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
TSEnumBody: {
|
|
26
|
+
singleLine: {
|
|
27
|
+
maxItems: 0,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
TSTupleType: {
|
|
31
|
+
singleLine: {
|
|
32
|
+
maxItems: 3,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
TSTypeParameterDeclaration: {
|
|
36
|
+
singleLine: {
|
|
37
|
+
maxItems: 1,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
JSONArrayExpression: {
|
|
41
|
+
singleLine: {
|
|
42
|
+
maxItems: 0,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
JSONObjectExpression: {
|
|
46
|
+
singleLine: {
|
|
47
|
+
maxItems: 0,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
],
|
|
8
53
|
} as const,
|
|
9
54
|
},
|
|
10
55
|
];
|
|
@@ -3,16 +3,16 @@ import { State } from "./state";
|
|
|
3
3
|
// DOC: https://eslint.style/rules
|
|
4
4
|
export default {
|
|
5
5
|
rules: {
|
|
6
|
-
"stylistic/array-bracket-newline": State.
|
|
7
|
-
"stylistic/array-bracket-spacing": State.
|
|
6
|
+
"stylistic/array-bracket-newline": State.OFF /* @global stylistic/list-style */,
|
|
7
|
+
"stylistic/array-bracket-spacing": State.OFF /* @global stylistic/list-style */,
|
|
8
8
|
"stylistic/array-element-newline": [
|
|
9
|
-
State.
|
|
9
|
+
State.OFF,
|
|
10
10
|
{
|
|
11
11
|
consistent: true,
|
|
12
12
|
multiline: true,
|
|
13
13
|
minItems: 3,
|
|
14
14
|
},
|
|
15
|
-
]
|
|
15
|
+
] /* @global stylistic/list-style */,
|
|
16
16
|
"stylistic/arrow-parens": [
|
|
17
17
|
State.WARN,
|
|
18
18
|
"as-needed",
|
|
@@ -40,14 +40,14 @@ export default {
|
|
|
40
40
|
],
|
|
41
41
|
// "stylistic/eol-last": State.OFF /* @global */,
|
|
42
42
|
"stylistic/function-call-argument-newline": [
|
|
43
|
-
State.
|
|
43
|
+
State.OFF,
|
|
44
44
|
"consistent",
|
|
45
|
-
]
|
|
45
|
+
] /* @global stylistic/list-style */,
|
|
46
46
|
"stylistic/function-call-spacing": State.WARN,
|
|
47
47
|
"stylistic/function-paren-newline": [
|
|
48
|
-
State.
|
|
48
|
+
State.OFF,
|
|
49
49
|
"multiline-arguments",
|
|
50
|
-
] /* BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290 */,
|
|
50
|
+
] /* @global stylistic/list-style | BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290 */,
|
|
51
51
|
"stylistic/generator-star-spacing": State.WARN,
|
|
52
52
|
"stylistic/implicit-arrow-linebreak": State.WARN,
|
|
53
53
|
"stylistic/indent": [
|
|
@@ -147,21 +147,21 @@ export default {
|
|
|
147
147
|
"below",
|
|
148
148
|
],
|
|
149
149
|
"stylistic/object-curly-newline": [
|
|
150
|
-
State.
|
|
150
|
+
State.OFF,
|
|
151
151
|
{
|
|
152
152
|
consistent: true,
|
|
153
153
|
multiline: true,
|
|
154
154
|
minProperties: 3,
|
|
155
155
|
},
|
|
156
|
-
]
|
|
156
|
+
] /* @global stylistic/list-style */,
|
|
157
157
|
"stylistic/object-curly-spacing": [
|
|
158
|
-
State.
|
|
158
|
+
State.OFF,
|
|
159
159
|
"always",
|
|
160
160
|
{
|
|
161
161
|
emptyObjects: "never",
|
|
162
162
|
},
|
|
163
|
-
]
|
|
164
|
-
"stylistic/object-property-newline": State.
|
|
163
|
+
] /* @global stylistic/list-style */,
|
|
164
|
+
"stylistic/object-property-newline": State.OFF /* @global stylistic/list-style */,
|
|
165
165
|
"stylistic/one-var-declaration-per-line": [
|
|
166
166
|
State.WARN,
|
|
167
167
|
"always",
|
|
@@ -204,7 +204,7 @@ export default {
|
|
|
204
204
|
named: "never",
|
|
205
205
|
},
|
|
206
206
|
],
|
|
207
|
-
"stylistic/space-in-parens": State.
|
|
207
|
+
"stylistic/space-in-parens": State.OFF /* @global stylistic/list-style */,
|
|
208
208
|
"stylistic/space-infix-ops": State.WARN,
|
|
209
209
|
"stylistic/space-unary-ops": State.WARN,
|
|
210
210
|
"stylistic/spaced-comment": [
|
package/src/rules/json/jsonc.ts
CHANGED
|
@@ -27,11 +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
|
-
"jsonc/array-bracket-spacing": State.
|
|
30
|
+
"jsonc/array-bracket-spacing": State.OFF /* @global stylistic/list-style */,
|
|
31
31
|
"jsonc/array-element-newline": [
|
|
32
|
-
State.
|
|
32
|
+
State.OFF,
|
|
33
33
|
"consistent",
|
|
34
|
-
]
|
|
34
|
+
] /* @global stylistic/list-style */,
|
|
35
35
|
"jsonc/comma-dangle": State.ON,
|
|
36
36
|
"jsonc/comma-style": State.WARN,
|
|
37
37
|
"jsonc/indent": [
|
|
@@ -54,21 +54,21 @@ export default {
|
|
|
54
54
|
// "jsonc/no-sparse-arrays": State.OFF,
|
|
55
55
|
// "jsonc/no-useless-escape": State.OFF,
|
|
56
56
|
"jsonc/object-curly-newline": [
|
|
57
|
-
State.
|
|
57
|
+
State.OFF,
|
|
58
58
|
{
|
|
59
59
|
consistent: true,
|
|
60
60
|
multiline: true,
|
|
61
61
|
minProperties: 2,
|
|
62
62
|
},
|
|
63
|
-
]
|
|
63
|
+
] /* @global stylistic/list-style */,
|
|
64
64
|
"jsonc/object-curly-spacing": [
|
|
65
|
-
State.
|
|
65
|
+
State.OFF,
|
|
66
66
|
"always",
|
|
67
67
|
{
|
|
68
68
|
emptyObjects: "never",
|
|
69
69
|
},
|
|
70
|
-
]
|
|
71
|
-
"jsonc/object-property-newline": State.
|
|
70
|
+
] /* @global stylistic/list-style */,
|
|
71
|
+
"jsonc/object-property-newline": State.OFF /* @global stylistic/list-style */,
|
|
72
72
|
// "jsonc/quote-props": State.OFF,
|
|
73
73
|
// "jsonc/quotes": State.OFF,
|
|
74
74
|
// "jsonc/space-unary-ops": State.OFF,
|
package/src/rules/yml/index.ts
CHANGED
|
@@ -26,6 +26,7 @@ export default [
|
|
|
26
26
|
// "yml/sort-sequence-values": State.OFF,
|
|
27
27
|
// "yml/vue-custom-block/no-parsing-error": State.OFF,
|
|
28
28
|
//#endregion
|
|
29
|
+
|
|
29
30
|
//#region Extension
|
|
30
31
|
// "yml/flow-mapping-curly-newline": State.OFF,
|
|
31
32
|
// "yml/flow-mapping-curly-spacing": State.OFF,
|