@eslinted/defaults 6.3.2 → 7.0.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.
@@ -1205,12 +1205,14 @@ export declare const rules: {
1205
1205
  readonly svelte: (readonly ["disable", {
1206
1206
  readonly "no-inner-declarations": "off";
1207
1207
  readonly "no-self-assign": "off";
1208
+ readonly "prefer-const": "off";
1208
1209
  }] | readonly ["disable/ts", {
1209
1210
  readonly "no-unused-vars": "off";
1210
1211
  readonly "@typescript-eslint/no-unused-vars": "off";
1211
1212
  }] | readonly ["disable/extension", {
1212
1213
  readonly "no-inner-declarations": "off";
1213
1214
  readonly "no-self-assign": "off";
1215
+ readonly "@stylistic/no-trailing-spaces": "off";
1214
1216
  }] | readonly ["enable", {
1215
1217
  readonly "svelte/infinite-reactive-loop": "error";
1216
1218
  readonly "svelte/no-dom-manipulating": "error";
@@ -1218,10 +1220,9 @@ export declare const rules: {
1218
1220
  readonly "svelte/no-dupe-on-directives": "error";
1219
1221
  readonly "svelte/no-dupe-style-properties": "error";
1220
1222
  readonly "svelte/no-dupe-use-directives": "error";
1221
- readonly "svelte/no-dynamic-slot-name": "error";
1222
- readonly "svelte/no-export-load-in-svelte-module-in-kit-pages": "error";
1223
1223
  readonly "svelte/no-not-function-handler": "error";
1224
1224
  readonly "svelte/no-object-in-text-mustaches": "error";
1225
+ readonly "svelte/no-raw-special-elements": "error";
1225
1226
  readonly "svelte/no-reactive-reassign": readonly ["error", {
1226
1227
  readonly props: true;
1227
1228
  }];
@@ -1235,7 +1236,7 @@ export declare const rules: {
1235
1236
  readonly "svelte/valid-compile": readonly ["error", {
1236
1237
  readonly ignoreWarnings: false;
1237
1238
  }];
1238
- readonly "svelte/valid-prop-names-in-kit-pages": "error";
1239
+ readonly "svelte/valid-style-parse": "error";
1239
1240
  readonly "svelte/no-at-html-tags": "error";
1240
1241
  readonly "svelte/no-target-blank": readonly ["error", {
1241
1242
  readonly allowReferrer: false;
@@ -1263,25 +1264,42 @@ export declare const rules: {
1263
1264
  readonly "svelte/no-svelte-internal": "error";
1264
1265
  readonly "svelte/no-unused-class-name": "off";
1265
1266
  readonly "svelte/no-unused-svelte-ignore": "error";
1267
+ readonly "svelte/no-useless-children-snippet": "error";
1266
1268
  readonly "svelte/no-useless-mustaches": readonly ["error", {
1267
1269
  readonly ignoreIncludesComment: false;
1268
1270
  readonly ignoreStringEscape: false;
1269
1271
  }];
1272
+ readonly "svelte/prefer-const": readonly ["error", {
1273
+ readonly destructuring: "all";
1274
+ readonly ignoreReadonly: false;
1275
+ }];
1270
1276
  readonly "svelte/prefer-destructured-store-props": "error";
1271
1277
  readonly "svelte/require-each-key": "error";
1272
1278
  readonly "svelte/require-event-dispatcher-types": "error";
1273
1279
  readonly "svelte/require-optimized-style-attribute": "error";
1274
1280
  readonly "svelte/require-stores-init": "error";
1275
1281
  readonly "svelte/valid-each-key": "error";
1282
+ readonly "svelte/consistent-selector-style": readonly ["error", {
1283
+ readonly checkGlobal: true;
1284
+ readonly style: readonly ["type", "id", "class"];
1285
+ }];
1276
1286
  readonly "svelte/derived-has-same-inputs-outputs": "error";
1277
1287
  readonly "svelte/first-attribute-linebreak": readonly ["error", {
1278
1288
  readonly multiline: "below";
1279
1289
  readonly singleline: "below";
1280
1290
  }];
1291
+ readonly "svelte/html-closing-bracket-new-line": readonly ["error", {
1292
+ readonly singleline: "never";
1293
+ readonly multiline: "always";
1294
+ readonly selfClosingTag: {
1295
+ readonly singleline: "never";
1296
+ readonly multiline: "always";
1297
+ };
1298
+ }];
1281
1299
  readonly "svelte/html-closing-bracket-spacing": readonly ["error", {
1282
1300
  readonly startTag: "never";
1283
1301
  readonly endTag: "never";
1284
- readonly selfClosingTag: "always";
1302
+ readonly selfClosingTag: "never";
1285
1303
  }];
1286
1304
  readonly "svelte/html-quotes": readonly ["error", {
1287
1305
  readonly prefer: "double";
@@ -1299,8 +1317,10 @@ export declare const rules: {
1299
1317
  }];
1300
1318
  readonly "svelte/indent": readonly ["error", {
1301
1319
  readonly indent: 2;
1320
+ readonly indentScript: true;
1321
+ readonly ignoredNodes: readonly [];
1302
1322
  readonly switchCase: 1;
1303
- readonly alignAttributesVertically: true;
1323
+ readonly alignAttributesVertically: false;
1304
1324
  }];
1305
1325
  readonly "svelte/max-attributes-per-line": readonly ["error", {
1306
1326
  readonly multiline: 1;
@@ -1330,7 +1350,9 @@ export declare const rules: {
1330
1350
  }];
1331
1351
  readonly "svelte/sort-attributes": "off";
1332
1352
  readonly "svelte/spaced-html-comment": readonly ["error", "always"];
1333
- readonly "svelte/no-goto-without-base": "error";
1353
+ readonly "svelte/no-export-load-in-svelte-module-in-kit-pages": "error";
1354
+ readonly "svelte/no-navigation-without-base": "error";
1355
+ readonly "svelte/valid-prop-names-in-kit-pages": "error";
1334
1356
  readonly "svelte/comment-directive": readonly ["error", {
1335
1357
  readonly reportUnusedDisableDirectives: true;
1336
1358
  }];
@@ -1339,7 +1361,10 @@ export declare const rules: {
1339
1361
  readonly "svelte/no-inner-declarations": readonly ["error", "both", {
1340
1362
  readonly blockScopedFunctions: "allow";
1341
1363
  }];
1342
- readonly "svelte/no-trailing-spaces": "off";
1364
+ readonly "svelte/no-trailing-spaces": readonly ["error", {
1365
+ readonly skipBlankLines: false;
1366
+ readonly ignoreComments: false;
1367
+ }];
1343
1368
  }])[];
1344
1369
  readonly html: (readonly ["enable", {
1345
1370
  readonly "@html-eslint/no-duplicate-attrs": "error";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export declare const SvelteDisableExtension: readonly ["disable/extension", {
2
2
  readonly "no-inner-declarations": "off";
3
3
  readonly "no-self-assign": "off";
4
+ readonly "@stylistic/no-trailing-spaces": "off";
4
5
  }];
5
6
  //# sourceMappingURL=disable-ext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"disable-ext.d.ts","sourceRoot":"","sources":["../../../src/rules/svelte/disable-ext.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB;;;EAOzB,CAAC"}
1
+ {"version":3,"file":"disable-ext.d.ts","sourceRoot":"","sources":["../../../src/rules/svelte/disable-ext.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB;;;;EAQzB,CAAC"}
@@ -4,6 +4,7 @@ export const SvelteDisableExtension = [
4
4
  {
5
5
  "no-inner-declarations": OFF,
6
6
  "no-self-assign": OFF,
7
+ "@stylistic/no-trailing-spaces": OFF,
7
8
  },
8
9
  ];
9
10
  //# sourceMappingURL=disable-ext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"disable-ext.js","sourceRoot":"","sources":["../../../src/rules/svelte/disable-ext.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,GAAG,GACJ,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,EAAE,CAAC,gBAAgB;IACnB;QAEE,uBAAuB,EAAE,GAAG;QAC5B,gBAAgB,EAAE,GAAG;KACb;CACF,CAAC"}
1
+ {"version":3,"file":"disable-ext.js","sourceRoot":"","sources":["../../../src/rules/svelte/disable-ext.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,GAAG,GACJ,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,EAAE,CAAC,gBAAgB;IACnB;QAEE,uBAAuB,EAAE,GAAG;QAC5B,gBAAgB,EAAE,GAAG;QACrB,+BAA+B,EAAE,GAAG;KAC5B;CACF,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export declare const SvelteDisable: readonly ["disable", {
2
2
  readonly "no-inner-declarations": "off";
3
3
  readonly "no-self-assign": "off";
4
+ readonly "prefer-const": "off";
4
5
  }];
5
6
  //# sourceMappingURL=disable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"disable.d.ts","sourceRoot":"","sources":["../../../src/rules/svelte/disable.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa;;;EAWhB,CAAC"}
1
+ {"version":3,"file":"disable.d.ts","sourceRoot":"","sources":["../../../src/rules/svelte/disable.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa;;;;EAYhB,CAAC"}
@@ -4,6 +4,7 @@ export const SvelteDisable = [
4
4
  {
5
5
  "no-inner-declarations": OFF,
6
6
  "no-self-assign": OFF,
7
+ "prefer-const": OFF,
7
8
  },
8
9
  ];
9
10
  //# sourceMappingURL=disable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"disable.js","sourceRoot":"","sources":["../../../src/rules/svelte/disable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,GAAG,GACJ,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,EAAE,CAAC,OAAO;IACV;QAKE,uBAAuB,EAAE,GAAG;QAE5B,gBAAgB,EAAE,GAAG;KACb;CACF,CAAC"}
1
+ {"version":3,"file":"disable.js","sourceRoot":"","sources":["../../../src/rules/svelte/disable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,GAAG,GACJ,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,EAAE,CAAC,OAAO;IACV;QAKE,uBAAuB,EAAE,GAAG;QAE5B,gBAAgB,EAAE,GAAG;QACrB,cAAc,EAAE,GAAG;KACX;CACF,CAAC"}
@@ -2,6 +2,9 @@ export declare const SvelteEnableExtension: readonly ["enable/extension", {
2
2
  readonly "svelte/no-inner-declarations": readonly ["error", "both", {
3
3
  readonly blockScopedFunctions: "allow";
4
4
  }];
5
- readonly "svelte/no-trailing-spaces": "off";
5
+ readonly "svelte/no-trailing-spaces": readonly ["error", {
6
+ readonly skipBlankLines: false;
7
+ readonly ignoreComments: false;
8
+ }];
6
9
  }];
7
10
  //# sourceMappingURL=enable-ext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enable-ext.d.ts","sourceRoot":"","sources":["../../../src/rules/svelte/enable-ext.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,qBAAqB;;;;;EAaxB,CAAC"}
1
+ {"version":3,"file":"enable-ext.d.ts","sourceRoot":"","sources":["../../../src/rules/svelte/enable-ext.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,qBAAqB;;;;;;;;EAmBxB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ID, ERROR, OFF, allow, both, } from "../../_strings/index.js";
1
+ import { ID, ERROR, allow, both, } from "../../_strings/index.js";
2
2
  export const SvelteEnableExtension = [
3
3
  ID.EnableExtension,
4
4
  {
@@ -9,7 +9,13 @@ export const SvelteEnableExtension = [
9
9
  blockScopedFunctions: allow,
10
10
  },
11
11
  ],
12
- "svelte/no-trailing-spaces": OFF,
12
+ "svelte/no-trailing-spaces": [
13
+ ERROR,
14
+ {
15
+ skipBlankLines: false,
16
+ ignoreComments: false,
17
+ },
18
+ ],
13
19
  },
14
20
  ];
15
21
  //# sourceMappingURL=enable-ext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enable-ext.js","sourceRoot":"","sources":["../../../src/rules/svelte/enable-ext.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,KAAK,EACL,GAAG,EACH,KAAK,EACL,IAAI,GACL,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,EAAE,CAAC,eAAe;IAClB;QAEE,8BAA8B,EAAE;YAC9B,KAAK;YACL,IAAI;YACJ;gBACE,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,2BAA2B,EAAE,GAAG;KACxB;CACF,CAAC"}
1
+ {"version":3,"file":"enable-ext.js","sourceRoot":"","sources":["../../../src/rules/svelte/enable-ext.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,KAAK,EACL,KAAK,EACL,IAAI,GACL,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,EAAE,CAAC,eAAe;IAClB;QAEE,8BAA8B,EAAE;YAC9B,KAAK;YACL,IAAI;YACJ;gBACE,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,2BAA2B,EAAE;YAC3B,KAAK;YACL;gBACE,cAAc,EAAE,KAAK;gBACrB,cAAc,EAAE,KAAK;aACtB;SACF;KACO;CACF,CAAC"}
@@ -5,10 +5,9 @@ export declare const SvelteEnable: readonly ["enable", {
5
5
  readonly "svelte/no-dupe-on-directives": "error";
6
6
  readonly "svelte/no-dupe-style-properties": "error";
7
7
  readonly "svelte/no-dupe-use-directives": "error";
8
- readonly "svelte/no-dynamic-slot-name": "error";
9
- readonly "svelte/no-export-load-in-svelte-module-in-kit-pages": "error";
10
8
  readonly "svelte/no-not-function-handler": "error";
11
9
  readonly "svelte/no-object-in-text-mustaches": "error";
10
+ readonly "svelte/no-raw-special-elements": "error";
12
11
  readonly "svelte/no-reactive-reassign": readonly ["error", {
13
12
  readonly props: true;
14
13
  }];
@@ -22,7 +21,7 @@ export declare const SvelteEnable: readonly ["enable", {
22
21
  readonly "svelte/valid-compile": readonly ["error", {
23
22
  readonly ignoreWarnings: false;
24
23
  }];
25
- readonly "svelte/valid-prop-names-in-kit-pages": "error";
24
+ readonly "svelte/valid-style-parse": "error";
26
25
  readonly "svelte/no-at-html-tags": "error";
27
26
  readonly "svelte/no-target-blank": readonly ["error", {
28
27
  readonly allowReferrer: false;
@@ -50,25 +49,42 @@ export declare const SvelteEnable: readonly ["enable", {
50
49
  readonly "svelte/no-svelte-internal": "error";
51
50
  readonly "svelte/no-unused-class-name": "off";
52
51
  readonly "svelte/no-unused-svelte-ignore": "error";
52
+ readonly "svelte/no-useless-children-snippet": "error";
53
53
  readonly "svelte/no-useless-mustaches": readonly ["error", {
54
54
  readonly ignoreIncludesComment: false;
55
55
  readonly ignoreStringEscape: false;
56
56
  }];
57
+ readonly "svelte/prefer-const": readonly ["error", {
58
+ readonly destructuring: "all";
59
+ readonly ignoreReadonly: false;
60
+ }];
57
61
  readonly "svelte/prefer-destructured-store-props": "error";
58
62
  readonly "svelte/require-each-key": "error";
59
63
  readonly "svelte/require-event-dispatcher-types": "error";
60
64
  readonly "svelte/require-optimized-style-attribute": "error";
61
65
  readonly "svelte/require-stores-init": "error";
62
66
  readonly "svelte/valid-each-key": "error";
67
+ readonly "svelte/consistent-selector-style": readonly ["error", {
68
+ readonly checkGlobal: true;
69
+ readonly style: readonly ["type", "id", "class"];
70
+ }];
63
71
  readonly "svelte/derived-has-same-inputs-outputs": "error";
64
72
  readonly "svelte/first-attribute-linebreak": readonly ["error", {
65
73
  readonly multiline: "below";
66
74
  readonly singleline: "below";
67
75
  }];
76
+ readonly "svelte/html-closing-bracket-new-line": readonly ["error", {
77
+ readonly singleline: "never";
78
+ readonly multiline: "always";
79
+ readonly selfClosingTag: {
80
+ readonly singleline: "never";
81
+ readonly multiline: "always";
82
+ };
83
+ }];
68
84
  readonly "svelte/html-closing-bracket-spacing": readonly ["error", {
69
85
  readonly startTag: "never";
70
86
  readonly endTag: "never";
71
- readonly selfClosingTag: "always";
87
+ readonly selfClosingTag: "never";
72
88
  }];
73
89
  readonly "svelte/html-quotes": readonly ["error", {
74
90
  readonly prefer: "double";
@@ -86,8 +102,10 @@ export declare const SvelteEnable: readonly ["enable", {
86
102
  }];
87
103
  readonly "svelte/indent": readonly ["error", {
88
104
  readonly indent: 2;
105
+ readonly indentScript: true;
106
+ readonly ignoredNodes: readonly [];
89
107
  readonly switchCase: 1;
90
- readonly alignAttributesVertically: true;
108
+ readonly alignAttributesVertically: false;
91
109
  }];
92
110
  readonly "svelte/max-attributes-per-line": readonly ["error", {
93
111
  readonly multiline: 1;
@@ -117,7 +135,9 @@ export declare const SvelteEnable: readonly ["enable", {
117
135
  }];
118
136
  readonly "svelte/sort-attributes": "off";
119
137
  readonly "svelte/spaced-html-comment": readonly ["error", "always"];
120
- readonly "svelte/no-goto-without-base": "error";
138
+ readonly "svelte/no-export-load-in-svelte-module-in-kit-pages": "error";
139
+ readonly "svelte/no-navigation-without-base": "error";
140
+ readonly "svelte/valid-prop-names-in-kit-pages": "error";
121
141
  readonly "svelte/comment-directive": readonly ["error", {
122
142
  readonly reportUnusedDisableDirectives: true;
123
143
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../src/rules/svelte/enable.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4Nf,CAAC"}
1
+ {"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../src/rules/svelte/enable.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6Pf,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ID, ERROR, OFF, ignore, never, always, below, double, } from "../../_strings/index.js";
1
+ import { ID, ERROR, OFF, all, always, below, double, ignore, never, } from "../../_strings/index.js";
2
2
  export const SvelteEnable = [
3
3
  ID.Enable,
4
4
  {
@@ -8,10 +8,9 @@ export const SvelteEnable = [
8
8
  "svelte/no-dupe-on-directives": ERROR,
9
9
  "svelte/no-dupe-style-properties": ERROR,
10
10
  "svelte/no-dupe-use-directives": ERROR,
11
- "svelte/no-dynamic-slot-name": ERROR,
12
- "svelte/no-export-load-in-svelte-module-in-kit-pages": ERROR,
13
11
  "svelte/no-not-function-handler": ERROR,
14
12
  "svelte/no-object-in-text-mustaches": ERROR,
13
+ "svelte/no-raw-special-elements": ERROR,
15
14
  "svelte/no-reactive-reassign": [
16
15
  ERROR,
17
16
  {
@@ -34,7 +33,7 @@ export const SvelteEnable = [
34
33
  ignoreWarnings: false,
35
34
  },
36
35
  ],
37
- "svelte/valid-prop-names-in-kit-pages": ERROR,
36
+ "svelte/valid-style-parse": ERROR,
38
37
  "svelte/no-at-html-tags": ERROR,
39
38
  "svelte/no-target-blank": [
40
39
  ERROR,
@@ -77,6 +76,7 @@ export const SvelteEnable = [
77
76
  "svelte/no-svelte-internal": ERROR,
78
77
  "svelte/no-unused-class-name": OFF,
79
78
  "svelte/no-unused-svelte-ignore": ERROR,
79
+ "svelte/no-useless-children-snippet": ERROR,
80
80
  "svelte/no-useless-mustaches": [
81
81
  ERROR,
82
82
  {
@@ -84,12 +84,30 @@ export const SvelteEnable = [
84
84
  ignoreStringEscape: false,
85
85
  },
86
86
  ],
87
+ "svelte/prefer-const": [
88
+ ERROR,
89
+ {
90
+ destructuring: all,
91
+ ignoreReadonly: false,
92
+ },
93
+ ],
87
94
  "svelte/prefer-destructured-store-props": ERROR,
88
95
  "svelte/require-each-key": ERROR,
89
96
  "svelte/require-event-dispatcher-types": ERROR,
90
97
  "svelte/require-optimized-style-attribute": ERROR,
91
98
  "svelte/require-stores-init": ERROR,
92
99
  "svelte/valid-each-key": ERROR,
100
+ "svelte/consistent-selector-style": [
101
+ ERROR,
102
+ {
103
+ checkGlobal: true,
104
+ style: [
105
+ "type",
106
+ "id",
107
+ "class",
108
+ ],
109
+ },
110
+ ],
93
111
  "svelte/derived-has-same-inputs-outputs": ERROR,
94
112
  "svelte/first-attribute-linebreak": [
95
113
  ERROR,
@@ -98,12 +116,23 @@ export const SvelteEnable = [
98
116
  singleline: below,
99
117
  },
100
118
  ],
119
+ "svelte/html-closing-bracket-new-line": [
120
+ ERROR,
121
+ {
122
+ singleline: never,
123
+ multiline: always,
124
+ selfClosingTag: {
125
+ singleline: never,
126
+ multiline: always,
127
+ },
128
+ },
129
+ ],
101
130
  "svelte/html-closing-bracket-spacing": [
102
131
  ERROR,
103
132
  {
104
133
  startTag: never,
105
134
  endTag: never,
106
- selfClosingTag: always,
135
+ selfClosingTag: never,
107
136
  },
108
137
  ],
109
138
  "svelte/html-quotes": [
@@ -130,8 +159,10 @@ export const SvelteEnable = [
130
159
  ERROR,
131
160
  {
132
161
  indent: 2,
162
+ indentScript: true,
163
+ ignoredNodes: [],
133
164
  switchCase: 1,
134
- alignAttributesVertically: true,
165
+ alignAttributesVertically: false,
135
166
  },
136
167
  ],
137
168
  "svelte/max-attributes-per-line": [
@@ -180,7 +211,9 @@ export const SvelteEnable = [
180
211
  ERROR,
181
212
  always,
182
213
  ],
183
- "svelte/no-goto-without-base": ERROR,
214
+ "svelte/no-export-load-in-svelte-module-in-kit-pages": ERROR,
215
+ "svelte/no-navigation-without-base": ERROR,
216
+ "svelte/valid-prop-names-in-kit-pages": ERROR,
184
217
  "svelte/comment-directive": [
185
218
  ERROR,
186
219
  {
@@ -1 +1 @@
1
- {"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/svelte/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,KAAK,EACL,GAAG,EACH,MAAM,EACN,KAAK,EACL,MAAM,EACN,KAAK,EACL,MAAM,GACP,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,EAAE,CAAC,MAAM;IACT;QAGE,+BAA+B,EAAE,KAAK;QACtC,4BAA4B,EAAE,KAAK;QACnC,+BAA+B,EAAE,KAAK;QACtC,8BAA8B,EAAE,KAAK;QACrC,iCA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SACF;QACD,kCAAkC,EAAE,KAAK;QACzC,oCAAoC,EAAE,GAAG;QACzC,kDAAkD,EAAE,KAAK;QACzD,+BAA+B,EAAE;YAC/B,KAAK;YACL;gBACE,MAAM,EAAE,OAAO;aAChB;SACF;QACD,+BAA+B,EAAE,KAAK;QACtC,4BAA4B,EAAE;YAC5B,KAAK;YACL;gBACE,MAAM,EAAE,MAAM;aACf;SACF;QACD,4BAA4B,EAAE;YAC5B,KAAK;YACL;gBACE,MAAM,EAAE,MAAM;aACf;SACF;QACD,wBAAwB,EAAE,GAAG;QAC7B,4BAA4B,EAAE;YAC5B,KAAK;YACL,MAAM;SACP;QAMD,6BAA6B,EAAE,KAAK;QAMpC,0BAA0B,EAAE;YAC1B,KAAK;YACL;gBACE,6BAA6B,EAAE,IAAI;aACpC;SACF;QACD,eAAe,EAAE,KAAK;KAId;CACF,CAAC"}
1
+ {"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/svelte/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,KAAK,EACL,GAAG,EACH,GAAG,EACH,MAAM,EACN,KAAK,EACL,MAAM,EACN,MAAM,EACN,KAAK,GACN,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,EAAE,CAAC,MAAM;IACT;QAGE,+BAA+B,EAAE,KAAK;QACtC,4BAA4B,EAAE,KAAK;QACnC,+BAA+B,EAAE,KAAK;QACtC,8BAA8B,EAAE,KAAK;QACrC,iCAAiC,EAAE,KAAK;QACxC,+BAA+B,EAAE,KAAK;QACtC,gCAAgC,EAAE,KAAK;QACvC,oCAAoC,EAAE,KAAK;QAC3C,gCAAgC,EAAE,KAAK;QACvC,6BAA6B,EAAE;YAC7B,KAAK;YACL;gBACE,KAAK,EAAE,IAAI;aACZ;SACF;QACD,8CAA8C,EAAE,KAAK;QACrD,uBAAuB,EAAE,KAAK;QAC9B,4CAA4C,EAAE;YAC5C,KAAK;YACL;gBACE,c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Ae,EAAE,KAAK;gBACtB,kBAAkB,EAAE,KAAK;gBACzB,oBAAoB,EAAE,KAAK;gBAC3B,IAAI,EAAE;oBACJ,YAAY,EAAE,KAAK;oBACnB,YAAY,EAAE,KAAK;iBACpB;aACF;SACF;QACD,kCAAkC,EAAE,KAAK;QACzC,oCAAoC,EAAE,GAAG;QACzC,kDAAkD,EAAE,KAAK;QACzD,+BAA+B,EAAE;YAC/B,KAAK;YACL;gBACE,MAAM,EAAE,OAAO;aAChB;SACF;QACD,+BAA+B,EAAE,KAAK;QACtC,4BAA4B,EAAE;YAC5B,KAAK;YACL;gBACE,MAAM,EAAE,MAAM;aACf;SACF;QACD,4BAA4B,EAAE;YAC5B,KAAK;YACL;gBACE,MAAM,EAAE,MAAM;aACf;SACF;QACD,wBAAwB,EAAE,GAAG;QAC7B,4BAA4B,EAAE;YAC5B,KAAK;YACL,MAAM;SACP;QAMD,qDAAqD,EAAE,KAAK;QAC5D,mCAAmC,EAAE,KAAK;QAC1C,sCAAsC,EAAE,KAAK;QAM7C,0BAA0B,EAAE;YAC1B,KAAK;YACL;gBACE,6BAA6B,EAAE,IAAI;aACpC;SACF;QACD,eAAe,EAAE,KAAK;KAId;CACF,CAAC"}
@@ -1,12 +1,14 @@
1
1
  declare const _default: (readonly ["disable", {
2
2
  readonly "no-inner-declarations": "off";
3
3
  readonly "no-self-assign": "off";
4
+ readonly "prefer-const": "off";
4
5
  }] | readonly ["disable/ts", {
5
6
  readonly "no-unused-vars": "off";
6
7
  readonly "@typescript-eslint/no-unused-vars": "off";
7
8
  }] | readonly ["disable/extension", {
8
9
  readonly "no-inner-declarations": "off";
9
10
  readonly "no-self-assign": "off";
11
+ readonly "@stylistic/no-trailing-spaces": "off";
10
12
  }] | readonly ["enable", {
11
13
  readonly "svelte/infinite-reactive-loop": "error";
12
14
  readonly "svelte/no-dom-manipulating": "error";
@@ -14,10 +16,9 @@ declare const _default: (readonly ["disable", {
14
16
  readonly "svelte/no-dupe-on-directives": "error";
15
17
  readonly "svelte/no-dupe-style-properties": "error";
16
18
  readonly "svelte/no-dupe-use-directives": "error";
17
- readonly "svelte/no-dynamic-slot-name": "error";
18
- readonly "svelte/no-export-load-in-svelte-module-in-kit-pages": "error";
19
19
  readonly "svelte/no-not-function-handler": "error";
20
20
  readonly "svelte/no-object-in-text-mustaches": "error";
21
+ readonly "svelte/no-raw-special-elements": "error";
21
22
  readonly "svelte/no-reactive-reassign": readonly ["error", {
22
23
  readonly props: true;
23
24
  }];
@@ -31,7 +32,7 @@ declare const _default: (readonly ["disable", {
31
32
  readonly "svelte/valid-compile": readonly ["error", {
32
33
  readonly ignoreWarnings: false;
33
34
  }];
34
- readonly "svelte/valid-prop-names-in-kit-pages": "error";
35
+ readonly "svelte/valid-style-parse": "error";
35
36
  readonly "svelte/no-at-html-tags": "error";
36
37
  readonly "svelte/no-target-blank": readonly ["error", {
37
38
  readonly allowReferrer: false;
@@ -59,25 +60,42 @@ declare const _default: (readonly ["disable", {
59
60
  readonly "svelte/no-svelte-internal": "error";
60
61
  readonly "svelte/no-unused-class-name": "off";
61
62
  readonly "svelte/no-unused-svelte-ignore": "error";
63
+ readonly "svelte/no-useless-children-snippet": "error";
62
64
  readonly "svelte/no-useless-mustaches": readonly ["error", {
63
65
  readonly ignoreIncludesComment: false;
64
66
  readonly ignoreStringEscape: false;
65
67
  }];
68
+ readonly "svelte/prefer-const": readonly ["error", {
69
+ readonly destructuring: "all";
70
+ readonly ignoreReadonly: false;
71
+ }];
66
72
  readonly "svelte/prefer-destructured-store-props": "error";
67
73
  readonly "svelte/require-each-key": "error";
68
74
  readonly "svelte/require-event-dispatcher-types": "error";
69
75
  readonly "svelte/require-optimized-style-attribute": "error";
70
76
  readonly "svelte/require-stores-init": "error";
71
77
  readonly "svelte/valid-each-key": "error";
78
+ readonly "svelte/consistent-selector-style": readonly ["error", {
79
+ readonly checkGlobal: true;
80
+ readonly style: readonly ["type", "id", "class"];
81
+ }];
72
82
  readonly "svelte/derived-has-same-inputs-outputs": "error";
73
83
  readonly "svelte/first-attribute-linebreak": readonly ["error", {
74
84
  readonly multiline: "below";
75
85
  readonly singleline: "below";
76
86
  }];
87
+ readonly "svelte/html-closing-bracket-new-line": readonly ["error", {
88
+ readonly singleline: "never";
89
+ readonly multiline: "always";
90
+ readonly selfClosingTag: {
91
+ readonly singleline: "never";
92
+ readonly multiline: "always";
93
+ };
94
+ }];
77
95
  readonly "svelte/html-closing-bracket-spacing": readonly ["error", {
78
96
  readonly startTag: "never";
79
97
  readonly endTag: "never";
80
- readonly selfClosingTag: "always";
98
+ readonly selfClosingTag: "never";
81
99
  }];
82
100
  readonly "svelte/html-quotes": readonly ["error", {
83
101
  readonly prefer: "double";
@@ -95,8 +113,10 @@ declare const _default: (readonly ["disable", {
95
113
  }];
96
114
  readonly "svelte/indent": readonly ["error", {
97
115
  readonly indent: 2;
116
+ readonly indentScript: true;
117
+ readonly ignoredNodes: readonly [];
98
118
  readonly switchCase: 1;
99
- readonly alignAttributesVertically: true;
119
+ readonly alignAttributesVertically: false;
100
120
  }];
101
121
  readonly "svelte/max-attributes-per-line": readonly ["error", {
102
122
  readonly multiline: 1;
@@ -126,7 +146,9 @@ declare const _default: (readonly ["disable", {
126
146
  }];
127
147
  readonly "svelte/sort-attributes": "off";
128
148
  readonly "svelte/spaced-html-comment": readonly ["error", "always"];
129
- readonly "svelte/no-goto-without-base": "error";
149
+ readonly "svelte/no-export-load-in-svelte-module-in-kit-pages": "error";
150
+ readonly "svelte/no-navigation-without-base": "error";
151
+ readonly "svelte/valid-prop-names-in-kit-pages": "error";
130
152
  readonly "svelte/comment-directive": readonly ["error", {
131
153
  readonly reportUnusedDisableDirectives: true;
132
154
  }];
@@ -135,7 +157,10 @@ declare const _default: (readonly ["disable", {
135
157
  readonly "svelte/no-inner-declarations": readonly ["error", "both", {
136
158
  readonly blockScopedFunctions: "allow";
137
159
  }];
138
- readonly "svelte/no-trailing-spaces": "off";
160
+ readonly "svelte/no-trailing-spaces": readonly ["error", {
161
+ readonly skipBlankLines: false;
162
+ readonly ignoreComments: false;
163
+ }];
139
164
  }])[];
140
165
  export default _default;
141
166
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/svelte/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAME"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/svelte/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAME"}
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": "6.3.2",
6
+ "version": "7.0.0-rc.0",
7
7
  "description": "Default scopes for `linted`.",
8
8
  "repository": "github:jimmy-zhening-luo/linted-defaults",
9
9
  "license": "MIT",
@@ -9,5 +9,6 @@ export const SvelteDisableExtension = [
9
9
  // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#extension-rules
10
10
  "no-inner-declarations": OFF /* also disabled in svelte/disable per Svelte base config */,
11
11
  "no-self-assign": OFF /* ESLint */,
12
+ "@stylistic/no-trailing-spaces": OFF /* svelte/no-trailing-spaces */,
12
13
  } as const,
13
14
  ] as const;
@@ -13,5 +13,6 @@ export const SvelteDisable = [
13
13
  "no-inner-declarations": OFF /* The AST generated by svelte-eslint-parser will false positives in it rule because the root node of the script is not the `Program`. */,
14
14
  // "no-irregular-whitespace": OFF /* INFO: This is commented out in the config as well */,
15
15
  "no-self-assign": OFF /* Self assign is one of way to update reactive value in Svelte */,
16
+ "prefer-const": OFF /* svelte/prefer-const */,
16
17
  } as const,
17
18
  ] as const;
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  ID,
3
3
  ERROR,
4
- OFF,
5
4
  allow,
6
5
  both,
7
6
  } from "../../_strings";
@@ -16,7 +15,13 @@ export const SvelteEnableExtension = [
16
15
  {
17
16
  blockScopedFunctions: allow,
18
17
  },
19
- ] /* Same options as in JsEnable */,
20
- "svelte/no-trailing-spaces": OFF /* Only applies to HTML comments, which I don't intend to use: http://sveltejs.github.io/eslint-plugin-svelte/rules/no-trailing-spaces/ */,
18
+ ] /* same options: no-inner-declarations */,
19
+ "svelte/no-trailing-spaces": [
20
+ ERROR,
21
+ {
22
+ skipBlankLines: false,
23
+ ignoreComments: false,
24
+ },
25
+ ] /* same options: @stylistic/no-trailing-spaces */,
21
26
  } as const,
22
27
  ] as const;
@@ -2,11 +2,12 @@ import {
2
2
  ID,
3
3
  ERROR,
4
4
  OFF,
5
- ignore,
6
- never,
5
+ all,
7
6
  always,
8
7
  below,
9
8
  double,
9
+ ignore,
10
+ never,
10
11
  } from "../../_strings";
11
12
 
12
13
  export const SvelteEnable = [
@@ -20,10 +21,9 @@ export const SvelteEnable = [
20
21
  "svelte/no-dupe-on-directives": ERROR,
21
22
  "svelte/no-dupe-style-properties": ERROR,
22
23
  "svelte/no-dupe-use-directives": ERROR,
23
- "svelte/no-dynamic-slot-name": ERROR,
24
- "svelte/no-export-load-in-svelte-module-in-kit-pages": ERROR,
25
24
  "svelte/no-not-function-handler": ERROR,
26
25
  "svelte/no-object-in-text-mustaches": ERROR,
26
+ "svelte/no-raw-special-elements": ERROR,
27
27
  "svelte/no-reactive-reassign": [
28
28
  ERROR,
29
29
  {
@@ -46,9 +46,9 @@ export const SvelteEnable = [
46
46
  ignoreWarnings: false,
47
47
  },
48
48
  ],
49
- "svelte/valid-prop-names-in-kit-pages": ERROR,
49
+ "svelte/valid-style-parse": ERROR,
50
50
 
51
- // #endregion ERRORS
51
+ // #endregion
52
52
 
53
53
  // #region SECURITY
54
54
  // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#security-vulnerability
@@ -61,7 +61,7 @@ export const SvelteEnable = [
61
61
  },
62
62
  ],
63
63
 
64
- // #endregion SECURITY
64
+ // #endregion
65
65
 
66
66
  // #region BEST PRACTICES
67
67
  // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#best-practices
@@ -99,6 +99,7 @@ export const SvelteEnable = [
99
99
  "svelte/no-svelte-internal": ERROR,
100
100
  "svelte/no-unused-class-name": OFF /* incompatible: breaks if css class is located in another file; BUG: ESLint error if array empty */,
101
101
  "svelte/no-unused-svelte-ignore": ERROR,
102
+ "svelte/no-useless-children-snippet": ERROR,
102
103
  "svelte/no-useless-mustaches": [
103
104
  ERROR,
104
105
  {
@@ -106,6 +107,13 @@ export const SvelteEnable = [
106
107
  ignoreStringEscape: false,
107
108
  },
108
109
  ],
110
+ "svelte/prefer-const": [
111
+ ERROR,
112
+ {
113
+ destructuring: all,
114
+ ignoreReadonly: false,
115
+ },
116
+ ] /* same options: prefer-const */,
109
117
  "svelte/prefer-destructured-store-props": ERROR,
110
118
  "svelte/require-each-key": ERROR,
111
119
  "svelte/require-event-dispatcher-types": ERROR,
@@ -113,10 +121,21 @@ export const SvelteEnable = [
113
121
  "svelte/require-stores-init": ERROR,
114
122
  "svelte/valid-each-key": ERROR,
115
123
 
116
- // #endregion BEST PRACTICES
124
+ // #endregion
117
125
 
118
126
  // #region STYLE
119
127
  // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#stylistic-issues
128
+ "svelte/consistent-selector-style": [
129
+ ERROR,
130
+ {
131
+ checkGlobal: true /* @default: false */,
132
+ style: [
133
+ "type",
134
+ "id",
135
+ "class",
136
+ ],
137
+ },
138
+ ],
120
139
  "svelte/derived-has-same-inputs-outputs": ERROR,
121
140
  "svelte/first-attribute-linebreak": [
122
141
  ERROR,
@@ -125,12 +144,23 @@ export const SvelteEnable = [
125
144
  singleline: below,
126
145
  },
127
146
  ],
147
+ "svelte/html-closing-bracket-new-line": [
148
+ ERROR,
149
+ {
150
+ singleline: never,
151
+ multiline: always,
152
+ selfClosingTag: {
153
+ singleline: never,
154
+ multiline: always,
155
+ },
156
+ },
157
+ ],
128
158
  "svelte/html-closing-bracket-spacing": [
129
159
  ERROR,
130
160
  {
131
161
  startTag: never,
132
162
  endTag: never,
133
- selfClosingTag: always,
163
+ selfClosingTag: never,
134
164
  },
135
165
  ],
136
166
  "svelte/html-quotes": [
@@ -157,8 +187,10 @@ export const SvelteEnable = [
157
187
  ERROR,
158
188
  {
159
189
  indent: 2,
190
+ indentScript: true,
191
+ ignoredNodes: [],
160
192
  switchCase: 1,
161
- alignAttributesVertically: true,
193
+ alignAttributesVertically: false,
162
194
  },
163
195
  ],
164
196
  "svelte/max-attributes-per-line": [
@@ -208,13 +240,15 @@ export const SvelteEnable = [
208
240
  always,
209
241
  ],
210
242
 
211
- // #endregion STYLE
243
+ // #endregion
212
244
 
213
245
  // #region SVELTE-KIT
214
246
  // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#svelte-kit
215
- "svelte/no-goto-without-base": ERROR,
247
+ "svelte/no-export-load-in-svelte-module-in-kit-pages": ERROR,
248
+ "svelte/no-navigation-without-base": ERROR,
249
+ "svelte/valid-prop-names-in-kit-pages": ERROR,
216
250
 
217
- // #endregion SVELTE-KIT
251
+ // #endregion
218
252
 
219
253
  // #region REQUIRED
220
254
  // DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#system
@@ -226,7 +260,7 @@ export const SvelteEnable = [
226
260
  ],
227
261
  "svelte/system": ERROR,
228
262
 
229
- // #endregion REQUIRED
263
+ // #endregion
230
264
 
231
265
  } as const,
232
266
  ] as const;