@eslinted/defaults 12.16.1 → 12.17.1
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 +10 -45
- package/dist/rules/css/enable.d.ts +4 -3
- package/dist/rules/css/enable.d.ts.map +1 -1
- package/dist/rules/css/enable.js +4 -9
- package/dist/rules/css/enable.js.map +1 -1
- package/dist/rules/css/index.d.ts +4 -3
- package/dist/rules/css/index.d.ts.map +1 -1
- package/dist/rules/index.d.ts +15 -15
- package/dist/rules/stylistic.d.ts +10 -9
- package/dist/rules/stylistic.d.ts.map +1 -1
- package/dist/rules/stylistic.js +2 -27
- package/dist/rules/stylistic.js.map +1 -1
- package/dist/rules/svelte/enable.d.ts +1 -3
- package/dist/rules/svelte/enable.d.ts.map +1 -1
- package/dist/rules/svelte/enable.js +1 -6
- package/dist/rules/svelte/enable.js.map +1 -1
- package/dist/rules/svelte/index.d.ts +1 -3
- package/dist/rules/svelte/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/rules/css/enable.ts +4 -10
- package/src/rules/stylistic.ts +2 -28
- package/src/rules/svelte/enable.ts +1 -6
package/dist/index.d.ts
CHANGED
|
@@ -380,6 +380,7 @@ export declare const defaults: {
|
|
|
380
380
|
"error",
|
|
381
381
|
2,
|
|
382
382
|
{
|
|
383
|
+
readonly assignmentOperator: 0;
|
|
383
384
|
readonly VariableDeclarator: {
|
|
384
385
|
readonly var: 0;
|
|
385
386
|
readonly let: 0;
|
|
@@ -521,16 +522,7 @@ export declare const defaults: {
|
|
|
521
522
|
"import",
|
|
522
523
|
"interface",
|
|
523
524
|
"let",
|
|
524
|
-
"multiline-block-like",
|
|
525
|
-
"multiline-const",
|
|
526
|
-
"multiline-export",
|
|
527
|
-
"multiline-let",
|
|
528
|
-
"multiline-var",
|
|
529
525
|
"return",
|
|
530
|
-
"singleline-const",
|
|
531
|
-
"singleline-export",
|
|
532
|
-
"singleline-let",
|
|
533
|
-
"singleline-var",
|
|
534
526
|
"switch",
|
|
535
527
|
"throw",
|
|
536
528
|
"try",
|
|
@@ -557,7 +549,6 @@ export declare const defaults: {
|
|
|
557
549
|
"function",
|
|
558
550
|
"if",
|
|
559
551
|
"interface",
|
|
560
|
-
"multiline-block-like",
|
|
561
552
|
"switch",
|
|
562
553
|
"try",
|
|
563
554
|
"using",
|
|
@@ -582,7 +573,6 @@ export declare const defaults: {
|
|
|
582
573
|
"function",
|
|
583
574
|
"if",
|
|
584
575
|
"interface",
|
|
585
|
-
"multiline-block-like",
|
|
586
576
|
"switch",
|
|
587
577
|
"try",
|
|
588
578
|
"using",
|
|
@@ -613,18 +603,11 @@ export declare const defaults: {
|
|
|
613
603
|
"const",
|
|
614
604
|
"enum",
|
|
615
605
|
"let",
|
|
616
|
-
"multiline-const",
|
|
617
|
-
"multiline-let",
|
|
618
|
-
"multiline-var",
|
|
619
|
-
"singleline-const",
|
|
620
|
-
"singleline-let",
|
|
621
|
-
"singleline-var",
|
|
622
606
|
"type",
|
|
623
607
|
"var"
|
|
624
608
|
];
|
|
625
609
|
readonly next: readonly [
|
|
626
610
|
"expression",
|
|
627
|
-
"multiline-expression",
|
|
628
611
|
"iife"
|
|
629
612
|
];
|
|
630
613
|
},
|
|
@@ -651,9 +634,7 @@ export declare const defaults: {
|
|
|
651
634
|
readonly blankLine: "always";
|
|
652
635
|
readonly prev: readonly [
|
|
653
636
|
"cjs-export",
|
|
654
|
-
"export"
|
|
655
|
-
"multiline-export",
|
|
656
|
-
"singleline-export"
|
|
637
|
+
"export"
|
|
657
638
|
];
|
|
658
639
|
readonly next: "*";
|
|
659
640
|
},
|
|
@@ -662,24 +643,18 @@ export declare const defaults: {
|
|
|
662
643
|
readonly prev: "*";
|
|
663
644
|
readonly next: readonly [
|
|
664
645
|
"cjs-export",
|
|
665
|
-
"export"
|
|
666
|
-
"multiline-export",
|
|
667
|
-
"singleline-export"
|
|
646
|
+
"export"
|
|
668
647
|
];
|
|
669
648
|
},
|
|
670
649
|
{
|
|
671
650
|
readonly blankLine: "never";
|
|
672
651
|
readonly prev: readonly [
|
|
673
652
|
"cjs-export",
|
|
674
|
-
"export"
|
|
675
|
-
"multiline-export",
|
|
676
|
-
"singleline-export"
|
|
653
|
+
"export"
|
|
677
654
|
];
|
|
678
655
|
readonly next: readonly [
|
|
679
656
|
"cjs-export",
|
|
680
|
-
"export"
|
|
681
|
-
"multiline-export",
|
|
682
|
-
"singleline-export"
|
|
657
|
+
"export"
|
|
683
658
|
];
|
|
684
659
|
},
|
|
685
660
|
{
|
|
@@ -1208,12 +1183,7 @@ export declare const defaults: {
|
|
|
1208
1183
|
readonly "svelte/shorthand-directive": "error";
|
|
1209
1184
|
readonly "svelte/spaced-html-comment": "error";
|
|
1210
1185
|
readonly "svelte/no-export-load-in-svelte-module-in-kit-pages": "error";
|
|
1211
|
-
readonly "svelte/no-navigation-without-
|
|
1212
|
-
"error",
|
|
1213
|
-
{
|
|
1214
|
-
readonly ignoreLinks: true;
|
|
1215
|
-
}
|
|
1216
|
-
];
|
|
1186
|
+
readonly "svelte/no-navigation-without-resolve": "error";
|
|
1217
1187
|
readonly "svelte/valid-prop-names-in-kit-pages": "error";
|
|
1218
1188
|
readonly "svelte/comment-directive": "error";
|
|
1219
1189
|
readonly "svelte/system": "error";
|
|
@@ -1307,22 +1277,17 @@ export declare const defaults: {
|
|
|
1307
1277
|
css: {
|
|
1308
1278
|
id: "enable";
|
|
1309
1279
|
rules: {
|
|
1280
|
+
readonly "css/font-family-fallbacks": "error";
|
|
1310
1281
|
readonly "css/no-duplicate-imports": "error";
|
|
1282
|
+
readonly "css/no-duplicate-keyframe-selectors": "error";
|
|
1311
1283
|
readonly "css/no-empty-blocks": "error";
|
|
1312
1284
|
readonly "css/no-important": "error";
|
|
1313
1285
|
readonly "css/no-invalid-at-rule-placement": "error";
|
|
1314
1286
|
readonly "css/no-invalid-at-rules": "error";
|
|
1315
1287
|
readonly "css/no-invalid-named-grid-areas": "error";
|
|
1288
|
+
readonly "css/no-invalid-properties": "error";
|
|
1316
1289
|
readonly "css/prefer-logical-properties": "error";
|
|
1317
|
-
readonly "css/relative-font-units":
|
|
1318
|
-
"error",
|
|
1319
|
-
{
|
|
1320
|
-
readonly allowUnits: readonly [
|
|
1321
|
-
"rem",
|
|
1322
|
-
"%"
|
|
1323
|
-
];
|
|
1324
|
-
}
|
|
1325
|
-
];
|
|
1290
|
+
readonly "css/relative-font-units": "error";
|
|
1326
1291
|
readonly "css/use-baseline": "error";
|
|
1327
1292
|
};
|
|
1328
1293
|
}[];
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
export declare const CssEnable: {
|
|
2
2
|
id: "enable";
|
|
3
3
|
rules: {
|
|
4
|
+
readonly "css/font-family-fallbacks": "error";
|
|
4
5
|
readonly "css/no-duplicate-imports": "error";
|
|
6
|
+
readonly "css/no-duplicate-keyframe-selectors": "error";
|
|
5
7
|
readonly "css/no-empty-blocks": "error";
|
|
6
8
|
readonly "css/no-important": "error";
|
|
7
9
|
readonly "css/no-invalid-at-rule-placement": "error";
|
|
8
10
|
readonly "css/no-invalid-at-rules": "error";
|
|
9
11
|
readonly "css/no-invalid-named-grid-areas": "error";
|
|
12
|
+
readonly "css/no-invalid-properties": "error";
|
|
10
13
|
readonly "css/prefer-logical-properties": "error";
|
|
11
|
-
readonly "css/relative-font-units":
|
|
12
|
-
readonly allowUnits: readonly ["rem", "%"];
|
|
13
|
-
}];
|
|
14
|
+
readonly "css/relative-font-units": "error";
|
|
14
15
|
readonly "css/use-baseline": "error";
|
|
15
16
|
};
|
|
16
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../src/rules/css/enable.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../src/rules/css/enable.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAkBrB,CAAC"}
|
package/dist/rules/css/enable.js
CHANGED
|
@@ -2,22 +2,17 @@ import { ID, ON, } from "../_strings/index.js";
|
|
|
2
2
|
export const CssEnable = {
|
|
3
3
|
id: ID.Enable.Enable,
|
|
4
4
|
rules: {
|
|
5
|
+
"css/font-family-fallbacks": ON,
|
|
5
6
|
"css/no-duplicate-imports": ON,
|
|
7
|
+
"css/no-duplicate-keyframe-selectors": ON,
|
|
6
8
|
"css/no-empty-blocks": ON,
|
|
7
9
|
"css/no-important": ON,
|
|
8
10
|
"css/no-invalid-at-rule-placement": ON,
|
|
9
11
|
"css/no-invalid-at-rules": ON,
|
|
10
12
|
"css/no-invalid-named-grid-areas": ON,
|
|
13
|
+
"css/no-invalid-properties": ON,
|
|
11
14
|
"css/prefer-logical-properties": ON,
|
|
12
|
-
"css/relative-font-units":
|
|
13
|
-
ON,
|
|
14
|
-
{
|
|
15
|
-
allowUnits: [
|
|
16
|
-
"rem",
|
|
17
|
-
"%",
|
|
18
|
-
],
|
|
19
|
-
},
|
|
20
|
-
],
|
|
15
|
+
"css/relative-font-units": ON,
|
|
21
16
|
"css/use-baseline": ON,
|
|
22
17
|
},
|
|
23
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/css/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EAEF,EAAE,GACH,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM;IACpB,KAAK,EAAE;QAEL,0BAA0B,EAAE,EAAE;QAC9B,qBAAqB,EAAE,EAAE;QACzB,kBAAkB,EAAE,EAAE;QACtB,kCAAkC,EAAE,EAAE;QACtC,yBAAyB,EAAE,EAAE;QAC7B,iCAAiC,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/css/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EAEF,EAAE,GACH,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM;IACpB,KAAK,EAAE;QAEL,2BAA2B,EAAE,EAAE;QAC/B,0BAA0B,EAAE,EAAE;QAC9B,qCAAqC,EAAE,EAAE;QACzC,qBAAqB,EAAE,EAAE;QACzB,kBAAkB,EAAE,EAAE;QACtB,kCAAkC,EAAE,EAAE;QACtC,yBAAyB,EAAE,EAAE;QAC7B,iCAAiC,EAAE,EAAE;QACrC,2BAA2B,EAAE,EAAE;QAC/B,+BAA+B,EAAE,EAAE;QACnC,yBAAyB,EAAE,EAAE;QAC7B,kBAAkB,EAAE,EAAE;KAEd;CACX,CAAC"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
id: "enable";
|
|
3
3
|
rules: {
|
|
4
|
+
readonly "css/font-family-fallbacks": "error";
|
|
4
5
|
readonly "css/no-duplicate-imports": "error";
|
|
6
|
+
readonly "css/no-duplicate-keyframe-selectors": "error";
|
|
5
7
|
readonly "css/no-empty-blocks": "error";
|
|
6
8
|
readonly "css/no-important": "error";
|
|
7
9
|
readonly "css/no-invalid-at-rule-placement": "error";
|
|
8
10
|
readonly "css/no-invalid-at-rules": "error";
|
|
9
11
|
readonly "css/no-invalid-named-grid-areas": "error";
|
|
12
|
+
readonly "css/no-invalid-properties": "error";
|
|
10
13
|
readonly "css/prefer-logical-properties": "error";
|
|
11
|
-
readonly "css/relative-font-units":
|
|
12
|
-
readonly allowUnits: readonly ["rem", "%"];
|
|
13
|
-
}];
|
|
14
|
+
readonly "css/relative-font-units": "error";
|
|
14
15
|
readonly "css/use-baseline": "error";
|
|
15
16
|
};
|
|
16
17
|
}[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/css/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/css/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,wBAA2B"}
|
package/dist/rules/index.d.ts
CHANGED
|
@@ -238,6 +238,7 @@ export declare const rules: {
|
|
|
238
238
|
readonly "@stylistic/generator-star-spacing": "error";
|
|
239
239
|
readonly "@stylistic/implicit-arrow-linebreak": "error";
|
|
240
240
|
readonly "@stylistic/indent": readonly ["error", 2, {
|
|
241
|
+
readonly assignmentOperator: 0;
|
|
241
242
|
readonly VariableDeclarator: {
|
|
242
243
|
readonly var: 0;
|
|
243
244
|
readonly let: 0;
|
|
@@ -310,16 +311,16 @@ export declare const rules: {
|
|
|
310
311
|
}];
|
|
311
312
|
readonly "@stylistic/padding-line-between-statements": readonly ["warn", {
|
|
312
313
|
readonly blankLine: "never";
|
|
313
|
-
readonly prev: readonly ["block-like", "block", "break", "case", "cjs-export", "cjs-import", "class", "const", "continue", "debugger", "default", "directive", "do", "empty", "enum", "export", "for", "function-overload", "function", "if", "iife", "import", "interface", "let", "
|
|
314
|
+
readonly prev: readonly ["block-like", "block", "break", "case", "cjs-export", "cjs-import", "class", "const", "continue", "debugger", "default", "directive", "do", "empty", "enum", "export", "for", "function-overload", "function", "if", "iife", "import", "interface", "let", "return", "switch", "throw", "try", "type", "using", "var", "while", "with"];
|
|
314
315
|
readonly next: "*";
|
|
315
316
|
}, {
|
|
316
317
|
readonly blankLine: "always";
|
|
317
|
-
readonly prev: readonly ["block-like", "block", "class", "debugger", "directive", "do", "empty", "for", "function-overload", "function", "if", "interface", "
|
|
318
|
+
readonly prev: readonly ["block-like", "block", "class", "debugger", "directive", "do", "empty", "for", "function-overload", "function", "if", "interface", "switch", "try", "using", "while", "with"];
|
|
318
319
|
readonly next: "*";
|
|
319
320
|
}, {
|
|
320
321
|
readonly blankLine: "always";
|
|
321
322
|
readonly prev: "*";
|
|
322
|
-
readonly next: readonly ["block-like", "block", "class", "debugger", "directive", "do", "empty", "for", "function-overload", "function", "if", "interface", "
|
|
323
|
+
readonly next: readonly ["block-like", "block", "class", "debugger", "directive", "do", "empty", "for", "function-overload", "function", "if", "interface", "switch", "try", "using", "while", "with"];
|
|
323
324
|
}, {
|
|
324
325
|
readonly blankLine: "never";
|
|
325
326
|
readonly prev: "interface";
|
|
@@ -330,8 +331,8 @@ export declare const rules: {
|
|
|
330
331
|
readonly next: readonly ["function-overload", "function"];
|
|
331
332
|
}, {
|
|
332
333
|
readonly blankLine: "always";
|
|
333
|
-
readonly prev: readonly ["const", "enum", "let", "
|
|
334
|
-
readonly next: readonly ["expression", "
|
|
334
|
+
readonly prev: readonly ["const", "enum", "let", "type", "var"];
|
|
335
|
+
readonly next: readonly ["expression", "iife"];
|
|
335
336
|
}, {
|
|
336
337
|
readonly blankLine: "always";
|
|
337
338
|
readonly prev: readonly ["cjs-import", "import"];
|
|
@@ -342,16 +343,16 @@ export declare const rules: {
|
|
|
342
343
|
readonly next: readonly ["cjs-import", "import"];
|
|
343
344
|
}, {
|
|
344
345
|
readonly blankLine: "always";
|
|
345
|
-
readonly prev: readonly ["cjs-export", "export"
|
|
346
|
+
readonly prev: readonly ["cjs-export", "export"];
|
|
346
347
|
readonly next: "*";
|
|
347
348
|
}, {
|
|
348
349
|
readonly blankLine: "always";
|
|
349
350
|
readonly prev: "*";
|
|
350
|
-
readonly next: readonly ["cjs-export", "export"
|
|
351
|
+
readonly next: readonly ["cjs-export", "export"];
|
|
351
352
|
}, {
|
|
352
353
|
readonly blankLine: "never";
|
|
353
|
-
readonly prev: readonly ["cjs-export", "export"
|
|
354
|
-
readonly next: readonly ["cjs-export", "export"
|
|
354
|
+
readonly prev: readonly ["cjs-export", "export"];
|
|
355
|
+
readonly next: readonly ["cjs-export", "export"];
|
|
355
356
|
}, {
|
|
356
357
|
readonly blankLine: "always";
|
|
357
358
|
readonly prev: readonly ["break", "continue", "return", "throw"];
|
|
@@ -745,9 +746,7 @@ export declare const rules: {
|
|
|
745
746
|
readonly "svelte/shorthand-directive": "error";
|
|
746
747
|
readonly "svelte/spaced-html-comment": "error";
|
|
747
748
|
readonly "svelte/no-export-load-in-svelte-module-in-kit-pages": "error";
|
|
748
|
-
readonly "svelte/no-navigation-without-
|
|
749
|
-
readonly ignoreLinks: true;
|
|
750
|
-
}];
|
|
749
|
+
readonly "svelte/no-navigation-without-resolve": "error";
|
|
751
750
|
readonly "svelte/valid-prop-names-in-kit-pages": "error";
|
|
752
751
|
readonly "svelte/comment-directive": "error";
|
|
753
752
|
readonly "svelte/system": "error";
|
|
@@ -819,16 +818,17 @@ export declare const rules: {
|
|
|
819
818
|
css: {
|
|
820
819
|
id: "enable";
|
|
821
820
|
rules: {
|
|
821
|
+
readonly "css/font-family-fallbacks": "error";
|
|
822
822
|
readonly "css/no-duplicate-imports": "error";
|
|
823
|
+
readonly "css/no-duplicate-keyframe-selectors": "error";
|
|
823
824
|
readonly "css/no-empty-blocks": "error";
|
|
824
825
|
readonly "css/no-important": "error";
|
|
825
826
|
readonly "css/no-invalid-at-rule-placement": "error";
|
|
826
827
|
readonly "css/no-invalid-at-rules": "error";
|
|
827
828
|
readonly "css/no-invalid-named-grid-areas": "error";
|
|
829
|
+
readonly "css/no-invalid-properties": "error";
|
|
828
830
|
readonly "css/prefer-logical-properties": "error";
|
|
829
|
-
readonly "css/relative-font-units":
|
|
830
|
-
readonly allowUnits: readonly ["rem", "%"];
|
|
831
|
-
}];
|
|
831
|
+
readonly "css/relative-font-units": "error";
|
|
832
832
|
readonly "css/use-baseline": "error";
|
|
833
833
|
};
|
|
834
834
|
}[];
|
|
@@ -27,6 +27,7 @@ declare const _default: {
|
|
|
27
27
|
readonly "@stylistic/generator-star-spacing": "error";
|
|
28
28
|
readonly "@stylistic/implicit-arrow-linebreak": "error";
|
|
29
29
|
readonly "@stylistic/indent": readonly ["error", 2, {
|
|
30
|
+
readonly assignmentOperator: 0;
|
|
30
31
|
readonly VariableDeclarator: {
|
|
31
32
|
readonly var: 0;
|
|
32
33
|
readonly let: 0;
|
|
@@ -99,16 +100,16 @@ declare const _default: {
|
|
|
99
100
|
}];
|
|
100
101
|
readonly "@stylistic/padding-line-between-statements": readonly ["warn", {
|
|
101
102
|
readonly blankLine: "never";
|
|
102
|
-
readonly prev: readonly ["block-like", "block", "break", "case", "cjs-export", "cjs-import", "class", "const", "continue", "debugger", "default", "directive", "do", "empty", "enum", "export", "for", "function-overload", "function", "if", "iife", "import", "interface", "let", "
|
|
103
|
+
readonly prev: readonly ["block-like", "block", "break", "case", "cjs-export", "cjs-import", "class", "const", "continue", "debugger", "default", "directive", "do", "empty", "enum", "export", "for", "function-overload", "function", "if", "iife", "import", "interface", "let", "return", "switch", "throw", "try", "type", "using", "var", "while", "with"];
|
|
103
104
|
readonly next: "*";
|
|
104
105
|
}, {
|
|
105
106
|
readonly blankLine: "always";
|
|
106
|
-
readonly prev: readonly ["block-like", "block", "class", "debugger", "directive", "do", "empty", "for", "function-overload", "function", "if", "interface", "
|
|
107
|
+
readonly prev: readonly ["block-like", "block", "class", "debugger", "directive", "do", "empty", "for", "function-overload", "function", "if", "interface", "switch", "try", "using", "while", "with"];
|
|
107
108
|
readonly next: "*";
|
|
108
109
|
}, {
|
|
109
110
|
readonly blankLine: "always";
|
|
110
111
|
readonly prev: "*";
|
|
111
|
-
readonly next: readonly ["block-like", "block", "class", "debugger", "directive", "do", "empty", "for", "function-overload", "function", "if", "interface", "
|
|
112
|
+
readonly next: readonly ["block-like", "block", "class", "debugger", "directive", "do", "empty", "for", "function-overload", "function", "if", "interface", "switch", "try", "using", "while", "with"];
|
|
112
113
|
}, {
|
|
113
114
|
readonly blankLine: "never";
|
|
114
115
|
readonly prev: "interface";
|
|
@@ -119,8 +120,8 @@ declare const _default: {
|
|
|
119
120
|
readonly next: readonly ["function-overload", "function"];
|
|
120
121
|
}, {
|
|
121
122
|
readonly blankLine: "always";
|
|
122
|
-
readonly prev: readonly ["const", "enum", "let", "
|
|
123
|
-
readonly next: readonly ["expression", "
|
|
123
|
+
readonly prev: readonly ["const", "enum", "let", "type", "var"];
|
|
124
|
+
readonly next: readonly ["expression", "iife"];
|
|
124
125
|
}, {
|
|
125
126
|
readonly blankLine: "always";
|
|
126
127
|
readonly prev: readonly ["cjs-import", "import"];
|
|
@@ -131,16 +132,16 @@ declare const _default: {
|
|
|
131
132
|
readonly next: readonly ["cjs-import", "import"];
|
|
132
133
|
}, {
|
|
133
134
|
readonly blankLine: "always";
|
|
134
|
-
readonly prev: readonly ["cjs-export", "export"
|
|
135
|
+
readonly prev: readonly ["cjs-export", "export"];
|
|
135
136
|
readonly next: "*";
|
|
136
137
|
}, {
|
|
137
138
|
readonly blankLine: "always";
|
|
138
139
|
readonly prev: "*";
|
|
139
|
-
readonly next: readonly ["cjs-export", "export"
|
|
140
|
+
readonly next: readonly ["cjs-export", "export"];
|
|
140
141
|
}, {
|
|
141
142
|
readonly blankLine: "never";
|
|
142
|
-
readonly prev: readonly ["cjs-export", "export"
|
|
143
|
-
readonly next: readonly ["cjs-export", "export"
|
|
143
|
+
readonly prev: readonly ["cjs-export", "export"];
|
|
144
|
+
readonly next: readonly ["cjs-export", "export"];
|
|
144
145
|
}, {
|
|
145
146
|
readonly blankLine: "always";
|
|
146
147
|
readonly prev: readonly ["break", "continue", "return", "throw"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stylistic.d.ts","sourceRoot":"","sources":["../../src/rules/stylistic.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stylistic.d.ts","sourceRoot":"","sources":["../../src/rules/stylistic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,wBA+cE"}
|
package/dist/rules/stylistic.js
CHANGED
|
@@ -53,9 +53,10 @@ export default {
|
|
|
53
53
|
ON,
|
|
54
54
|
2,
|
|
55
55
|
{
|
|
56
|
+
assignmentOperator: 0,
|
|
56
57
|
VariableDeclarator: {
|
|
57
58
|
"var": 0,
|
|
58
|
-
let: 0,
|
|
59
|
+
"let": 0,
|
|
59
60
|
"const": 0,
|
|
60
61
|
},
|
|
61
62
|
outerIIFEBody: 0,
|
|
@@ -194,16 +195,7 @@ export default {
|
|
|
194
195
|
"import",
|
|
195
196
|
"interface",
|
|
196
197
|
"let",
|
|
197
|
-
"multiline-block-like",
|
|
198
|
-
"multiline-const",
|
|
199
|
-
"multiline-export",
|
|
200
|
-
"multiline-let",
|
|
201
|
-
"multiline-var",
|
|
202
198
|
"return",
|
|
203
|
-
"singleline-const",
|
|
204
|
-
"singleline-export",
|
|
205
|
-
"singleline-let",
|
|
206
|
-
"singleline-var",
|
|
207
199
|
"switch",
|
|
208
200
|
"throw",
|
|
209
201
|
"try",
|
|
@@ -230,7 +222,6 @@ export default {
|
|
|
230
222
|
"function",
|
|
231
223
|
"if",
|
|
232
224
|
"interface",
|
|
233
|
-
"multiline-block-like",
|
|
234
225
|
"switch",
|
|
235
226
|
"try",
|
|
236
227
|
"using",
|
|
@@ -255,7 +246,6 @@ export default {
|
|
|
255
246
|
"function",
|
|
256
247
|
"if",
|
|
257
248
|
"interface",
|
|
258
|
-
"multiline-block-like",
|
|
259
249
|
"switch",
|
|
260
250
|
"try",
|
|
261
251
|
"using",
|
|
@@ -286,18 +276,11 @@ export default {
|
|
|
286
276
|
"const",
|
|
287
277
|
"enum",
|
|
288
278
|
"let",
|
|
289
|
-
"multiline-const",
|
|
290
|
-
"multiline-let",
|
|
291
|
-
"multiline-var",
|
|
292
|
-
"singleline-const",
|
|
293
|
-
"singleline-let",
|
|
294
|
-
"singleline-var",
|
|
295
279
|
"type",
|
|
296
280
|
"var",
|
|
297
281
|
],
|
|
298
282
|
next: [
|
|
299
283
|
"expression",
|
|
300
|
-
"multiline-expression",
|
|
301
284
|
"iife",
|
|
302
285
|
],
|
|
303
286
|
},
|
|
@@ -325,8 +308,6 @@ export default {
|
|
|
325
308
|
prev: [
|
|
326
309
|
"cjs-export",
|
|
327
310
|
"export",
|
|
328
|
-
"multiline-export",
|
|
329
|
-
"singleline-export",
|
|
330
311
|
],
|
|
331
312
|
next: wildcard,
|
|
332
313
|
},
|
|
@@ -336,8 +317,6 @@ export default {
|
|
|
336
317
|
next: [
|
|
337
318
|
"cjs-export",
|
|
338
319
|
"export",
|
|
339
|
-
"multiline-export",
|
|
340
|
-
"singleline-export",
|
|
341
320
|
],
|
|
342
321
|
},
|
|
343
322
|
{
|
|
@@ -345,14 +324,10 @@ export default {
|
|
|
345
324
|
prev: [
|
|
346
325
|
"cjs-export",
|
|
347
326
|
"export",
|
|
348
|
-
"multiline-export",
|
|
349
|
-
"singleline-export",
|
|
350
327
|
],
|
|
351
328
|
next: [
|
|
352
329
|
"cjs-export",
|
|
353
330
|
"export",
|
|
354
|
-
"multiline-export",
|
|
355
|
-
"singleline-export",
|
|
356
331
|
],
|
|
357
332
|
},
|
|
358
333
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stylistic.js","sourceRoot":"","sources":["../../src/rules/stylistic.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EAEF,IAAI,EACJ,EAAE,EACF,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,MAAM,EACN,KAAK,EACL,UAAU,EACV,MAAM,EACN,MAAM,EACN,KAAK,EACL,QAAQ,GACT,MAAM,YAAY,CAAC;AAEpB,eAAe;IACb,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK;IACnB,KAAK,EAAE;QAEL,kCAAkC,EAAE,EAAE;QACtC,kCAAkC,EAAE,EAAE;QACtC,kCAAkC,EAAE;YAClC,EAAE;YACF;gBACE,UAAU,EAAE,IAAI;gBAChB,SAAS,EAAE,IAAI;gBACf,QAAQ,EAAE,CAAC;aACZ;SACF;QACD,yBAAyB,EAAE;YACzB,EAAE;YACF,SAAS;SACV;QACD,0BAA0B,EAAE,EAAE;QAC9B,0BAA0B,EAAE,EAAE;QAC9B,wBAAwB,EAAE;YACxB,EAAE;YACF,YAAY;YACZ;gBACE,eAAe,EAAE,IAAI;aACtB;SACF;QACD,yBAAyB,EAAE;YACzB,EAAE;YACF,gBAAgB;SACjB;QACD,0BAA0B,EAAE,EAAE;QAC9B,wBAAwB,EAAE,EAAE;QAC5B,sCAAsC,EAAE,EAAE;QAC1C,0BAA0B,EAAE,EAAE;QAC9B,yBAAyB,EAAE;YACzB,EAAE;YACF,UAAU;SACX;QACD,qBAAqB,EAAE,EAAE;QACzB,2CAA2C,EAAE;YAC3C,EAAE;YACF,UAAU;SACX;QACD,kCAAkC,EAAE,EAAE;QACtC,mCAAmC,EAAE;YACnC,EAAE;YACF,qBAAqB;SACtB;QACD,mCAAmC,EAAE,EAAE;QACvC,qCAAqC,EAAE,EAAE;QACzC,mBAAmB,EAAE;YACnB,EAAE;YACF,CAAC;YACD;gBACE,kBAAkB,EAAE;oBAClB,KAAK,EAAE,CAAC;oBACR,
|
|
1
|
+
{"version":3,"file":"stylistic.js","sourceRoot":"","sources":["../../src/rules/stylistic.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EAEF,IAAI,EACJ,EAAE,EACF,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,MAAM,EACN,KAAK,EACL,UAAU,EACV,MAAM,EACN,MAAM,EACN,KAAK,EACL,QAAQ,GACT,MAAM,YAAY,CAAC;AAEpB,eAAe;IACb,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK;IACnB,KAAK,EAAE;QAEL,kCAAkC,EAAE,EAAE;QACtC,kCAAkC,EAAE,EAAE;QACtC,kCAAkC,EAAE;YAClC,EAAE;YACF;gBACE,UAAU,EAAE,IAAI;gBAChB,SAAS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,EAAE,EAAE;QACrC,qCAAqC,EAAE,EAAE;QACzC,sBAAsB,EAAE;YACtB,EAAE;YACF,MAAM;YACN;gBACE,wBAAwB,EAAE,IAAI;aAC/B;SACF;QACD,uBAAuB,EAAE,EAAE;QAC3B,+BAA+B,EAAE,EAAE;KAC3B;CACX,CAAC"}
|
|
@@ -84,9 +84,7 @@ export declare const SvelteEnable: {
|
|
|
84
84
|
readonly "svelte/shorthand-directive": "error";
|
|
85
85
|
readonly "svelte/spaced-html-comment": "error";
|
|
86
86
|
readonly "svelte/no-export-load-in-svelte-module-in-kit-pages": "error";
|
|
87
|
-
readonly "svelte/no-navigation-without-
|
|
88
|
-
readonly ignoreLinks: true;
|
|
89
|
-
}];
|
|
87
|
+
readonly "svelte/no-navigation-without-resolve": "error";
|
|
90
88
|
readonly "svelte/valid-prop-names-in-kit-pages": "error";
|
|
91
89
|
readonly "svelte/comment-directive": "error";
|
|
92
90
|
readonly "svelte/system": "error";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../src/rules/svelte/enable.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../src/rules/svelte/enable.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6IxB,CAAC"}
|
|
@@ -109,12 +109,7 @@ export const SvelteEnable = {
|
|
|
109
109
|
"svelte/shorthand-directive": ON,
|
|
110
110
|
"svelte/spaced-html-comment": ON,
|
|
111
111
|
"svelte/no-export-load-in-svelte-module-in-kit-pages": ON,
|
|
112
|
-
"svelte/no-navigation-without-
|
|
113
|
-
ON,
|
|
114
|
-
{
|
|
115
|
-
ignoreLinks: true,
|
|
116
|
-
},
|
|
117
|
-
],
|
|
112
|
+
"svelte/no-navigation-without-resolve": ON,
|
|
118
113
|
"svelte/valid-prop-names-in-kit-pages": ON,
|
|
119
114
|
"svelte/comment-directive": ON,
|
|
120
115
|
"svelte/system": ON,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/svelte/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EAEF,EAAE,EACF,GAAG,EACH,KAAK,EACL,MAAM,EACN,KAAK,GACN,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM;IACpB,KAAK,EAAE;QAGL,+BAA+B,EAAE,EAAE;QACnC,4BAA4B,EAAE,EAAE;QAChC,+BAA+B,EAAE,EAAE;QACnC,8BAA8B,EAAE,EAAE;QAClC,iCAAiC,EAAE,EAAE;QACrC,+BAA+B,EAAE,EAAE;QACnC,gCAAgC,EAAE,EAAE;QACpC,oCAAoC,EAAE,EAAE;QACxC,gCAAgC,EAAE,EAAE;QACpC,6BAA6B,EAAE,EAAE;QACjC,8CAA8C,EAAE,EAAE;QAClD,uBAAuB,EAAE,EAAE;QAC3B,qCAAqC,EAAE,EAAE;QACzC,4CAA4C,EAAE,EAAE;QAChD,iCAAiC,EAAE,EAAE;QACrC,8CAA8C,EAAE,EAAE;QAClD,sCAAsC,EAAE,EAAE;QAC1C,sBAAsB,EAAE,EAAE;QAC1B,0BAA0B,EAAE,EAAE;QAK9B,wBAAwB,EAAE,EAAE;QAC5B,wBAAwB,EAAE,EAAE;QAK5B,mBAAmB,EAAE;YACnB,EAAE;YACF;gBACE,MAAM,EAAE,CAAC,IAAI,CAAC;gBACd,KAAK,EAAE,CAAC,KAAK,CAAC;aACf;SACF;QACD,wBAAwB,EAAE,EAAE;QAC5B,8BAA8B,EAAE,EAAE;QAClC,yBAAyB,EAAE,EAAE;QAC7B,+BAA+B,EAAE,EAAE;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E;QACjC,4BAA4B,EAAE,EAAE;QAChC,4BAA4B,EAAE,EAAE;QAEhC,4BAA4B,EAAE,EAAE;QAKhC,qDAAqD,EAAE,EAAE;QACzD,sCAAsC,EAAE,EAAE;QAC1C,sCAAsC,EAAE,EAAE;QAK1C,0BAA0B,EAAE,EAAE;QAC9B,eAAe,EAAE,EAAE;KAEX;CACX,CAAC"}
|
|
@@ -101,9 +101,7 @@ declare const _default: ({
|
|
|
101
101
|
readonly "svelte/shorthand-directive": "error";
|
|
102
102
|
readonly "svelte/spaced-html-comment": "error";
|
|
103
103
|
readonly "svelte/no-export-load-in-svelte-module-in-kit-pages": "error";
|
|
104
|
-
readonly "svelte/no-navigation-without-
|
|
105
|
-
readonly ignoreLinks: true;
|
|
106
|
-
}];
|
|
104
|
+
readonly "svelte/no-navigation-without-resolve": "error";
|
|
107
105
|
readonly "svelte/valid-prop-names-in-kit-pages": "error";
|
|
108
106
|
readonly "svelte/comment-directive": "error";
|
|
109
107
|
readonly "svelte/system": "error";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/svelte/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/svelte/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBAKE"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$pkg": "2211.
|
|
2
|
+
"$pkg": "2211.5.0",
|
|
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": "12.
|
|
6
|
+
"version": "12.17.1",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted-defaults",
|
|
8
8
|
"description": "Default scopes for `linted`",
|
|
9
9
|
"keywords": [],
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"prebuild": "npm run clean",
|
|
32
32
|
"build": "cmd /c \"(if exist svelte.config.js (npm run build:svelte) else (npm run build:ts))\" || bash -c 'if [ -f svelte.config.js ]; then npm run build:svelte; else npm run build:ts; fi'",
|
|
33
33
|
"build:ts": "tsc && ts-add-js-extension --dir=dist",
|
|
34
|
-
"build:svelte": "svelte-kit sync && svelte-check
|
|
34
|
+
"build:svelte": "svelte-kit sync && svelte-check && vite build",
|
|
35
35
|
"postbuild": "npm run lint || echo \"Lint failed. Continuing...\"",
|
|
36
36
|
"lint": "eslint --cache --fix",
|
|
37
37
|
"pretest": "npm run build",
|
|
38
38
|
"test": "npm run --if-present test:mocha",
|
|
39
39
|
"test:mocha": "mocha",
|
|
40
|
-
"prestart": "npm
|
|
40
|
+
"prestart": "npm run --ignore-scripts build",
|
|
41
41
|
"start": "cmd --% /c \"(if exist svelte.config.js (npm run start:svelte) else (npm run start:ts))\" || bash -c 'if [ -f svelte.config.js ]; then npm run start:svelte; else npm run start:ts; fi'",
|
|
42
42
|
"start:ts": "node .",
|
|
43
43
|
"start:svelte": "vite preview --open",
|
package/src/rules/css/enable.ts
CHANGED
|
@@ -8,23 +8,17 @@ export const CssEnable = {
|
|
|
8
8
|
id: ID.Enable.Enable,
|
|
9
9
|
rules: {
|
|
10
10
|
// DOC: https://github.com/eslint/css/tree/main/docs/rules
|
|
11
|
+
"css/font-family-fallbacks": ON,
|
|
11
12
|
"css/no-duplicate-imports": ON,
|
|
13
|
+
"css/no-duplicate-keyframe-selectors": ON,
|
|
12
14
|
"css/no-empty-blocks": ON,
|
|
13
15
|
"css/no-important": ON,
|
|
14
16
|
"css/no-invalid-at-rule-placement": ON,
|
|
15
17
|
"css/no-invalid-at-rules": ON,
|
|
16
18
|
"css/no-invalid-named-grid-areas": ON,
|
|
17
|
-
|
|
19
|
+
"css/no-invalid-properties": ON,
|
|
18
20
|
"css/prefer-logical-properties": ON,
|
|
19
|
-
"css/relative-font-units":
|
|
20
|
-
ON,
|
|
21
|
-
{
|
|
22
|
-
allowUnits: [
|
|
23
|
-
"rem",
|
|
24
|
-
"%",
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
],
|
|
21
|
+
"css/relative-font-units": ON,
|
|
28
22
|
"css/use-baseline": ON,
|
|
29
23
|
// "css/use-layers": OFF, /* not recommended by docs: https://github.com/eslint/css?tab=readme-ov-file#rules; also BUG: ESLint config inspector: css/use-layers: Invalid rule has no description [INVALID] */
|
|
30
24
|
} as const,
|
package/src/rules/stylistic.ts
CHANGED
|
@@ -70,9 +70,10 @@ export default {
|
|
|
70
70
|
ON,
|
|
71
71
|
2 /* tab | number | @default 4 */,
|
|
72
72
|
{
|
|
73
|
+
assignmentOperator: 0,
|
|
73
74
|
VariableDeclarator: {
|
|
74
75
|
"var": 0,
|
|
75
|
-
let: 0,
|
|
76
|
+
"let": 0,
|
|
76
77
|
"const": 0,
|
|
77
78
|
},
|
|
78
79
|
outerIIFEBody: 0,
|
|
@@ -220,17 +221,7 @@ export default {
|
|
|
220
221
|
"import",
|
|
221
222
|
"interface",
|
|
222
223
|
"let",
|
|
223
|
-
"multiline-block-like",
|
|
224
|
-
"multiline-const",
|
|
225
|
-
"multiline-export",
|
|
226
|
-
// "multiline-expression" /* aren't most of these expressions? */,
|
|
227
|
-
"multiline-let",
|
|
228
|
-
"multiline-var",
|
|
229
224
|
"return",
|
|
230
|
-
"singleline-const",
|
|
231
|
-
"singleline-export",
|
|
232
|
-
"singleline-let",
|
|
233
|
-
"singleline-var",
|
|
234
225
|
"switch",
|
|
235
226
|
"throw",
|
|
236
227
|
"try",
|
|
@@ -259,7 +250,6 @@ export default {
|
|
|
259
250
|
"function",
|
|
260
251
|
"if",
|
|
261
252
|
"interface",
|
|
262
|
-
"multiline-block-like",
|
|
263
253
|
"switch",
|
|
264
254
|
"try",
|
|
265
255
|
"using",
|
|
@@ -284,7 +274,6 @@ export default {
|
|
|
284
274
|
"function",
|
|
285
275
|
"if",
|
|
286
276
|
"interface",
|
|
287
|
-
"multiline-block-like",
|
|
288
277
|
"switch",
|
|
289
278
|
"try",
|
|
290
279
|
"using",
|
|
@@ -319,18 +308,11 @@ export default {
|
|
|
319
308
|
"const",
|
|
320
309
|
"enum",
|
|
321
310
|
"let",
|
|
322
|
-
"multiline-const",
|
|
323
|
-
"multiline-let",
|
|
324
|
-
"multiline-var",
|
|
325
|
-
"singleline-const",
|
|
326
|
-
"singleline-let",
|
|
327
|
-
"singleline-var",
|
|
328
311
|
"type",
|
|
329
312
|
"var",
|
|
330
313
|
],
|
|
331
314
|
next: [
|
|
332
315
|
"expression",
|
|
333
|
-
"multiline-expression",
|
|
334
316
|
"iife",
|
|
335
317
|
],
|
|
336
318
|
},
|
|
@@ -362,8 +344,6 @@ export default {
|
|
|
362
344
|
prev: [
|
|
363
345
|
"cjs-export",
|
|
364
346
|
"export",
|
|
365
|
-
"multiline-export",
|
|
366
|
-
"singleline-export",
|
|
367
347
|
],
|
|
368
348
|
next: wildcard,
|
|
369
349
|
},
|
|
@@ -373,8 +353,6 @@ export default {
|
|
|
373
353
|
next: [
|
|
374
354
|
"cjs-export",
|
|
375
355
|
"export",
|
|
376
|
-
"multiline-export",
|
|
377
|
-
"singleline-export",
|
|
378
356
|
],
|
|
379
357
|
},
|
|
380
358
|
{
|
|
@@ -382,14 +360,10 @@ export default {
|
|
|
382
360
|
prev: [
|
|
383
361
|
"cjs-export",
|
|
384
362
|
"export",
|
|
385
|
-
"multiline-export",
|
|
386
|
-
"singleline-export",
|
|
387
363
|
],
|
|
388
364
|
next: [
|
|
389
365
|
"cjs-export",
|
|
390
366
|
"export",
|
|
391
|
-
"multiline-export",
|
|
392
|
-
"singleline-export",
|
|
393
367
|
],
|
|
394
368
|
},
|
|
395
369
|
// #endregion
|
|
@@ -139,12 +139,7 @@ export const SvelteEnable = {
|
|
|
139
139
|
// #region SVELTE-KIT
|
|
140
140
|
// DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#svelte-kit
|
|
141
141
|
"svelte/no-export-load-in-svelte-module-in-kit-pages": ON,
|
|
142
|
-
"svelte/no-navigation-without-
|
|
143
|
-
ON,
|
|
144
|
-
{
|
|
145
|
-
ignoreLinks: true /* ignore <a> links; @default false */,
|
|
146
|
-
},
|
|
147
|
-
],
|
|
142
|
+
"svelte/no-navigation-without-resolve": ON,
|
|
148
143
|
"svelte/valid-prop-names-in-kit-pages": ON,
|
|
149
144
|
// #endregion
|
|
150
145
|
|