linted 16.12.2-rc.0 → 16.12.2-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/.github/workflows/RELEASE.yml +35 -35
- package/.github/workflows/rc.yml +35 -35
- package/LICENSE +21 -21
- package/README.md +390 -390
- package/SECURITY.md +9 -9
- package/dist/imports/plugins.d.ts.map +1 -1
- package/dist/imports.d.ts.map +1 -1
- package/dist/rules/html/enable.d.ts +8 -0
- package/dist/rules/html/enable.d.ts.map +1 -0
- package/dist/rules/html/enable.js +15 -0
- package/dist/rules/html/enable.js.map +1 -0
- package/dist/rules/html/enable_recommended.d.ts +3 -0
- package/dist/rules/html/enable_recommended.d.ts.map +1 -0
- package/dist/rules/html/enable_recommended.js +8 -0
- package/dist/rules/html/enable_recommended.js.map +1 -0
- package/dist/rules/html.d.ts +8 -0
- package/dist/rules/html.d.ts.map +1 -0
- package/dist/rules/html.js +4 -0
- package/dist/rules/html.js.map +1 -0
- package/dist/rules/js/enable.d.ts +348 -0
- package/dist/rules/js/enable.d.ts.map +1 -0
- package/dist/rules/js/enable.js +496 -0
- package/dist/rules/js/enable.js.map +1 -0
- package/dist/rules/js/enable_stylistic.d.ts +420 -0
- package/dist/rules/js/enable_stylistic.d.ts.map +1 -0
- package/dist/rules/js/enable_stylistic.js +585 -0
- package/dist/rules/js/enable_stylistic.js.map +1 -0
- package/dist/rules/js.d.ts +765 -0
- package/dist/rules/js.d.ts.map +1 -0
- package/dist/rules/js.js +4 -0
- package/dist/rules/js.js.map +1 -0
- package/dist/rules/json/enable.d.ts +27 -0
- package/dist/rules/json/enable.d.ts.map +1 -0
- package/dist/rules/json/enable.js +31 -0
- package/dist/rules/json/enable.js.map +1 -0
- package/dist/rules/json/enable_x.d.ts.map +1 -1
- package/dist/rules/json/enable_x.js +48 -8
- package/dist/rules/json/enable_x.js.map +1 -1
- package/dist/rules/json.d.ts +74 -0
- package/dist/rules/json.d.ts.map +1 -0
- package/dist/rules/json.js +4 -0
- package/dist/rules/json.js.map +1 -0
- package/dist/rules/jsonc/override.d.ts.map +1 -1
- package/dist/rules/jsonc/override.js +12 -3
- package/dist/rules/jsonc/override.js.map +1 -1
- package/dist/rules/jsonc.d.ts +77 -0
- package/dist/rules/jsonc.d.ts.map +1 -0
- package/dist/rules/jsonc.js +4 -0
- package/dist/rules/jsonc.js.map +1 -0
- package/dist/rules/md/enable.d.ts +7 -0
- package/dist/rules/md/enable.d.ts.map +1 -0
- package/dist/rules/md/enable.js +14 -0
- package/dist/rules/md/enable.js.map +1 -0
- package/dist/rules/md.d.ts +7 -0
- package/dist/rules/md.d.ts.map +1 -0
- package/dist/rules/md.js +3 -0
- package/dist/rules/md.js.map +1 -0
- package/dist/rules/mocha/enable.d.ts +3 -0
- package/dist/rules/mocha/enable.d.ts.map +1 -0
- package/dist/rules/mocha/enable.js +3 -0
- package/dist/rules/mocha/enable.js.map +1 -0
- package/dist/rules/mocha/enable_recommended.d.ts +3 -0
- package/dist/rules/mocha/enable_recommended.d.ts.map +1 -0
- package/dist/rules/mocha/enable_recommended.js +8 -0
- package/dist/rules/mocha/enable_recommended.js.map +1 -0
- package/dist/rules/mocha.d.ts +8 -0
- package/dist/rules/mocha.d.ts.map +1 -0
- package/dist/rules/mocha.js +4 -0
- package/dist/rules/mocha.js.map +1 -0
- package/dist/rules/svelte/disable.d.ts +5 -0
- package/dist/rules/svelte/disable.d.ts.map +1 -0
- package/dist/rules/svelte/disable.js +8 -0
- package/dist/rules/svelte/disable.js.map +1 -0
- package/dist/rules/svelte/disable_js.d.ts.map +1 -1
- package/dist/rules/svelte/disable_js.js +8 -3
- package/dist/rules/svelte/disable_js.js.map +1 -1
- package/dist/rules/svelte/disable_ts.d.ts.map +1 -1
- package/dist/rules/svelte/disable_ts.js +8 -3
- package/dist/rules/svelte/disable_ts.js.map +1 -1
- package/dist/rules/svelte/enable.d.ts +126 -0
- package/dist/rules/svelte/enable.d.ts.map +1 -0
- package/dist/rules/svelte/enable.js +190 -0
- package/dist/rules/svelte/enable.js.map +1 -0
- package/dist/rules/svelte/enable_x.d.ts.map +1 -1
- package/dist/rules/svelte/enable_x.js +15 -3
- package/dist/rules/svelte/enable_x.js.map +1 -1
- package/dist/rules/svelte.d.ts +1269 -0
- package/dist/rules/svelte.d.ts.map +1 -0
- package/dist/rules/svelte.js +15 -0
- package/dist/rules/svelte.js.map +1 -0
- package/dist/rules/ts/disable.d.ts +18 -0
- package/dist/rules/ts/disable.d.ts.map +1 -0
- package/dist/rules/ts/disable.js +21 -0
- package/dist/rules/ts/disable.js.map +1 -0
- package/dist/rules/ts/disable_x.d.ts.map +1 -1
- package/dist/rules/ts/disable_x.js +1 -2
- package/dist/rules/ts/disable_x.js.map +1 -1
- package/dist/rules/ts/enable.d.ts +262 -0
- package/dist/rules/ts/enable.d.ts.map +1 -0
- package/dist/rules/ts/enable.js +503 -0
- package/dist/rules/ts/enable.js.map +1 -0
- package/dist/rules/ts/enable_x.d.ts.map +1 -1
- package/dist/rules/ts/enable_x.js +32 -5
- package/dist/rules/ts/enable_x.js.map +1 -1
- package/dist/rules/ts.d.ts +1133 -0
- package/dist/rules/ts.d.ts.map +1 -0
- package/dist/rules/ts.js +13 -0
- package/dist/rules/ts.js.map +1 -0
- package/dist/rules/yml/enable.d.ts +39 -0
- package/dist/rules/yml/enable.d.ts.map +1 -0
- package/dist/rules/yml/enable.js +60 -0
- package/dist/rules/yml/enable.js.map +1 -0
- package/dist/rules/yml/enable_x.d.ts.map +1 -1
- package/dist/rules/yml/enable_x.js +57 -9
- package/dist/rules/yml/enable_x.js.map +1 -1
- package/dist/rules/yml.d.ts +73 -0
- package/dist/rules/yml.d.ts.map +1 -0
- package/dist/rules/yml.js +4 -0
- package/dist/rules/yml.js.map +1 -0
- package/dist/rules.d.ts +75 -75
- package/dist/rules.js +9 -9
- package/dist/rules.js.map +1 -1
- package/eslint.config.js +3 -3
- package/package.json +99 -99
- package/src/files/html.ts +1 -1
- package/src/files/js.ts +1 -1
- package/src/files/json.ts +1 -1
- package/src/files/jsonc.ts +4 -4
- package/src/files/md.ts +1 -1
- package/src/files/mocha.ts +1 -1
- package/src/files/svelte.ts +1 -1
- package/src/files/ts.ts +5 -5
- package/src/files/yml.ts +5 -5
- package/src/files.ts +22 -22
- package/src/imports/parsers.ts +15 -15
- package/src/imports/plugins.ts +19 -19
- package/src/imports.ts +8 -8
- package/src/index.ts +36 -36
- package/src/rules/_strings/id.ts +18 -18
- package/src/rules/_strings/level.ts +6 -6
- package/src/rules/_strings/state.ts +56 -56
- package/src/rules/_strings.ts +6 -6
- package/src/rules/html/enable.ts +16 -0
- package/src/rules/html/enable_recommended.ts +9 -0
- package/src/rules/html.ts +4 -0
- package/src/rules/js/enable.ts +524 -0
- package/src/rules/js/enable_stylistic.ts +608 -0
- package/src/rules/js.ts +4 -0
- package/src/rules/json/{_enable.ts → enable.ts} +33 -35
- package/src/rules/json/enable_x.ts +89 -50
- package/src/rules/{_json.ts → json.ts} +4 -4
- package/src/rules/jsonc/override.ts +16 -9
- package/src/rules/{_jsonc.ts → jsonc.ts} +4 -4
- package/src/rules/md/enable.ts +15 -0
- package/src/rules/md.ts +3 -0
- package/src/rules/mocha/enable.ts +3 -0
- package/src/rules/mocha/enable_recommended.ts +9 -0
- package/src/rules/mocha.ts +4 -0
- package/src/rules/svelte/disable.ts +9 -0
- package/src/rules/svelte/disable_js.ts +11 -7
- package/src/rules/svelte/disable_ts.ts +9 -5
- package/src/rules/svelte/{_enable.ts → enable.ts} +228 -129
- package/src/rules/svelte/enable_x.ts +20 -9
- package/src/rules/{_svelte.ts → svelte.ts} +15 -15
- package/src/rules/ts/{disable_compiler.ts → disable.ts} +22 -23
- package/src/rules/ts/disable_x.ts +32 -36
- package/src/rules/ts/{_enable.ts → enable.ts} +549 -406
- package/src/rules/ts/enable_x.ts +115 -90
- package/src/rules/{_ts.ts → ts.ts} +13 -13
- package/src/rules/yml/{_enable.ts → enable.ts} +64 -33
- package/src/rules/yml/enable_x.ts +68 -21
- package/src/rules/{_yml.ts → yml.ts} +4 -4
- package/src/rules.ts +22 -22
- package/tsconfig.json +161 -161
- package/types/markdownlint/index.d.ts +3 -3
- package/types/markdownlint/parser.d.ts +9 -9
- package/types/mocha/index.d.ts +8 -8
- package/src/rules/_html.ts +0 -4
- package/src/rules/_js.ts +0 -4
- package/src/rules/_md.ts +0 -3
- package/src/rules/_mocha.ts +0 -4
- package/src/rules/html/_enable.ts +0 -13
- package/src/rules/html/_recommended.ts +0 -7
- package/src/rules/js/_enable.ts +0 -287
- package/src/rules/js/stylistic.ts +0 -294
- package/src/rules/md/_enable.ts +0 -14
- package/src/rules/mocha/_enable.ts +0 -5
- package/src/rules/mocha/_recommended.ts +0 -7
- package/src/rules/svelte/disable_x.ts +0 -8
package/dist/rules.d.ts
CHANGED
@@ -134,17 +134,17 @@ declare const _default: {
|
|
134
134
|
}];
|
135
135
|
readonly "@stylistic/lines-between-class-members": readonly ["error", {
|
136
136
|
readonly enforce: readonly [{
|
137
|
-
readonly blankLine: "never";
|
138
137
|
readonly prev: "field";
|
139
138
|
readonly next: "field";
|
139
|
+
readonly blankLine: "never";
|
140
140
|
}, {
|
141
|
-
readonly blankLine: "always";
|
142
141
|
readonly prev: "field";
|
143
142
|
readonly next: "method";
|
144
|
-
}, {
|
145
143
|
readonly blankLine: "always";
|
144
|
+
}, {
|
146
145
|
readonly prev: "method";
|
147
146
|
readonly next: "*";
|
147
|
+
readonly blankLine: "always";
|
148
148
|
}];
|
149
149
|
}, {
|
150
150
|
readonly exceptAfterSingleLine: false;
|
@@ -267,89 +267,89 @@ declare const _default: {
|
|
267
267
|
readonly allowSingleLineBlocks: true;
|
268
268
|
}];
|
269
269
|
readonly "@stylistic/padding-line-between-statements": readonly ["error", {
|
270
|
-
readonly blankLine: "always";
|
271
270
|
readonly prev: "directive";
|
272
271
|
readonly next: "*";
|
272
|
+
readonly blankLine: "always";
|
273
273
|
}, {
|
274
|
-
readonly blankLine: "never";
|
275
274
|
readonly prev: "directive";
|
276
275
|
readonly next: "directive";
|
276
|
+
readonly blankLine: "never";
|
277
277
|
}, {
|
278
|
-
readonly blankLine: "always";
|
279
278
|
readonly prev: readonly ["import", "cjs-import"];
|
280
279
|
readonly next: "*";
|
280
|
+
readonly blankLine: "always";
|
281
281
|
}, {
|
282
|
-
readonly blankLine: "never";
|
283
282
|
readonly prev: readonly ["import", "cjs-import"];
|
284
283
|
readonly next: readonly ["import", "cjs-import"];
|
284
|
+
readonly blankLine: "never";
|
285
285
|
}, {
|
286
|
-
readonly blankLine: "always";
|
287
286
|
readonly prev: readonly ["class", "interface", "try", "for", "if", "do", "while", "switch", "block", "block-like", "iife", "empty", "debugger", "with"];
|
288
287
|
readonly next: "*";
|
289
|
-
}, {
|
290
288
|
readonly blankLine: "always";
|
289
|
+
}, {
|
291
290
|
readonly prev: "case";
|
292
291
|
readonly next: "*";
|
293
|
-
}, {
|
294
292
|
readonly blankLine: "always";
|
293
|
+
}, {
|
295
294
|
readonly prev: "case";
|
296
295
|
readonly next: readonly ["case", "default"];
|
297
|
-
}, {
|
298
296
|
readonly blankLine: "always";
|
297
|
+
}, {
|
299
298
|
readonly prev: "default";
|
300
299
|
readonly next: "*";
|
301
|
-
}, {
|
302
300
|
readonly blankLine: "always";
|
301
|
+
}, {
|
303
302
|
readonly prev: "type";
|
304
303
|
readonly next: "*";
|
304
|
+
readonly blankLine: "always";
|
305
305
|
}, {
|
306
|
-
readonly blankLine: "never";
|
307
306
|
readonly prev: "type";
|
308
307
|
readonly next: "type";
|
308
|
+
readonly blankLine: "never";
|
309
309
|
}, {
|
310
|
-
readonly blankLine: "always";
|
311
310
|
readonly prev: "function";
|
312
311
|
readonly next: "*";
|
313
|
-
}, {
|
314
312
|
readonly blankLine: "always";
|
313
|
+
}, {
|
315
314
|
readonly prev: "function-overload";
|
316
315
|
readonly next: "*";
|
316
|
+
readonly blankLine: "always";
|
317
317
|
}, {
|
318
|
-
readonly blankLine: "never";
|
319
318
|
readonly prev: "function-overload";
|
320
319
|
readonly next: "function-overload";
|
321
|
-
}, {
|
322
320
|
readonly blankLine: "never";
|
321
|
+
}, {
|
323
322
|
readonly prev: "function-overload";
|
324
323
|
readonly next: "function";
|
324
|
+
readonly blankLine: "never";
|
325
325
|
}, {
|
326
|
-
readonly blankLine: "always";
|
327
326
|
readonly prev: readonly ["const", "let", "var"];
|
328
327
|
readonly next: "*";
|
328
|
+
readonly blankLine: "always";
|
329
329
|
}, {
|
330
|
-
readonly blankLine: "never";
|
331
330
|
readonly prev: readonly ["const", "let", "var"];
|
332
331
|
readonly next: readonly ["const", "let", "var"];
|
332
|
+
readonly blankLine: "never";
|
333
333
|
}, {
|
334
|
-
readonly blankLine: "always";
|
335
334
|
readonly prev: "expression";
|
336
335
|
readonly next: "*";
|
336
|
+
readonly blankLine: "always";
|
337
337
|
}, {
|
338
|
-
readonly blankLine: "never";
|
339
338
|
readonly prev: "expression";
|
340
339
|
readonly next: "expression";
|
340
|
+
readonly blankLine: "never";
|
341
341
|
}, {
|
342
|
-
readonly blankLine: "always";
|
343
342
|
readonly prev: "*";
|
344
343
|
readonly next: readonly ["throw", "return", "break", "continue"];
|
345
|
-
}, {
|
346
344
|
readonly blankLine: "always";
|
345
|
+
}, {
|
347
346
|
readonly prev: "*";
|
348
347
|
readonly next: readonly ["export", "cjs-export"];
|
348
|
+
readonly blankLine: "always";
|
349
349
|
}, {
|
350
|
-
readonly blankLine: "never";
|
351
350
|
readonly prev: readonly ["export", "cjs-export"];
|
352
351
|
readonly next: readonly ["export", "cjs-export"];
|
352
|
+
readonly blankLine: "never";
|
353
353
|
}];
|
354
354
|
readonly "@stylistic/quote-props": readonly ["error", "as-needed", {
|
355
355
|
readonly keywords: true;
|
@@ -897,17 +897,17 @@ declare const _default: {
|
|
897
897
|
}];
|
898
898
|
readonly "@stylistic/lines-between-class-members": readonly ["error", {
|
899
899
|
readonly enforce: readonly [{
|
900
|
-
readonly blankLine: "never";
|
901
900
|
readonly prev: "field";
|
902
901
|
readonly next: "field";
|
902
|
+
readonly blankLine: "never";
|
903
903
|
}, {
|
904
|
-
readonly blankLine: "always";
|
905
904
|
readonly prev: "field";
|
906
905
|
readonly next: "method";
|
907
|
-
}, {
|
908
906
|
readonly blankLine: "always";
|
907
|
+
}, {
|
909
908
|
readonly prev: "method";
|
910
909
|
readonly next: "*";
|
910
|
+
readonly blankLine: "always";
|
911
911
|
}];
|
912
912
|
}, {
|
913
913
|
readonly exceptAfterSingleLine: false;
|
@@ -1030,89 +1030,89 @@ declare const _default: {
|
|
1030
1030
|
readonly allowSingleLineBlocks: true;
|
1031
1031
|
}];
|
1032
1032
|
readonly "@stylistic/padding-line-between-statements": readonly ["error", {
|
1033
|
-
readonly blankLine: "always";
|
1034
1033
|
readonly prev: "directive";
|
1035
1034
|
readonly next: "*";
|
1035
|
+
readonly blankLine: "always";
|
1036
1036
|
}, {
|
1037
|
-
readonly blankLine: "never";
|
1038
1037
|
readonly prev: "directive";
|
1039
1038
|
readonly next: "directive";
|
1039
|
+
readonly blankLine: "never";
|
1040
1040
|
}, {
|
1041
|
-
readonly blankLine: "always";
|
1042
1041
|
readonly prev: readonly ["import", "cjs-import"];
|
1043
1042
|
readonly next: "*";
|
1043
|
+
readonly blankLine: "always";
|
1044
1044
|
}, {
|
1045
|
-
readonly blankLine: "never";
|
1046
1045
|
readonly prev: readonly ["import", "cjs-import"];
|
1047
1046
|
readonly next: readonly ["import", "cjs-import"];
|
1047
|
+
readonly blankLine: "never";
|
1048
1048
|
}, {
|
1049
|
-
readonly blankLine: "always";
|
1050
1049
|
readonly prev: readonly ["class", "interface", "try", "for", "if", "do", "while", "switch", "block", "block-like", "iife", "empty", "debugger", "with"];
|
1051
1050
|
readonly next: "*";
|
1052
|
-
}, {
|
1053
1051
|
readonly blankLine: "always";
|
1052
|
+
}, {
|
1054
1053
|
readonly prev: "case";
|
1055
1054
|
readonly next: "*";
|
1056
|
-
}, {
|
1057
1055
|
readonly blankLine: "always";
|
1056
|
+
}, {
|
1058
1057
|
readonly prev: "case";
|
1059
1058
|
readonly next: readonly ["case", "default"];
|
1060
|
-
}, {
|
1061
1059
|
readonly blankLine: "always";
|
1060
|
+
}, {
|
1062
1061
|
readonly prev: "default";
|
1063
1062
|
readonly next: "*";
|
1064
|
-
}, {
|
1065
1063
|
readonly blankLine: "always";
|
1064
|
+
}, {
|
1066
1065
|
readonly prev: "type";
|
1067
1066
|
readonly next: "*";
|
1067
|
+
readonly blankLine: "always";
|
1068
1068
|
}, {
|
1069
|
-
readonly blankLine: "never";
|
1070
1069
|
readonly prev: "type";
|
1071
1070
|
readonly next: "type";
|
1071
|
+
readonly blankLine: "never";
|
1072
1072
|
}, {
|
1073
|
-
readonly blankLine: "always";
|
1074
1073
|
readonly prev: "function";
|
1075
1074
|
readonly next: "*";
|
1076
|
-
}, {
|
1077
1075
|
readonly blankLine: "always";
|
1076
|
+
}, {
|
1078
1077
|
readonly prev: "function-overload";
|
1079
1078
|
readonly next: "*";
|
1079
|
+
readonly blankLine: "always";
|
1080
1080
|
}, {
|
1081
|
-
readonly blankLine: "never";
|
1082
1081
|
readonly prev: "function-overload";
|
1083
1082
|
readonly next: "function-overload";
|
1084
|
-
}, {
|
1085
1083
|
readonly blankLine: "never";
|
1084
|
+
}, {
|
1086
1085
|
readonly prev: "function-overload";
|
1087
1086
|
readonly next: "function";
|
1087
|
+
readonly blankLine: "never";
|
1088
1088
|
}, {
|
1089
|
-
readonly blankLine: "always";
|
1090
1089
|
readonly prev: readonly ["const", "let", "var"];
|
1091
1090
|
readonly next: "*";
|
1091
|
+
readonly blankLine: "always";
|
1092
1092
|
}, {
|
1093
|
-
readonly blankLine: "never";
|
1094
1093
|
readonly prev: readonly ["const", "let", "var"];
|
1095
1094
|
readonly next: readonly ["const", "let", "var"];
|
1095
|
+
readonly blankLine: "never";
|
1096
1096
|
}, {
|
1097
|
-
readonly blankLine: "always";
|
1098
1097
|
readonly prev: "expression";
|
1099
1098
|
readonly next: "*";
|
1099
|
+
readonly blankLine: "always";
|
1100
1100
|
}, {
|
1101
|
-
readonly blankLine: "never";
|
1102
1101
|
readonly prev: "expression";
|
1103
1102
|
readonly next: "expression";
|
1103
|
+
readonly blankLine: "never";
|
1104
1104
|
}, {
|
1105
|
-
readonly blankLine: "always";
|
1106
1105
|
readonly prev: "*";
|
1107
1106
|
readonly next: readonly ["throw", "return", "break", "continue"];
|
1108
|
-
}, {
|
1109
1107
|
readonly blankLine: "always";
|
1108
|
+
}, {
|
1110
1109
|
readonly prev: "*";
|
1111
1110
|
readonly next: readonly ["export", "cjs-export"];
|
1111
|
+
readonly blankLine: "always";
|
1112
1112
|
}, {
|
1113
|
-
readonly blankLine: "never";
|
1114
1113
|
readonly prev: readonly ["export", "cjs-export"];
|
1115
1114
|
readonly next: readonly ["export", "cjs-export"];
|
1115
|
+
readonly blankLine: "never";
|
1116
1116
|
}];
|
1117
1117
|
readonly "@stylistic/quote-props": readonly ["error", "as-needed", {
|
1118
1118
|
readonly keywords: true;
|
@@ -1524,7 +1524,7 @@ declare const _default: {
|
|
1524
1524
|
readonly onlyEquality: false;
|
1525
1525
|
}];
|
1526
1526
|
readonly "unicode-bom": "off";
|
1527
|
-
}], readonly ["disable
|
1527
|
+
}], readonly ["disable", {
|
1528
1528
|
readonly "constructor-super": "off";
|
1529
1529
|
readonly "no-const-assign": "off";
|
1530
1530
|
readonly "no-dupe-args": "off";
|
@@ -2028,17 +2028,17 @@ declare const _default: {
|
|
2028
2028
|
}];
|
2029
2029
|
readonly "@stylistic/lines-between-class-members": readonly ["error", {
|
2030
2030
|
readonly enforce: readonly [{
|
2031
|
-
readonly blankLine: "never";
|
2032
2031
|
readonly prev: "field";
|
2033
2032
|
readonly next: "field";
|
2033
|
+
readonly blankLine: "never";
|
2034
2034
|
}, {
|
2035
|
-
readonly blankLine: "always";
|
2036
2035
|
readonly prev: "field";
|
2037
2036
|
readonly next: "method";
|
2038
|
-
}, {
|
2039
2037
|
readonly blankLine: "always";
|
2038
|
+
}, {
|
2040
2039
|
readonly prev: "method";
|
2041
2040
|
readonly next: "*";
|
2041
|
+
readonly blankLine: "always";
|
2042
2042
|
}];
|
2043
2043
|
}, {
|
2044
2044
|
readonly exceptAfterSingleLine: false;
|
@@ -2161,89 +2161,89 @@ declare const _default: {
|
|
2161
2161
|
readonly allowSingleLineBlocks: true;
|
2162
2162
|
}];
|
2163
2163
|
readonly "@stylistic/padding-line-between-statements": readonly ["error", {
|
2164
|
-
readonly blankLine: "always";
|
2165
2164
|
readonly prev: "directive";
|
2166
2165
|
readonly next: "*";
|
2166
|
+
readonly blankLine: "always";
|
2167
2167
|
}, {
|
2168
|
-
readonly blankLine: "never";
|
2169
2168
|
readonly prev: "directive";
|
2170
2169
|
readonly next: "directive";
|
2170
|
+
readonly blankLine: "never";
|
2171
2171
|
}, {
|
2172
|
-
readonly blankLine: "always";
|
2173
2172
|
readonly prev: readonly ["import", "cjs-import"];
|
2174
2173
|
readonly next: "*";
|
2174
|
+
readonly blankLine: "always";
|
2175
2175
|
}, {
|
2176
|
-
readonly blankLine: "never";
|
2177
2176
|
readonly prev: readonly ["import", "cjs-import"];
|
2178
2177
|
readonly next: readonly ["import", "cjs-import"];
|
2178
|
+
readonly blankLine: "never";
|
2179
2179
|
}, {
|
2180
|
-
readonly blankLine: "always";
|
2181
2180
|
readonly prev: readonly ["class", "interface", "try", "for", "if", "do", "while", "switch", "block", "block-like", "iife", "empty", "debugger", "with"];
|
2182
2181
|
readonly next: "*";
|
2183
|
-
}, {
|
2184
2182
|
readonly blankLine: "always";
|
2183
|
+
}, {
|
2185
2184
|
readonly prev: "case";
|
2186
2185
|
readonly next: "*";
|
2187
|
-
}, {
|
2188
2186
|
readonly blankLine: "always";
|
2187
|
+
}, {
|
2189
2188
|
readonly prev: "case";
|
2190
2189
|
readonly next: readonly ["case", "default"];
|
2191
|
-
}, {
|
2192
2190
|
readonly blankLine: "always";
|
2191
|
+
}, {
|
2193
2192
|
readonly prev: "default";
|
2194
2193
|
readonly next: "*";
|
2195
|
-
}, {
|
2196
2194
|
readonly blankLine: "always";
|
2195
|
+
}, {
|
2197
2196
|
readonly prev: "type";
|
2198
2197
|
readonly next: "*";
|
2198
|
+
readonly blankLine: "always";
|
2199
2199
|
}, {
|
2200
|
-
readonly blankLine: "never";
|
2201
2200
|
readonly prev: "type";
|
2202
2201
|
readonly next: "type";
|
2202
|
+
readonly blankLine: "never";
|
2203
2203
|
}, {
|
2204
|
-
readonly blankLine: "always";
|
2205
2204
|
readonly prev: "function";
|
2206
2205
|
readonly next: "*";
|
2207
|
-
}, {
|
2208
2206
|
readonly blankLine: "always";
|
2207
|
+
}, {
|
2209
2208
|
readonly prev: "function-overload";
|
2210
2209
|
readonly next: "*";
|
2210
|
+
readonly blankLine: "always";
|
2211
2211
|
}, {
|
2212
|
-
readonly blankLine: "never";
|
2213
2212
|
readonly prev: "function-overload";
|
2214
2213
|
readonly next: "function-overload";
|
2215
|
-
}, {
|
2216
2214
|
readonly blankLine: "never";
|
2215
|
+
}, {
|
2217
2216
|
readonly prev: "function-overload";
|
2218
2217
|
readonly next: "function";
|
2218
|
+
readonly blankLine: "never";
|
2219
2219
|
}, {
|
2220
|
-
readonly blankLine: "always";
|
2221
2220
|
readonly prev: readonly ["const", "let", "var"];
|
2222
2221
|
readonly next: "*";
|
2222
|
+
readonly blankLine: "always";
|
2223
2223
|
}, {
|
2224
|
-
readonly blankLine: "never";
|
2225
2224
|
readonly prev: readonly ["const", "let", "var"];
|
2226
2225
|
readonly next: readonly ["const", "let", "var"];
|
2226
|
+
readonly blankLine: "never";
|
2227
2227
|
}, {
|
2228
|
-
readonly blankLine: "always";
|
2229
2228
|
readonly prev: "expression";
|
2230
2229
|
readonly next: "*";
|
2230
|
+
readonly blankLine: "always";
|
2231
2231
|
}, {
|
2232
|
-
readonly blankLine: "never";
|
2233
2232
|
readonly prev: "expression";
|
2234
2233
|
readonly next: "expression";
|
2234
|
+
readonly blankLine: "never";
|
2235
2235
|
}, {
|
2236
|
-
readonly blankLine: "always";
|
2237
2236
|
readonly prev: "*";
|
2238
2237
|
readonly next: readonly ["throw", "return", "break", "continue"];
|
2239
|
-
}, {
|
2240
2238
|
readonly blankLine: "always";
|
2239
|
+
}, {
|
2241
2240
|
readonly prev: "*";
|
2242
2241
|
readonly next: readonly ["export", "cjs-export"];
|
2242
|
+
readonly blankLine: "always";
|
2243
2243
|
}, {
|
2244
|
-
readonly blankLine: "never";
|
2245
2244
|
readonly prev: readonly ["export", "cjs-export"];
|
2246
2245
|
readonly next: readonly ["export", "cjs-export"];
|
2246
|
+
readonly blankLine: "never";
|
2247
2247
|
}];
|
2248
2248
|
readonly "@stylistic/quote-props": readonly ["error", "as-needed", {
|
2249
2249
|
readonly keywords: true;
|
@@ -2655,7 +2655,7 @@ declare const _default: {
|
|
2655
2655
|
readonly onlyEquality: false;
|
2656
2656
|
}];
|
2657
2657
|
readonly "unicode-bom": "off";
|
2658
|
-
}], readonly ["disable
|
2658
|
+
}], readonly ["disable", {
|
2659
2659
|
readonly "constructor-super": "off";
|
2660
2660
|
readonly "no-const-assign": "off";
|
2661
2661
|
readonly "no-dupe-args": "off";
|
@@ -3029,7 +3029,7 @@ declare const _default: {
|
|
3029
3029
|
}], readonly ["disable-ts", {
|
3030
3030
|
readonly "no-unused-vars": "off";
|
3031
3031
|
readonly "@typescript-eslint/no-unused-vars": "off";
|
3032
|
-
}], readonly ["disable
|
3032
|
+
}], readonly ["disable", {
|
3033
3033
|
readonly "no-inner-declarations": "off";
|
3034
3034
|
}], readonly ["enable-extend", {
|
3035
3035
|
readonly "svelte/no-inner-declarations": readonly ["error", "both", {
|
package/dist/rules.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
import js from "./rules/
|
2
|
-
import ts from "./rules/
|
3
|
-
import svelte from "./rules/
|
4
|
-
import mocha from "./rules/
|
5
|
-
import html from "./rules/
|
6
|
-
import json from "./rules/
|
7
|
-
import jsonc from "./rules/
|
8
|
-
import yml from "./rules/
|
9
|
-
import md from "./rules/
|
1
|
+
import js from "./rules/js.js";
|
2
|
+
import ts from "./rules/ts.js";
|
3
|
+
import svelte from "./rules/svelte.js";
|
4
|
+
import mocha from "./rules/mocha.js";
|
5
|
+
import html from "./rules/html.js";
|
6
|
+
import json from "./rules/json.js";
|
7
|
+
import jsonc from "./rules/jsonc.js";
|
8
|
+
import yml from "./rules/yml.js";
|
9
|
+
import md from "./rules/md.js";
|
10
10
|
export default {
|
11
11
|
js,
|
12
12
|
ts,
|
package/dist/rules.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rules.js","sourceRoot":"","sources":["../src/rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"rules.js","sourceRoot":"","sources":["../src/rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,eAAe,CAAC;AAC/B,OAAO,EAAE,MAAM,eAAe,CAAC;AAC/B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,GAAG,MAAM,gBAAgB,CAAC;AACjC,OAAO,EAAE,MAAM,eAAe,CAAC;AAE/B,eAAe;IACb,EAAE;IACF,EAAE;IACF,MAAM;IACN,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,GAAG;IACH,EAAE;CACsC,CAAC"}
|
package/eslint.config.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
import linted from "linted";
|
2
|
-
|
3
|
-
export default linted();
|
1
|
+
import linted from "linted";
|
2
|
+
|
3
|
+
export default linted();
|
package/package.json
CHANGED
@@ -1,99 +1,99 @@
|
|
1
|
-
{
|
2
|
-
"_schemaVersion": "20.17.8",
|
3
|
-
"name": "linted",
|
4
|
-
"version": "16.12.2-rc.
|
5
|
-
"description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
|
6
|
-
"keywords": [
|
7
|
-
"eslint",
|
8
|
-
"eslint-config",
|
9
|
-
"eslint-plugin",
|
10
|
-
"linter",
|
11
|
-
"formatter",
|
12
|
-
"typescript",
|
13
|
-
"javascript",
|
14
|
-
"stylistic",
|
15
|
-
"svelte",
|
16
|
-
"sveltekit",
|
17
|
-
"html",
|
18
|
-
"css",
|
19
|
-
"mocha",
|
20
|
-
"tailwindcss",
|
21
|
-
"json",
|
22
|
-
"jsonc",
|
23
|
-
"yaml"
|
24
|
-
],
|
25
|
-
"license": "MIT",
|
26
|
-
"private": false,
|
27
|
-
"publishConfig": {
|
28
|
-
"access": "public"
|
29
|
-
},
|
30
|
-
"repository": "github:jimmy-zhening-luo/linted",
|
31
|
-
"homepage": "https://github.com/jimmy-zhening-luo/linted#readme",
|
32
|
-
"bugs": "https://github.com/jimmy-zhening-luo/linted/issues",
|
33
|
-
"type": "module",
|
34
|
-
"main": "dist/index.js",
|
35
|
-
"types": "dist/index.d.ts",
|
36
|
-
"engineStrict": true,
|
37
|
-
"engines": {
|
38
|
-
"node": ">=20.17.0",
|
39
|
-
"npm": ">=10.8.2"
|
40
|
-
},
|
41
|
-
"peerDependencies": {
|
42
|
-
"eslint": "~9.12.0",
|
43
|
-
"mocha": "^10.7.3",
|
44
|
-
"typescript": ">=5.6.3"
|
45
|
-
},
|
46
|
-
"peerDependenciesMeta": {
|
47
|
-
"mocha": {
|
48
|
-
"optional": true
|
49
|
-
},
|
50
|
-
"typescript": {
|
51
|
-
"optional": true
|
52
|
-
}
|
53
|
-
},
|
54
|
-
"dependencies": {
|
55
|
-
"@eslinted/core": "4.0.1",
|
56
|
-
"@html-eslint/eslint-plugin": "0.27.0",
|
57
|
-
"@html-eslint/parser": "0.27.0",
|
58
|
-
"@stylistic/eslint-plugin": "2.9.0",
|
59
|
-
"@typescript-eslint/eslint-plugin": "8.8.1",
|
60
|
-
"@typescript-eslint/parser": "8.8.1",
|
61
|
-
"eslint-plugin-jsonc": "2.16.0",
|
62
|
-
"eslint-plugin-markdownlint": "0.6.0",
|
63
|
-
"eslint-plugin-mocha": "10.5.0",
|
64
|
-
"eslint-plugin-svelte": "2.44.1",
|
65
|
-
"eslint-plugin-yml": "1.14.0",
|
66
|
-
"jsonc-eslint-parser": "2.4.0",
|
67
|
-
"svelte": "^4.2.19",
|
68
|
-
"svelte-eslint-parser": "0.41.1",
|
69
|
-
"yaml-eslint-parser": "1.2.3"
|
70
|
-
},
|
71
|
-
"devDependencies": {
|
72
|
-
"@eslint/config-inspector": "^0.5.4",
|
73
|
-
"eslint": "~9.12.0",
|
74
|
-
"linted": "16.12.1",
|
75
|
-
"npm-run-all": "^4.1.5",
|
76
|
-
"typescript": "^5.6.3"
|
77
|
-
},
|
78
|
-
"scripts": {
|
79
|
-
"build": "run-s \"build:{1}:*\" lint:built -- ts",
|
80
|
-
"build:ts:compile": "tsc",
|
81
|
-
"build:svelte:sync": "svelte-kit sync",
|
82
|
-
"build:svelte:check": "svelte-check --tsconfig ./tsconfig.json",
|
83
|
-
"build:svelte:compile": "vite build",
|
84
|
-
"build:svelte:prelint": "npm run ln src/**/*.svelte",
|
85
|
-
"lint": "npm run build",
|
86
|
-
"lint:built": "run-s lint:built:*",
|
87
|
-
"lint:built:configs": "npm run ln --files={*,.github/workflows/*}.{json,jsonc,js,ts,yml}",
|
88
|
-
"lint:built:source": "npm run ln --files=src/**/*.{js,ts,html}",
|
89
|
-
"ln": "eslint --cache --fix --no-error-on-unmatched-pattern %npm_config_files% || echo \"No linter installed.\"",
|
90
|
-
"pretest": "npm run build",
|
91
|
-
"test": "",
|
92
|
-
"start": "vite preview || node .",
|
93
|
-
"prestart": "npm test",
|
94
|
-
"prepublishOnly": "npm test",
|
95
|
-
"predeploy": "npm test",
|
96
|
-
"deploy": ""
|
97
|
-
},
|
98
|
-
"author": "Jimmy Zhening Luo <1450044+jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
|
99
|
-
}
|
1
|
+
{
|
2
|
+
"_schemaVersion": "20.17.8",
|
3
|
+
"name": "linted",
|
4
|
+
"version": "16.12.2-rc.2",
|
5
|
+
"description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
|
6
|
+
"keywords": [
|
7
|
+
"eslint",
|
8
|
+
"eslint-config",
|
9
|
+
"eslint-plugin",
|
10
|
+
"linter",
|
11
|
+
"formatter",
|
12
|
+
"typescript",
|
13
|
+
"javascript",
|
14
|
+
"stylistic",
|
15
|
+
"svelte",
|
16
|
+
"sveltekit",
|
17
|
+
"html",
|
18
|
+
"css",
|
19
|
+
"mocha",
|
20
|
+
"tailwindcss",
|
21
|
+
"json",
|
22
|
+
"jsonc",
|
23
|
+
"yaml"
|
24
|
+
],
|
25
|
+
"license": "MIT",
|
26
|
+
"private": false,
|
27
|
+
"publishConfig": {
|
28
|
+
"access": "public"
|
29
|
+
},
|
30
|
+
"repository": "github:jimmy-zhening-luo/linted",
|
31
|
+
"homepage": "https://github.com/jimmy-zhening-luo/linted#readme",
|
32
|
+
"bugs": "https://github.com/jimmy-zhening-luo/linted/issues",
|
33
|
+
"type": "module",
|
34
|
+
"main": "dist/index.js",
|
35
|
+
"types": "dist/index.d.ts",
|
36
|
+
"engineStrict": true,
|
37
|
+
"engines": {
|
38
|
+
"node": ">=20.17.0",
|
39
|
+
"npm": ">=10.8.2"
|
40
|
+
},
|
41
|
+
"peerDependencies": {
|
42
|
+
"eslint": "~9.12.0",
|
43
|
+
"mocha": "^10.7.3",
|
44
|
+
"typescript": ">=5.6.3"
|
45
|
+
},
|
46
|
+
"peerDependenciesMeta": {
|
47
|
+
"mocha": {
|
48
|
+
"optional": true
|
49
|
+
},
|
50
|
+
"typescript": {
|
51
|
+
"optional": true
|
52
|
+
}
|
53
|
+
},
|
54
|
+
"dependencies": {
|
55
|
+
"@eslinted/core": "4.0.1",
|
56
|
+
"@html-eslint/eslint-plugin": "0.27.0",
|
57
|
+
"@html-eslint/parser": "0.27.0",
|
58
|
+
"@stylistic/eslint-plugin": "2.9.0",
|
59
|
+
"@typescript-eslint/eslint-plugin": "8.8.1",
|
60
|
+
"@typescript-eslint/parser": "8.8.1",
|
61
|
+
"eslint-plugin-jsonc": "2.16.0",
|
62
|
+
"eslint-plugin-markdownlint": "0.6.0",
|
63
|
+
"eslint-plugin-mocha": "10.5.0",
|
64
|
+
"eslint-plugin-svelte": "2.44.1",
|
65
|
+
"eslint-plugin-yml": "1.14.0",
|
66
|
+
"jsonc-eslint-parser": "2.4.0",
|
67
|
+
"svelte": "^4.2.19",
|
68
|
+
"svelte-eslint-parser": "0.41.1",
|
69
|
+
"yaml-eslint-parser": "1.2.3"
|
70
|
+
},
|
71
|
+
"devDependencies": {
|
72
|
+
"@eslint/config-inspector": "^0.5.4",
|
73
|
+
"eslint": "~9.12.0",
|
74
|
+
"linted": "16.12.2-rc.1",
|
75
|
+
"npm-run-all": "^4.1.5",
|
76
|
+
"typescript": "^5.6.3"
|
77
|
+
},
|
78
|
+
"scripts": {
|
79
|
+
"build": "run-s \"build:{1}:*\" lint:built -- ts",
|
80
|
+
"build:ts:compile": "tsc",
|
81
|
+
"build:svelte:sync": "svelte-kit sync",
|
82
|
+
"build:svelte:check": "svelte-check --tsconfig ./tsconfig.json",
|
83
|
+
"build:svelte:compile": "vite build",
|
84
|
+
"build:svelte:prelint": "npm run ln src/**/*.svelte",
|
85
|
+
"lint": "npm run build",
|
86
|
+
"lint:built": "run-s lint:built:*",
|
87
|
+
"lint:built:configs": "npm run ln --files={*,.github/workflows/*}.{json,jsonc,js,ts,yml}",
|
88
|
+
"lint:built:source": "npm run ln --files=src/**/*.{js,ts,html}",
|
89
|
+
"ln": "eslint --cache --fix --no-error-on-unmatched-pattern %npm_config_files% || echo \"No linter installed.\"",
|
90
|
+
"pretest": "npm run build",
|
91
|
+
"test": "",
|
92
|
+
"start": "vite preview || node .",
|
93
|
+
"prestart": "npm test",
|
94
|
+
"prepublishOnly": "npm test",
|
95
|
+
"predeploy": "npm test",
|
96
|
+
"deploy": ""
|
97
|
+
},
|
98
|
+
"author": "Jimmy Zhening Luo <1450044+jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
|
99
|
+
}
|
package/src/files/html.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export default ["src/**/*.html"] as const;
|
1
|
+
export default ["src/**/*.html"] as const;
|
package/src/files/js.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export default ["**/*.config.js"] as const;
|
1
|
+
export default ["**/*.config.js"] as const;
|