linted 16.12.2-rc.0 → 16.12.2-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/rules/html/{_enable.d.ts → enable.d.ts} +1 -1
- 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/{mocha/_recommended.d.ts → html/enable_recommended.d.ts} +1 -1
- 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 → html.d.ts} +1 -1
- 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 → enable.d.ts} +1 -1
- package/dist/rules/js/{_enable.d.ts.map → enable.d.ts.map} +1 -1
- package/dist/rules/js/{_enable.js → enable.js} +281 -45
- package/dist/rules/js/enable.js.map +1 -0
- package/dist/rules/js/{stylistic.d.ts → enable_stylistic.d.ts} +25 -25
- package/dist/rules/js/{stylistic.d.ts.map → enable_stylistic.d.ts.map} +1 -1
- 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 → js.d.ts} +25 -25
- package/dist/rules/{_js.d.ts.map → js.d.ts.map} +1 -1
- package/dist/rules/js.js +4 -0
- package/dist/rules/js.js.map +1 -0
- package/dist/rules/json/{_enable.d.ts → enable.d.ts} +1 -1
- package/dist/rules/json/enable.d.ts.map +1 -0
- package/dist/rules/json/{_enable.js → enable.js} +3 -3
- 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 → json.d.ts} +1 -1
- package/dist/rules/json.d.ts.map +1 -0
- package/dist/rules/{_json.js → json.js} +2 -2
- 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 → jsonc.d.ts} +1 -1
- package/dist/rules/jsonc.d.ts.map +1 -0
- package/dist/rules/{_jsonc.js → jsonc.js} +2 -2
- package/dist/rules/jsonc.js.map +1 -0
- package/dist/rules/md/{_enable.d.ts → enable.d.ts} +1 -1
- 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 → md.d.ts} +1 -1
- 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 → enable.d.ts} +1 -1
- 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/{html/_recommended.d.ts → mocha/enable_recommended.d.ts} +1 -1
- 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 → mocha.d.ts} +1 -1
- 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 → enable.d.ts} +1 -1
- 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 → svelte.d.ts} +27 -27
- package/dist/rules/{_svelte.d.ts.map → svelte.d.ts.map} +1 -1
- package/dist/rules/{_svelte.js → svelte.js} +4 -4
- package/dist/rules/svelte.js.map +1 -0
- package/dist/rules/ts/{disable_compiler.d.ts → disable.d.ts} +2 -2
- package/dist/rules/ts/disable.d.ts.map +1 -0
- package/dist/rules/ts/{disable_compiler.js → disable.js} +3 -4
- 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 → enable.d.ts} +1 -1
- package/dist/rules/ts/enable.d.ts.map +1 -0
- package/dist/rules/ts/{_enable.js → enable.js} +173 -29
- 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 → ts.d.ts} +26 -26
- package/dist/rules/{_ts.d.ts.map → ts.d.ts.map} +1 -1
- package/dist/rules/{_ts.js → ts.js} +4 -4
- package/dist/rules/ts.js.map +1 -0
- package/dist/rules/yml/{_enable.d.ts → enable.d.ts} +1 -1
- 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 → yml.d.ts} +1 -1
- package/dist/rules/yml.d.ts.map +1 -0
- package/dist/rules/{_yml.js → yml.js} +2 -2
- 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/package.json +2 -2
- 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} +3 -5
- package/src/rules/json/enable_x.ts +48 -9
- package/src/rules/{_json.ts → json.ts} +1 -1
- package/src/rules/jsonc/override.ts +13 -6
- package/src/rules/{_jsonc.ts → jsonc.ts} +1 -1
- 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 +10 -6
- package/src/rules/svelte/disable_ts.ts +8 -4
- package/src/rules/svelte/{_enable.ts → enable.ts} +120 -21
- package/src/rules/svelte/enable_x.ts +15 -4
- package/src/rules/{_svelte.ts → svelte.ts} +3 -3
- package/src/rules/ts/{disable_compiler.ts → disable.ts} +3 -4
- package/src/rules/ts/disable_x.ts +2 -6
- package/src/rules/ts/{_enable.ts → enable.ts} +176 -33
- package/src/rules/ts/enable_x.ts +37 -12
- package/src/rules/{_ts.ts → ts.ts} +3 -3
- package/src/rules/yml/{_enable.ts → enable.ts} +38 -7
- package/src/rules/yml/enable_x.ts +56 -9
- package/src/rules/{_yml.ts → yml.ts} +1 -1
- package/src/rules.ts +9 -9
- package/dist/rules/_html.d.ts.map +0 -1
- package/dist/rules/_html.js +0 -4
- package/dist/rules/_html.js.map +0 -1
- package/dist/rules/_js.js +0 -4
- package/dist/rules/_js.js.map +0 -1
- package/dist/rules/_json.d.ts.map +0 -1
- package/dist/rules/_json.js.map +0 -1
- package/dist/rules/_jsonc.d.ts.map +0 -1
- package/dist/rules/_jsonc.js.map +0 -1
- package/dist/rules/_md.d.ts.map +0 -1
- package/dist/rules/_md.js +0 -3
- package/dist/rules/_md.js.map +0 -1
- package/dist/rules/_mocha.d.ts.map +0 -1
- package/dist/rules/_mocha.js +0 -4
- package/dist/rules/_mocha.js.map +0 -1
- package/dist/rules/_svelte.js.map +0 -1
- package/dist/rules/_ts.js.map +0 -1
- package/dist/rules/_yml.d.ts.map +0 -1
- package/dist/rules/_yml.js.map +0 -1
- package/dist/rules/html/_enable.d.ts.map +0 -1
- package/dist/rules/html/_enable.js +0 -10
- package/dist/rules/html/_enable.js.map +0 -1
- package/dist/rules/html/_recommended.d.ts.map +0 -1
- package/dist/rules/html/_recommended.js +0 -5
- package/dist/rules/html/_recommended.js.map +0 -1
- package/dist/rules/js/_enable.js.map +0 -1
- package/dist/rules/js/stylistic.js +0 -270
- package/dist/rules/js/stylistic.js.map +0 -1
- package/dist/rules/json/_enable.d.ts.map +0 -1
- package/dist/rules/json/_enable.js.map +0 -1
- package/dist/rules/md/_enable.d.ts.map +0 -1
- package/dist/rules/md/_enable.js +0 -9
- package/dist/rules/md/_enable.js.map +0 -1
- package/dist/rules/mocha/_enable.d.ts.map +0 -1
- package/dist/rules/mocha/_enable.js +0 -4
- package/dist/rules/mocha/_enable.js.map +0 -1
- package/dist/rules/mocha/_recommended.d.ts.map +0 -1
- package/dist/rules/mocha/_recommended.js +0 -5
- package/dist/rules/mocha/_recommended.js.map +0 -1
- package/dist/rules/svelte/_enable.d.ts.map +0 -1
- package/dist/rules/svelte/_enable.js +0 -90
- package/dist/rules/svelte/_enable.js.map +0 -1
- package/dist/rules/svelte/disable_x.d.ts +0 -5
- package/dist/rules/svelte/disable_x.d.ts.map +0 -1
- package/dist/rules/svelte/disable_x.js +0 -4
- package/dist/rules/svelte/disable_x.js.map +0 -1
- package/dist/rules/ts/_enable.d.ts.map +0 -1
- package/dist/rules/ts/_enable.js.map +0 -1
- package/dist/rules/ts/disable_compiler.d.ts.map +0 -1
- package/dist/rules/ts/disable_compiler.js.map +0 -1
- package/dist/rules/yml/_enable.d.ts.map +0 -1
- package/dist/rules/yml/_enable.js +0 -28
- package/dist/rules/yml/_enable.js.map +0 -1
- 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
@@ -1,15 +1,63 @@
|
|
1
|
-
import {
|
2
|
-
const {
|
1
|
+
import { enable_x, level, state } from "../_strings.js";
|
2
|
+
const { ERROR } = level, { Never, Always, Strict } = state;
|
3
3
|
export default [
|
4
4
|
enable_x,
|
5
5
|
{
|
6
|
-
"yml/flow-mapping-curly-newline": [
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
6
|
+
"yml/flow-mapping-curly-newline": [
|
7
|
+
ERROR,
|
8
|
+
{
|
9
|
+
consistent: false,
|
10
|
+
multiline: true,
|
11
|
+
minProperties: 2,
|
12
|
+
},
|
13
|
+
],
|
14
|
+
"yml/flow-mapping-curly-spacing": [
|
15
|
+
ERROR,
|
16
|
+
Always,
|
17
|
+
{
|
18
|
+
arraysInObjects: true,
|
19
|
+
objectsInObjects: true,
|
20
|
+
},
|
21
|
+
],
|
22
|
+
"yml/flow-sequence-bracket-newline": [
|
23
|
+
ERROR,
|
24
|
+
{
|
25
|
+
multiline: true,
|
26
|
+
minItems: null,
|
27
|
+
},
|
28
|
+
],
|
29
|
+
"yml/flow-sequence-bracket-spacing": [
|
30
|
+
ERROR,
|
31
|
+
Never,
|
32
|
+
{
|
33
|
+
singleValue: false,
|
34
|
+
objectsInArrays: false,
|
35
|
+
arraysInArrays: false,
|
36
|
+
},
|
37
|
+
],
|
38
|
+
"yml/key-spacing": [
|
39
|
+
ERROR,
|
40
|
+
{
|
41
|
+
beforeColon: false,
|
42
|
+
afterColon: true,
|
43
|
+
mode: Strict,
|
44
|
+
},
|
45
|
+
],
|
46
|
+
"yml/no-irregular-whitespace": [
|
47
|
+
ERROR,
|
48
|
+
{
|
49
|
+
skipQuotedScalars: true,
|
50
|
+
skipComments: false,
|
51
|
+
},
|
52
|
+
],
|
53
|
+
"yml/no-multiple-empty-lines": [
|
54
|
+
ERROR,
|
55
|
+
{
|
56
|
+
max: 1,
|
57
|
+
maxEOF: 1,
|
58
|
+
maxBOF: 0,
|
59
|
+
},
|
60
|
+
],
|
13
61
|
"yml/spaced-comment": [ERROR, Always],
|
14
62
|
},
|
15
63
|
];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enable_x.js","sourceRoot":"","sources":["../../../src/rules/yml/enable_x.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"enable_x.js","sourceRoot":"","sources":["../../../src/rules/yml/enable_x.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAExD,MACA,EAAE,KAAK,EAAE,GAAG,KAAK,EACjB,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;AAElC,eAAe;IACb,QAAQ;IACR;QAEE,gCAAgC,EAAE;YAChC,KAAK;YACL;gBACE,UAAU,EAAE,KAAK;gBACjB,SAAS,EAAE,IAAI;gBACf,aAAa,EAAE,CAAC;aACjB;SACF;QACD,gCAAgC,EAAE;YAChC,KAAK;YACL,MAAM;YACN;gBACE,eAAe,EAAE,IAAI;gBACrB,gBAAgB,EAAE,IAAI;aACvB;SACF;QACD,mCAAmC,EAAE;YACnC,KAAK;YACL;gBACE,SAAS,EAAE,IAAI;gBACf,QAAQ,EAAE,IAAI;aACf;SACF;QACD,mCAAmC,EAAE;YACnC,KAAK;YACL,KAAK;YACL;gBACE,WAAW,EAAE,KAAK;gBAClB,eAAe,EAAE,KAAK;gBACtB,cAAc,EAAE,KAAK;aACtB;SACF;QACD,iBAAiB,EAAE;YACjB,KAAK;YACL;gBACE,WAAW,EAAE,KAAK;gBAClB,UAAU,EAAE,IAAI;gBAChB,IAAI,EAAE,MAAM;aACb;SACF;QACD,6BAA6B,EAAE;YAC7B,KAAK;YACL;gBACE,iBAAiB,EAAE,IAAI;gBACvB,YAAY,EAAE,KAAK;aACpB;SACF;QACD,6BAA6B,EAAE;YAC7B,KAAK;YACL;gBACE,GAAG,EAAE,CAAC;gBACN,MAAM,EAAE,CAAC;gBACT,MAAM,EAAE,CAAC;aACV;SACF;QACD,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;KACtC;CACO,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../src/rules/yml.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAA0C"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"yml.js","sourceRoot":"","sources":["../../src/rules/yml.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,eAAe,CAAC,OAAO,EAAE,MAAM,CAAU,CAAC"}
|
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/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"_schemaVersion": "20.17.8",
|
3
3
|
"name": "linted",
|
4
|
-
"version": "16.12.2-rc.
|
4
|
+
"version": "16.12.2-rc.1",
|
5
5
|
"description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
|
6
6
|
"keywords": [
|
7
7
|
"eslint",
|
@@ -71,7 +71,7 @@
|
|
71
71
|
"devDependencies": {
|
72
72
|
"@eslint/config-inspector": "^0.5.4",
|
73
73
|
"eslint": "~9.12.0",
|
74
|
-
"linted": "16.12.
|
74
|
+
"linted": "16.12.2-rc.0",
|
75
75
|
"npm-run-all": "^4.1.5",
|
76
76
|
"typescript": "^5.6.3"
|
77
77
|
},
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { enable, level } from "../_strings.js";
|
2
|
+
|
3
|
+
const { ERROR, OFF } = level;
|
4
|
+
|
5
|
+
export default [
|
6
|
+
enable,
|
7
|
+
{
|
8
|
+
"@html-eslint/require-title": OFF,
|
9
|
+
"@html-eslint/element-newline": [
|
10
|
+
ERROR,
|
11
|
+
{
|
12
|
+
skip: ["head"],
|
13
|
+
},
|
14
|
+
],
|
15
|
+
},
|
16
|
+
] as const;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { recommended } from "../_strings.js";
|
2
|
+
import html from "@html-eslint/eslint-plugin";
|
3
|
+
|
4
|
+
// REMOVE shared config once manually configured
|
5
|
+
export default [
|
6
|
+
recommended,
|
7
|
+
(html.configs["flat/recommended"] as Record<"rules", Record<string, "off">>)
|
8
|
+
.rules,
|
9
|
+
] as const;
|