@eslinted/defaults 20.4.0-rc.1 → 20.4.0-rc.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.d.ts +56 -59
- package/dist/index.d.ts.map +1 -1
- package/dist/rules/index.d.ts +56 -59
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/index.js +0 -2
- package/dist/rules/index.js.map +1 -1
- package/dist/rules/js.d.ts +54 -35
- package/dist/rules/js.d.ts.map +1 -1
- package/dist/rules/js.js +2 -0
- package/dist/rules/js.js.map +1 -1
- package/dist/rules/js.stylistic.d.ts +0 -35
- package/dist/rules/js.stylistic.d.ts.map +1 -1
- package/dist/rules/js.stylistic.js +0 -35
- package/dist/rules/js.stylistic.js.map +1 -1
- package/dist/rules/json/index.d.ts +54 -21
- package/dist/rules/json/index.d.ts.map +1 -1
- package/dist/rules/json/index.js +2 -0
- package/dist/rules/json/index.js.map +1 -1
- package/dist/rules/json/jsonc.d.ts +0 -21
- package/dist/rules/json/jsonc.d.ts.map +1 -1
- package/dist/rules/json/jsonc.js +0 -21
- package/dist/rules/json/jsonc.js.map +1 -1
- package/package.json +1 -1
- package/src/rules/index.ts +0 -2
- package/src/rules/js.stylistic.ts +9 -35
- package/src/rules/js.ts +2 -0
- package/src/rules/json/index.ts +2 -0
- package/src/rules/json/jsonc.ts +5 -21
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare const _default: {
|
|
|
14
14
|
json: string[];
|
|
15
15
|
};
|
|
16
16
|
rules: {
|
|
17
|
-
|
|
17
|
+
js: ({
|
|
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;
|
|
@@ -68,8 +68,7 @@ declare const _default: {
|
|
|
68
68
|
}
|
|
69
69
|
];
|
|
70
70
|
};
|
|
71
|
-
}[]
|
|
72
|
-
js: ({
|
|
71
|
+
}[] | {
|
|
73
72
|
rules: {
|
|
74
73
|
readonly "array-callback-return": readonly [
|
|
75
74
|
import("./rules/state.js").State.ON,
|
|
@@ -356,16 +355,6 @@ declare const _default: {
|
|
|
356
355
|
};
|
|
357
356
|
} | {
|
|
358
357
|
rules: {
|
|
359
|
-
readonly "stylistic/array-bracket-newline": import("./rules/state.js").State.OFF;
|
|
360
|
-
readonly "stylistic/array-bracket-spacing": import("./rules/state.js").State.OFF;
|
|
361
|
-
readonly "stylistic/array-element-newline": readonly [
|
|
362
|
-
import("./rules/state.js").State.OFF,
|
|
363
|
-
{
|
|
364
|
-
readonly consistent: true;
|
|
365
|
-
readonly multiline: true;
|
|
366
|
-
readonly minItems: 3;
|
|
367
|
-
}
|
|
368
|
-
];
|
|
369
358
|
readonly "stylistic/arrow-parens": readonly [
|
|
370
359
|
import("./rules/state.js").State.WARN,
|
|
371
360
|
"as-needed"
|
|
@@ -391,15 +380,7 @@ declare const _default: {
|
|
|
391
380
|
import("./rules/state.js").State.WARN,
|
|
392
381
|
"property"
|
|
393
382
|
];
|
|
394
|
-
readonly "stylistic/function-call-argument-newline": readonly [
|
|
395
|
-
import("./rules/state.js").State.OFF,
|
|
396
|
-
"consistent"
|
|
397
|
-
];
|
|
398
383
|
readonly "stylistic/function-call-spacing": import("./rules/state.js").State.WARN;
|
|
399
|
-
readonly "stylistic/function-paren-newline": readonly [
|
|
400
|
-
import("./rules/state.js").State.OFF,
|
|
401
|
-
"multiline-arguments"
|
|
402
|
-
];
|
|
403
384
|
readonly "stylistic/generator-star-spacing": import("./rules/state.js").State.WARN;
|
|
404
385
|
readonly "stylistic/implicit-arrow-linebreak": import("./rules/state.js").State.WARN;
|
|
405
386
|
readonly "stylistic/indent": readonly [
|
|
@@ -491,22 +472,6 @@ declare const _default: {
|
|
|
491
472
|
import("./rules/state.js").State.WARN,
|
|
492
473
|
"below"
|
|
493
474
|
];
|
|
494
|
-
readonly "stylistic/object-curly-newline": readonly [
|
|
495
|
-
import("./rules/state.js").State.OFF,
|
|
496
|
-
{
|
|
497
|
-
readonly consistent: true;
|
|
498
|
-
readonly multiline: true;
|
|
499
|
-
readonly minProperties: 3;
|
|
500
|
-
}
|
|
501
|
-
];
|
|
502
|
-
readonly "stylistic/object-curly-spacing": readonly [
|
|
503
|
-
import("./rules/state.js").State.OFF,
|
|
504
|
-
"always",
|
|
505
|
-
{
|
|
506
|
-
readonly emptyObjects: "never";
|
|
507
|
-
}
|
|
508
|
-
];
|
|
509
|
-
readonly "stylistic/object-property-newline": import("./rules/state.js").State.OFF;
|
|
510
475
|
readonly "stylistic/one-var-declaration-per-line": readonly [
|
|
511
476
|
import("./rules/state.js").State.WARN,
|
|
512
477
|
"always"
|
|
@@ -548,7 +513,6 @@ declare const _default: {
|
|
|
548
513
|
readonly named: "never";
|
|
549
514
|
}
|
|
550
515
|
];
|
|
551
|
-
readonly "stylistic/space-in-parens": import("./rules/state.js").State.OFF;
|
|
552
516
|
readonly "stylistic/space-infix-ops": import("./rules/state.js").State.WARN;
|
|
553
517
|
readonly "stylistic/space-unary-ops": import("./rules/state.js").State.WARN;
|
|
554
518
|
readonly "stylistic/spaced-comment": readonly [
|
|
@@ -1025,6 +989,60 @@ declare const _default: {
|
|
|
1025
989
|
};
|
|
1026
990
|
}[];
|
|
1027
991
|
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
|
+
}[] | {
|
|
1028
1046
|
rules: {
|
|
1029
1047
|
readonly "json/no-unsafe-values": import("./rules/state.js").State.ON;
|
|
1030
1048
|
readonly "json/no-unnormalized-keys": import("./rules/state.js").State.ON;
|
|
@@ -1032,11 +1050,6 @@ declare const _default: {
|
|
|
1032
1050
|
} | {
|
|
1033
1051
|
rules: {
|
|
1034
1052
|
readonly "jsonc/no-comments": import("./rules/state.js").State.ON;
|
|
1035
|
-
readonly "jsonc/array-bracket-spacing": import("./rules/state.js").State.OFF;
|
|
1036
|
-
readonly "jsonc/array-element-newline": readonly [
|
|
1037
|
-
import("./rules/state.js").State.OFF,
|
|
1038
|
-
"consistent"
|
|
1039
|
-
];
|
|
1040
1053
|
readonly "jsonc/comma-dangle": import("./rules/state.js").State.ON;
|
|
1041
1054
|
readonly "jsonc/comma-style": import("./rules/state.js").State.WARN;
|
|
1042
1055
|
readonly "jsonc/indent": readonly [
|
|
@@ -1052,22 +1065,6 @@ declare const _default: {
|
|
|
1052
1065
|
readonly skipComments: true;
|
|
1053
1066
|
}
|
|
1054
1067
|
];
|
|
1055
|
-
readonly "jsonc/object-curly-newline": readonly [
|
|
1056
|
-
import("./rules/state.js").State.OFF,
|
|
1057
|
-
{
|
|
1058
|
-
readonly consistent: true;
|
|
1059
|
-
readonly multiline: true;
|
|
1060
|
-
readonly minProperties: 2;
|
|
1061
|
-
}
|
|
1062
|
-
];
|
|
1063
|
-
readonly "jsonc/object-curly-spacing": readonly [
|
|
1064
|
-
import("./rules/state.js").State.OFF,
|
|
1065
|
-
"always",
|
|
1066
|
-
{
|
|
1067
|
-
readonly emptyObjects: "never";
|
|
1068
|
-
}
|
|
1069
|
-
];
|
|
1070
|
-
readonly "jsonc/object-property-newline": import("./rules/state.js").State.OFF;
|
|
1071
1068
|
};
|
|
1072
1069
|
})[];
|
|
1073
1070
|
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,5 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
2
|
+
js: ({
|
|
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;
|
|
@@ -53,8 +53,7 @@ declare const _default: {
|
|
|
53
53
|
}
|
|
54
54
|
];
|
|
55
55
|
};
|
|
56
|
-
}[]
|
|
57
|
-
js: ({
|
|
56
|
+
}[] | {
|
|
58
57
|
rules: {
|
|
59
58
|
readonly "array-callback-return": readonly [
|
|
60
59
|
import("./state.js").State.ON,
|
|
@@ -341,16 +340,6 @@ declare const _default: {
|
|
|
341
340
|
};
|
|
342
341
|
} | {
|
|
343
342
|
rules: {
|
|
344
|
-
readonly "stylistic/array-bracket-newline": import("./state.js").State.OFF;
|
|
345
|
-
readonly "stylistic/array-bracket-spacing": import("./state.js").State.OFF;
|
|
346
|
-
readonly "stylistic/array-element-newline": readonly [
|
|
347
|
-
import("./state.js").State.OFF,
|
|
348
|
-
{
|
|
349
|
-
readonly consistent: true;
|
|
350
|
-
readonly multiline: true;
|
|
351
|
-
readonly minItems: 3;
|
|
352
|
-
}
|
|
353
|
-
];
|
|
354
343
|
readonly "stylistic/arrow-parens": readonly [
|
|
355
344
|
import("./state.js").State.WARN,
|
|
356
345
|
"as-needed"
|
|
@@ -376,15 +365,7 @@ declare const _default: {
|
|
|
376
365
|
import("./state.js").State.WARN,
|
|
377
366
|
"property"
|
|
378
367
|
];
|
|
379
|
-
readonly "stylistic/function-call-argument-newline": readonly [
|
|
380
|
-
import("./state.js").State.OFF,
|
|
381
|
-
"consistent"
|
|
382
|
-
];
|
|
383
368
|
readonly "stylistic/function-call-spacing": import("./state.js").State.WARN;
|
|
384
|
-
readonly "stylistic/function-paren-newline": readonly [
|
|
385
|
-
import("./state.js").State.OFF,
|
|
386
|
-
"multiline-arguments"
|
|
387
|
-
];
|
|
388
369
|
readonly "stylistic/generator-star-spacing": import("./state.js").State.WARN;
|
|
389
370
|
readonly "stylistic/implicit-arrow-linebreak": import("./state.js").State.WARN;
|
|
390
371
|
readonly "stylistic/indent": readonly [
|
|
@@ -476,22 +457,6 @@ declare const _default: {
|
|
|
476
457
|
import("./state.js").State.WARN,
|
|
477
458
|
"below"
|
|
478
459
|
];
|
|
479
|
-
readonly "stylistic/object-curly-newline": readonly [
|
|
480
|
-
import("./state.js").State.OFF,
|
|
481
|
-
{
|
|
482
|
-
readonly consistent: true;
|
|
483
|
-
readonly multiline: true;
|
|
484
|
-
readonly minProperties: 3;
|
|
485
|
-
}
|
|
486
|
-
];
|
|
487
|
-
readonly "stylistic/object-curly-spacing": readonly [
|
|
488
|
-
import("./state.js").State.OFF,
|
|
489
|
-
"always",
|
|
490
|
-
{
|
|
491
|
-
readonly emptyObjects: "never";
|
|
492
|
-
}
|
|
493
|
-
];
|
|
494
|
-
readonly "stylistic/object-property-newline": import("./state.js").State.OFF;
|
|
495
460
|
readonly "stylistic/one-var-declaration-per-line": readonly [
|
|
496
461
|
import("./state.js").State.WARN,
|
|
497
462
|
"always"
|
|
@@ -533,7 +498,6 @@ declare const _default: {
|
|
|
533
498
|
readonly named: "never";
|
|
534
499
|
}
|
|
535
500
|
];
|
|
536
|
-
readonly "stylistic/space-in-parens": import("./state.js").State.OFF;
|
|
537
501
|
readonly "stylistic/space-infix-ops": import("./state.js").State.WARN;
|
|
538
502
|
readonly "stylistic/space-unary-ops": import("./state.js").State.WARN;
|
|
539
503
|
readonly "stylistic/spaced-comment": readonly [
|
|
@@ -1010,6 +974,60 @@ declare const _default: {
|
|
|
1010
974
|
};
|
|
1011
975
|
}[];
|
|
1012
976
|
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
|
+
}[] | {
|
|
1013
1031
|
rules: {
|
|
1014
1032
|
readonly "json/no-unsafe-values": import("./state.js").State.ON;
|
|
1015
1033
|
readonly "json/no-unnormalized-keys": import("./state.js").State.ON;
|
|
@@ -1017,11 +1035,6 @@ declare const _default: {
|
|
|
1017
1035
|
} | {
|
|
1018
1036
|
rules: {
|
|
1019
1037
|
readonly "jsonc/no-comments": import("./state.js").State.ON;
|
|
1020
|
-
readonly "jsonc/array-bracket-spacing": import("./state.js").State.OFF;
|
|
1021
|
-
readonly "jsonc/array-element-newline": readonly [
|
|
1022
|
-
import("./state.js").State.OFF,
|
|
1023
|
-
"consistent"
|
|
1024
|
-
];
|
|
1025
1038
|
readonly "jsonc/comma-dangle": import("./state.js").State.ON;
|
|
1026
1039
|
readonly "jsonc/comma-style": import("./state.js").State.WARN;
|
|
1027
1040
|
readonly "jsonc/indent": readonly [
|
|
@@ -1037,22 +1050,6 @@ declare const _default: {
|
|
|
1037
1050
|
readonly skipComments: true;
|
|
1038
1051
|
}
|
|
1039
1052
|
];
|
|
1040
|
-
readonly "jsonc/object-curly-newline": readonly [
|
|
1041
|
-
import("./state.js").State.OFF,
|
|
1042
|
-
{
|
|
1043
|
-
readonly consistent: true;
|
|
1044
|
-
readonly multiline: true;
|
|
1045
|
-
readonly minProperties: 2;
|
|
1046
|
-
}
|
|
1047
|
-
];
|
|
1048
|
-
readonly "jsonc/object-curly-spacing": readonly [
|
|
1049
|
-
import("./state.js").State.OFF,
|
|
1050
|
-
"always",
|
|
1051
|
-
{
|
|
1052
|
-
readonly emptyObjects: "never";
|
|
1053
|
-
}
|
|
1054
|
-
];
|
|
1055
|
-
readonly "jsonc/object-property-newline": import("./state.js").State.OFF;
|
|
1056
1053
|
};
|
|
1057
1054
|
})[];
|
|
1058
1055
|
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/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import global from "./global.js";
|
|
2
1
|
import js from "./js.js";
|
|
3
2
|
import ts from "./ts/index.js";
|
|
4
3
|
import svelte from "./svelte/index.js";
|
|
@@ -8,7 +7,6 @@ import json from "./json/index.js";
|
|
|
8
7
|
import jsonc from "./jsonc/index.js";
|
|
9
8
|
import yml from "./yml/index.js";
|
|
10
9
|
export default {
|
|
11
|
-
"*": global,
|
|
12
10
|
js,
|
|
13
11
|
ts,
|
|
14
12
|
svelte,
|
package/dist/rules/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,eAAe;IACb,EAAE;IACF,EAAE;IACF,MAAM;IACN,IAAI;IACJ,GAAG;IACH,IAAI;IACJ,KAAK;IACL,GAAG;CACJ,CAAC"}
|
package/dist/rules/js.d.ts
CHANGED
|
@@ -1,4 +1,58 @@
|
|
|
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
|
+
}[] | {
|
|
2
56
|
rules: {
|
|
3
57
|
readonly "array-callback-return": readonly [
|
|
4
58
|
import("./state.js").State.ON,
|
|
@@ -285,16 +339,6 @@ declare const _default: ({
|
|
|
285
339
|
};
|
|
286
340
|
} | {
|
|
287
341
|
rules: {
|
|
288
|
-
readonly "stylistic/array-bracket-newline": import("./state.js").State.OFF;
|
|
289
|
-
readonly "stylistic/array-bracket-spacing": import("./state.js").State.OFF;
|
|
290
|
-
readonly "stylistic/array-element-newline": readonly [
|
|
291
|
-
import("./state.js").State.OFF,
|
|
292
|
-
{
|
|
293
|
-
readonly consistent: true;
|
|
294
|
-
readonly multiline: true;
|
|
295
|
-
readonly minItems: 3;
|
|
296
|
-
}
|
|
297
|
-
];
|
|
298
342
|
readonly "stylistic/arrow-parens": readonly [
|
|
299
343
|
import("./state.js").State.WARN,
|
|
300
344
|
"as-needed"
|
|
@@ -320,15 +364,7 @@ declare const _default: ({
|
|
|
320
364
|
import("./state.js").State.WARN,
|
|
321
365
|
"property"
|
|
322
366
|
];
|
|
323
|
-
readonly "stylistic/function-call-argument-newline": readonly [
|
|
324
|
-
import("./state.js").State.OFF,
|
|
325
|
-
"consistent"
|
|
326
|
-
];
|
|
327
367
|
readonly "stylistic/function-call-spacing": import("./state.js").State.WARN;
|
|
328
|
-
readonly "stylistic/function-paren-newline": readonly [
|
|
329
|
-
import("./state.js").State.OFF,
|
|
330
|
-
"multiline-arguments"
|
|
331
|
-
];
|
|
332
368
|
readonly "stylistic/generator-star-spacing": import("./state.js").State.WARN;
|
|
333
369
|
readonly "stylistic/implicit-arrow-linebreak": import("./state.js").State.WARN;
|
|
334
370
|
readonly "stylistic/indent": readonly [
|
|
@@ -420,22 +456,6 @@ declare const _default: ({
|
|
|
420
456
|
import("./state.js").State.WARN,
|
|
421
457
|
"below"
|
|
422
458
|
];
|
|
423
|
-
readonly "stylistic/object-curly-newline": readonly [
|
|
424
|
-
import("./state.js").State.OFF,
|
|
425
|
-
{
|
|
426
|
-
readonly consistent: true;
|
|
427
|
-
readonly multiline: true;
|
|
428
|
-
readonly minProperties: 3;
|
|
429
|
-
}
|
|
430
|
-
];
|
|
431
|
-
readonly "stylistic/object-curly-spacing": readonly [
|
|
432
|
-
import("./state.js").State.OFF,
|
|
433
|
-
"always",
|
|
434
|
-
{
|
|
435
|
-
readonly emptyObjects: "never";
|
|
436
|
-
}
|
|
437
|
-
];
|
|
438
|
-
readonly "stylistic/object-property-newline": import("./state.js").State.OFF;
|
|
439
459
|
readonly "stylistic/one-var-declaration-per-line": readonly [
|
|
440
460
|
import("./state.js").State.WARN,
|
|
441
461
|
"always"
|
|
@@ -477,7 +497,6 @@ declare const _default: ({
|
|
|
477
497
|
readonly named: "never";
|
|
478
498
|
}
|
|
479
499
|
];
|
|
480
|
-
readonly "stylistic/space-in-parens": import("./state.js").State.OFF;
|
|
481
500
|
readonly "stylistic/space-infix-ops": import("./state.js").State.WARN;
|
|
482
501
|
readonly "stylistic/space-unary-ops": import("./state.js").State.WARN;
|
|
483
502
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
|
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,aAAa,CAAC;AACjC,OAAO,SAAS,MAAM,gBAAgB,CAAC;AAEvC,eAAe;IACb,MAAM;IACN,SAAS;CACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"js.js","sourceRoot":"","sources":["../../src/rules/js.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,SAAS,MAAM,gBAAgB,CAAC;AAEvC,eAAe;IACb,MAAM;IACN,MAAM;IACN,SAAS;CACV,CAAC"}
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import { State } from "./state.js";
|
|
2
2
|
declare const _default: {
|
|
3
3
|
rules: {
|
|
4
|
-
readonly "stylistic/array-bracket-newline": State.OFF;
|
|
5
|
-
readonly "stylistic/array-bracket-spacing": State.OFF;
|
|
6
|
-
readonly "stylistic/array-element-newline": readonly [
|
|
7
|
-
State.OFF,
|
|
8
|
-
{
|
|
9
|
-
readonly consistent: true;
|
|
10
|
-
readonly multiline: true;
|
|
11
|
-
readonly minItems: 3;
|
|
12
|
-
}
|
|
13
|
-
];
|
|
14
4
|
readonly "stylistic/arrow-parens": readonly [
|
|
15
5
|
State.WARN,
|
|
16
6
|
"as-needed"
|
|
@@ -36,15 +26,7 @@ declare const _default: {
|
|
|
36
26
|
State.WARN,
|
|
37
27
|
"property"
|
|
38
28
|
];
|
|
39
|
-
readonly "stylistic/function-call-argument-newline": readonly [
|
|
40
|
-
State.OFF,
|
|
41
|
-
"consistent"
|
|
42
|
-
];
|
|
43
29
|
readonly "stylistic/function-call-spacing": State.WARN;
|
|
44
|
-
readonly "stylistic/function-paren-newline": readonly [
|
|
45
|
-
State.OFF,
|
|
46
|
-
"multiline-arguments"
|
|
47
|
-
];
|
|
48
30
|
readonly "stylistic/generator-star-spacing": State.WARN;
|
|
49
31
|
readonly "stylistic/implicit-arrow-linebreak": State.WARN;
|
|
50
32
|
readonly "stylistic/indent": readonly [
|
|
@@ -136,22 +118,6 @@ declare const _default: {
|
|
|
136
118
|
State.WARN,
|
|
137
119
|
"below"
|
|
138
120
|
];
|
|
139
|
-
readonly "stylistic/object-curly-newline": readonly [
|
|
140
|
-
State.OFF,
|
|
141
|
-
{
|
|
142
|
-
readonly consistent: true;
|
|
143
|
-
readonly multiline: true;
|
|
144
|
-
readonly minProperties: 3;
|
|
145
|
-
}
|
|
146
|
-
];
|
|
147
|
-
readonly "stylistic/object-curly-spacing": readonly [
|
|
148
|
-
State.OFF,
|
|
149
|
-
"always",
|
|
150
|
-
{
|
|
151
|
-
readonly emptyObjects: "never";
|
|
152
|
-
}
|
|
153
|
-
];
|
|
154
|
-
readonly "stylistic/object-property-newline": State.OFF;
|
|
155
121
|
readonly "stylistic/one-var-declaration-per-line": readonly [
|
|
156
122
|
State.WARN,
|
|
157
123
|
"always"
|
|
@@ -193,7 +159,6 @@ declare const _default: {
|
|
|
193
159
|
readonly named: "never";
|
|
194
160
|
}
|
|
195
161
|
];
|
|
196
|
-
readonly "stylistic/space-in-parens": State.OFF;
|
|
197
162
|
readonly "stylistic/space-infix-ops": State.WARN;
|
|
198
163
|
readonly "stylistic/space-unary-ops": State.WARN;
|
|
199
164
|
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,wBA+OE"}
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
rules: {
|
|
3
|
-
"stylistic/array-bracket-newline": 0,
|
|
4
|
-
"stylistic/array-bracket-spacing": 0,
|
|
5
|
-
"stylistic/array-element-newline": [
|
|
6
|
-
0,
|
|
7
|
-
{
|
|
8
|
-
consistent: true,
|
|
9
|
-
multiline: true,
|
|
10
|
-
minItems: 3,
|
|
11
|
-
},
|
|
12
|
-
],
|
|
13
3
|
"stylistic/arrow-parens": [
|
|
14
4
|
1,
|
|
15
5
|
"as-needed",
|
|
@@ -35,15 +25,7 @@ export default {
|
|
|
35
25
|
1,
|
|
36
26
|
"property",
|
|
37
27
|
],
|
|
38
|
-
"stylistic/function-call-argument-newline": [
|
|
39
|
-
0,
|
|
40
|
-
"consistent",
|
|
41
|
-
],
|
|
42
28
|
"stylistic/function-call-spacing": 1,
|
|
43
|
-
"stylistic/function-paren-newline": [
|
|
44
|
-
0,
|
|
45
|
-
"multiline-arguments",
|
|
46
|
-
],
|
|
47
29
|
"stylistic/generator-star-spacing": 1,
|
|
48
30
|
"stylistic/implicit-arrow-linebreak": 1,
|
|
49
31
|
"stylistic/indent": [
|
|
@@ -135,22 +117,6 @@ export default {
|
|
|
135
117
|
1,
|
|
136
118
|
"below",
|
|
137
119
|
],
|
|
138
|
-
"stylistic/object-curly-newline": [
|
|
139
|
-
0,
|
|
140
|
-
{
|
|
141
|
-
consistent: true,
|
|
142
|
-
multiline: true,
|
|
143
|
-
minProperties: 3,
|
|
144
|
-
},
|
|
145
|
-
],
|
|
146
|
-
"stylistic/object-curly-spacing": [
|
|
147
|
-
0,
|
|
148
|
-
"always",
|
|
149
|
-
{
|
|
150
|
-
emptyObjects: "never",
|
|
151
|
-
},
|
|
152
|
-
],
|
|
153
|
-
"stylistic/object-property-newline": 0,
|
|
154
120
|
"stylistic/one-var-declaration-per-line": [
|
|
155
121
|
1,
|
|
156
122
|
"always",
|
|
@@ -192,7 +158,6 @@ export default {
|
|
|
192
158
|
named: "never",
|
|
193
159
|
},
|
|
194
160
|
],
|
|
195
|
-
"stylistic/space-in-parens": 0,
|
|
196
161
|
"stylistic/space-infix-ops": 1,
|
|
197
162
|
"stylistic/space-unary-ops": 1,
|
|
198
163
|
"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,4 +1,58 @@
|
|
|
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
|
+
}[] | {
|
|
2
56
|
rules: {
|
|
3
57
|
readonly "json/no-unsafe-values": import("../state.js").State.ON;
|
|
4
58
|
readonly "json/no-unnormalized-keys": import("../state.js").State.ON;
|
|
@@ -6,11 +60,6 @@ declare const _default: ({
|
|
|
6
60
|
} | {
|
|
7
61
|
rules: {
|
|
8
62
|
readonly "jsonc/no-comments": import("../state.js").State.ON;
|
|
9
|
-
readonly "jsonc/array-bracket-spacing": import("../state.js").State.OFF;
|
|
10
|
-
readonly "jsonc/array-element-newline": readonly [
|
|
11
|
-
import("../state.js").State.OFF,
|
|
12
|
-
"consistent"
|
|
13
|
-
];
|
|
14
63
|
readonly "jsonc/comma-dangle": import("../state.js").State.ON;
|
|
15
64
|
readonly "jsonc/comma-style": import("../state.js").State.WARN;
|
|
16
65
|
readonly "jsonc/indent": readonly [
|
|
@@ -26,22 +75,6 @@ declare const _default: ({
|
|
|
26
75
|
readonly skipComments: true;
|
|
27
76
|
}
|
|
28
77
|
];
|
|
29
|
-
readonly "jsonc/object-curly-newline": readonly [
|
|
30
|
-
import("../state.js").State.OFF,
|
|
31
|
-
{
|
|
32
|
-
readonly consistent: true;
|
|
33
|
-
readonly multiline: true;
|
|
34
|
-
readonly minProperties: 2;
|
|
35
|
-
}
|
|
36
|
-
];
|
|
37
|
-
readonly "jsonc/object-curly-spacing": readonly [
|
|
38
|
-
import("../state.js").State.OFF,
|
|
39
|
-
"always",
|
|
40
|
-
{
|
|
41
|
-
readonly emptyObjects: "never";
|
|
42
|
-
}
|
|
43
|
-
];
|
|
44
|
-
readonly "jsonc/object-property-newline": import("../state.js").State.OFF;
|
|
45
78
|
};
|
|
46
79
|
})[];
|
|
47
80
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
|
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,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,eAAe;IACb,IAAI;IACJ,KAAK;CACN,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,eAAe;IACb,MAAM;IACN,IAAI;IACJ,KAAK;CACN,CAAC"}
|
|
@@ -2,11 +2,6 @@ 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.OFF;
|
|
6
|
-
readonly "jsonc/array-element-newline": readonly [
|
|
7
|
-
State.OFF,
|
|
8
|
-
"consistent"
|
|
9
|
-
];
|
|
10
5
|
readonly "jsonc/comma-dangle": State.ON;
|
|
11
6
|
readonly "jsonc/comma-style": State.WARN;
|
|
12
7
|
readonly "jsonc/indent": readonly [
|
|
@@ -22,22 +17,6 @@ declare const _default: {
|
|
|
22
17
|
readonly skipComments: true;
|
|
23
18
|
}
|
|
24
19
|
];
|
|
25
|
-
readonly "jsonc/object-curly-newline": readonly [
|
|
26
|
-
State.OFF,
|
|
27
|
-
{
|
|
28
|
-
readonly consistent: true;
|
|
29
|
-
readonly multiline: true;
|
|
30
|
-
readonly minProperties: 2;
|
|
31
|
-
}
|
|
32
|
-
];
|
|
33
|
-
readonly "jsonc/object-curly-spacing": readonly [
|
|
34
|
-
State.OFF,
|
|
35
|
-
"always",
|
|
36
|
-
{
|
|
37
|
-
readonly emptyObjects: "never";
|
|
38
|
-
}
|
|
39
|
-
];
|
|
40
|
-
readonly "jsonc/object-property-newline": State.OFF;
|
|
41
20
|
};
|
|
42
21
|
};
|
|
43
22
|
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,wBAwDE"}
|
package/dist/rules/json/jsonc.js
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
rules: {
|
|
3
3
|
"jsonc/no-comments": 2,
|
|
4
|
-
"jsonc/array-bracket-spacing": 0,
|
|
5
|
-
"jsonc/array-element-newline": [
|
|
6
|
-
0,
|
|
7
|
-
"consistent",
|
|
8
|
-
],
|
|
9
4
|
"jsonc/comma-dangle": 2,
|
|
10
5
|
"jsonc/comma-style": 1,
|
|
11
6
|
"jsonc/indent": [
|
|
@@ -21,22 +16,6 @@ export default {
|
|
|
21
16
|
skipComments: true,
|
|
22
17
|
},
|
|
23
18
|
],
|
|
24
|
-
"jsonc/object-curly-newline": [
|
|
25
|
-
0,
|
|
26
|
-
{
|
|
27
|
-
consistent: true,
|
|
28
|
-
multiline: true,
|
|
29
|
-
minProperties: 2,
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
"jsonc/object-curly-spacing": [
|
|
33
|
-
0,
|
|
34
|
-
"always",
|
|
35
|
-
{
|
|
36
|
-
emptyObjects: "never",
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
"jsonc/object-property-newline": 0,
|
|
40
19
|
},
|
|
41
20
|
};
|
|
42
21
|
//# 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;QAqB7B,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;KAYO;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-rc.
|
|
6
|
+
"version": "20.4.0-rc.2",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted-defaults",
|
|
8
8
|
"description": "Default scopes for `linted`",
|
|
9
9
|
"keywords": [],
|
package/src/rules/index.ts
CHANGED
|
@@ -3,16 +3,9 @@ import { State } from "./state";
|
|
|
3
3
|
// DOC: https://eslint.style/rules
|
|
4
4
|
export default {
|
|
5
5
|
rules: {
|
|
6
|
-
"stylistic/array-bracket-newline": State.OFF /* @global stylistic/list-style */,
|
|
7
|
-
"stylistic/array-bracket-spacing": State.OFF /* @global stylistic/list-style */,
|
|
8
|
-
"stylistic/array-element-newline":
|
|
9
|
-
State.OFF,
|
|
10
|
-
{
|
|
11
|
-
consistent: true,
|
|
12
|
-
multiline: true,
|
|
13
|
-
minItems: 3,
|
|
14
|
-
},
|
|
15
|
-
] /* @global stylistic/list-style */,
|
|
6
|
+
// "stylistic/array-bracket-newline": State.OFF /* @global stylistic/list-style */,
|
|
7
|
+
// "stylistic/array-bracket-spacing": State.OFF /* @global stylistic/list-style */,
|
|
8
|
+
// "stylistic/array-element-newline": State.OFF /* @global stylistic/list-style */,
|
|
16
9
|
"stylistic/arrow-parens": [
|
|
17
10
|
State.WARN,
|
|
18
11
|
"as-needed",
|
|
@@ -39,15 +32,9 @@ export default {
|
|
|
39
32
|
"property",
|
|
40
33
|
],
|
|
41
34
|
// "stylistic/eol-last": State.OFF /* @global */,
|
|
42
|
-
"stylistic/function-call-argument-newline":
|
|
43
|
-
State.OFF,
|
|
44
|
-
"consistent",
|
|
45
|
-
] /* @global stylistic/list-style */,
|
|
35
|
+
// "stylistic/function-call-argument-newline": State.OFF /* @global stylistic/list-style */,
|
|
46
36
|
"stylistic/function-call-spacing": State.WARN,
|
|
47
|
-
"stylistic/function-paren-newline":
|
|
48
|
-
State.OFF,
|
|
49
|
-
"multiline-arguments",
|
|
50
|
-
] /* @global stylistic/list-style | BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290 */,
|
|
37
|
+
// "stylistic/function-paren-newline": State.OFF /* @global stylistic/list-style | BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290 */,
|
|
51
38
|
"stylistic/generator-star-spacing": State.WARN,
|
|
52
39
|
"stylistic/implicit-arrow-linebreak": State.WARN,
|
|
53
40
|
"stylistic/indent": [
|
|
@@ -146,22 +133,9 @@ export default {
|
|
|
146
133
|
State.WARN,
|
|
147
134
|
"below",
|
|
148
135
|
],
|
|
149
|
-
"stylistic/object-curly-newline":
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
consistent: true,
|
|
153
|
-
multiline: true,
|
|
154
|
-
minProperties: 3,
|
|
155
|
-
},
|
|
156
|
-
] /* @global stylistic/list-style */,
|
|
157
|
-
"stylistic/object-curly-spacing": [
|
|
158
|
-
State.OFF,
|
|
159
|
-
"always",
|
|
160
|
-
{
|
|
161
|
-
emptyObjects: "never",
|
|
162
|
-
},
|
|
163
|
-
] /* @global stylistic/list-style */,
|
|
164
|
-
"stylistic/object-property-newline": State.OFF /* @global stylistic/list-style */,
|
|
136
|
+
// "stylistic/object-curly-newline": State.OFF /* @global stylistic/list-style */,
|
|
137
|
+
// "stylistic/object-curly-spacing": State.OFF /* @global stylistic/list-style */,
|
|
138
|
+
// "stylistic/object-property-newline": State.OFF /* @global stylistic/list-style */,
|
|
165
139
|
"stylistic/one-var-declaration-per-line": [
|
|
166
140
|
State.WARN,
|
|
167
141
|
"always",
|
|
@@ -204,7 +178,7 @@ export default {
|
|
|
204
178
|
named: "never",
|
|
205
179
|
},
|
|
206
180
|
],
|
|
207
|
-
"stylistic/space-in-parens": State.OFF /* @global stylistic/list-style */,
|
|
181
|
+
// "stylistic/space-in-parens": State.OFF /* @global stylistic/list-style */,
|
|
208
182
|
"stylistic/space-infix-ops": State.WARN,
|
|
209
183
|
"stylistic/space-unary-ops": State.WARN,
|
|
210
184
|
"stylistic/spaced-comment": [
|
package/src/rules/js.ts
CHANGED
package/src/rules/json/index.ts
CHANGED
package/src/rules/json/jsonc.ts
CHANGED
|
@@ -27,11 +27,8 @@ 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.OFF /* @global stylistic/list-style */,
|
|
31
|
-
"jsonc/array-element-newline":
|
|
32
|
-
State.OFF,
|
|
33
|
-
"consistent",
|
|
34
|
-
] /* @global stylistic/list-style */,
|
|
30
|
+
// "jsonc/array-bracket-spacing": State.OFF /* @global stylistic/list-style */,
|
|
31
|
+
// "jsonc/array-element-newline": State.OFF /* @global stylistic/list-style */,
|
|
35
32
|
"jsonc/comma-dangle": State.ON,
|
|
36
33
|
"jsonc/comma-style": State.WARN,
|
|
37
34
|
"jsonc/indent": [
|
|
@@ -53,22 +50,9 @@ export default {
|
|
|
53
50
|
// "jsonc/no-octal": State.OFF,
|
|
54
51
|
// "jsonc/no-sparse-arrays": State.OFF,
|
|
55
52
|
// "jsonc/no-useless-escape": State.OFF,
|
|
56
|
-
"jsonc/object-curly-newline":
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
consistent: true,
|
|
60
|
-
multiline: true,
|
|
61
|
-
minProperties: 2,
|
|
62
|
-
},
|
|
63
|
-
] /* @global stylistic/list-style */,
|
|
64
|
-
"jsonc/object-curly-spacing": [
|
|
65
|
-
State.OFF,
|
|
66
|
-
"always",
|
|
67
|
-
{
|
|
68
|
-
emptyObjects: "never",
|
|
69
|
-
},
|
|
70
|
-
] /* @global stylistic/list-style */,
|
|
71
|
-
"jsonc/object-property-newline": State.OFF /* @global stylistic/list-style */,
|
|
53
|
+
// "jsonc/object-curly-newline": State.OFF /* @global stylistic/list-style */,
|
|
54
|
+
// "jsonc/object-curly-spacing": State.OFF /* @global stylistic/list-style */,
|
|
55
|
+
// "jsonc/object-property-newline": State.OFF /* @global stylistic/list-style */,
|
|
72
56
|
// "jsonc/quote-props": State.OFF,
|
|
73
57
|
// "jsonc/quotes": State.OFF,
|
|
74
58
|
// "jsonc/space-unary-ops": State.OFF,
|