linted 21.0.0-rc.7 → 21.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/imports/index.d.ts +363 -1
- package/dist/imports/index.d.ts.map +1 -1
- package/dist/imports/parsers.d.ts +2 -0
- package/dist/imports/parsers.d.ts.map +1 -1
- package/dist/imports/parsers.js +2 -0
- package/dist/imports/parsers.js.map +1 -1
- package/dist/imports/plugins.d.ts +362 -2
- package/dist/imports/plugins.d.ts.map +1 -1
- package/dist/imports/plugins.js +2 -2
- package/dist/imports/plugins.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/rules/index.d.ts +122 -1509
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/js/enable.d.ts.map +1 -1
- package/dist/rules/js/enable.js +37 -11
- package/dist/rules/js/enable.js.map +1 -1
- package/dist/rules/js/index.d.ts.map +1 -1
- package/dist/rules/js/index.js +4 -1
- package/dist/rules/js/index.js.map +1 -1
- package/dist/rules/js/stylistic.d.ts.map +1 -1
- package/dist/rules/js/stylistic.js +73 -20
- package/dist/rules/js/stylistic.js.map +1 -1
- package/dist/rules/json/enable.d.ts +23 -2
- package/dist/rules/json/enable.d.ts.map +1 -1
- package/dist/rules/json/enable.js +24 -4
- package/dist/rules/json/enable.js.map +1 -1
- package/dist/rules/json/enable_x.d.ts +50 -0
- package/dist/rules/json/enable_x.d.ts.map +1 -0
- package/dist/rules/json/enable_x.js +80 -0
- package/dist/rules/json/enable_x.js.map +1 -0
- package/dist/rules/json/index.d.ts +52 -747
- package/dist/rules/json/index.d.ts.map +1 -1
- package/dist/rules/json/index.js +2 -2
- package/dist/rules/json/index.js.map +1 -1
- package/dist/rules/jsonc/index.d.ts +77 -3
- package/dist/rules/jsonc/index.d.ts.map +1 -1
- package/dist/rules/jsonc/index.js +5 -1
- package/dist/rules/jsonc/index.js.map +1 -1
- package/dist/rules/jsonc/override.d.ts +6 -0
- package/dist/rules/jsonc/override.d.ts.map +1 -0
- package/dist/rules/jsonc/override.js +12 -0
- package/dist/rules/jsonc/override.js.map +1 -0
- package/dist/rules/mocha/disable.d.ts.map +1 -1
- package/dist/rules/mocha/disable.js +1 -1
- package/dist/rules/mocha/disable.js.map +1 -1
- package/dist/rules/mocha/index.d.ts.map +1 -1
- package/dist/rules/mocha/index.js +4 -2
- package/dist/rules/mocha/index.js.map +1 -1
- package/dist/rules/svelte/disable.d.ts.map +1 -1
- package/dist/rules/svelte/disable.js +1 -1
- package/dist/rules/svelte/disable.js.map +1 -1
- package/dist/rules/svelte/enable.d.ts.map +1 -1
- package/dist/rules/svelte/enable.js +5 -3
- package/dist/rules/svelte/enable.js.map +1 -1
- package/dist/rules/svelte/enable_x.d.ts.map +1 -1
- package/dist/rules/svelte/enable_x.js +1 -2
- package/dist/rules/svelte/enable_x.js.map +1 -1
- package/dist/rules/ts/disable.d.ts.map +1 -1
- package/dist/rules/ts/disable.js +1 -1
- package/dist/rules/ts/disable.js.map +1 -1
- package/dist/rules/ts/disable_x.d.ts.map +1 -1
- package/dist/rules/ts/disable_x.js +1 -1
- package/dist/rules/ts/disable_x.js.map +1 -1
- package/dist/rules/ts/enable.d.ts.map +1 -1
- package/dist/rules/ts/enable.js +21 -7
- package/dist/rules/ts/enable.js.map +1 -1
- package/dist/rules/ts/enable_x.d.ts.map +1 -1
- package/dist/rules/ts/enable_x.js +1 -2
- package/dist/rules/ts/enable_x.js.map +1 -1
- package/dist/rules/yml/enable.d.ts.map +1 -1
- package/dist/rules/yml/enable.js +13 -5
- package/dist/rules/yml/enable.js.map +1 -1
- package/dist/rules/yml/enable_x.d.ts.map +1 -1
- package/dist/rules/yml/enable_x.js +5 -3
- package/dist/rules/yml/enable_x.js.map +1 -1
- package/dist/rules/yml/index.d.ts.map +1 -1
- package/dist/rules/yml/index.js +4 -1
- package/dist/rules/yml/index.js.map +1 -1
- package/package.json +4 -3
- package/src/imports/parsers.ts +2 -0
- package/src/imports/plugins.ts +2 -2
- package/src/index.ts +8 -2
- package/src/rules/html/enable.ts +1 -1
- package/src/rules/js/enable.ts +41 -15
- package/src/rules/js/index.ts +4 -1
- package/src/rules/js/stylistic.ts +77 -24
- package/src/rules/json/enable.ts +29 -6
- package/src/rules/json/enable_x.ts +91 -0
- package/src/rules/json/index.ts +2 -2
- package/src/rules/jsonc/index.ts +5 -1
- package/src/rules/jsonc/override.ts +18 -0
- package/src/rules/mocha/disable.ts +4 -1
- package/src/rules/mocha/index.ts +4 -2
- package/src/rules/svelte/disable.ts +4 -1
- package/src/rules/svelte/enable.ts +9 -7
- package/src/rules/svelte/enable_x.ts +7 -5
- package/src/rules/ts/disable.ts +4 -1
- package/src/rules/ts/disable_x.ts +4 -1
- package/src/rules/ts/enable.ts +27 -10
- package/src/rules/ts/enable_x.ts +7 -5
- package/src/rules/yml/enable.ts +20 -8
- package/src/rules/yml/enable_x.ts +11 -6
- package/src/rules/yml/index.ts +4 -1
- package/dist/rules/mocha/base.d.ts +0 -37
- package/dist/rules/mocha/base.d.ts.map +0 -1
- package/dist/rules/mocha/base.js +0 -7
- package/dist/rules/mocha/base.js.map +0 -1
- package/dist/rules/mochaJs/index.d.ts +0 -800
- package/dist/rules/mochaJs/index.d.ts.map +0 -1
- package/dist/rules/mochaJs/index.js +0 -7
- package/dist/rules/mochaJs/index.js.map +0 -1
- package/src/rules/mocha/base.ts +0 -7
- package/src/rules/mochaJs/index.ts +0 -7
@@ -0,0 +1,80 @@
|
|
1
|
+
import { enable_x, ERROR, OFF, Always, Consistent, Double, Last, Never, Strict, } from "../../_strings/index.js";
|
2
|
+
export default [
|
3
|
+
enable_x,
|
4
|
+
{
|
5
|
+
"jsonc/array-bracket-newline": OFF,
|
6
|
+
"jsonc/array-bracket-spacing": [
|
7
|
+
ERROR,
|
8
|
+
Never,
|
9
|
+
{
|
10
|
+
singleValue: false,
|
11
|
+
objectsInArrays: false,
|
12
|
+
arraysInArrays: false,
|
13
|
+
},
|
14
|
+
],
|
15
|
+
"jsonc/array-element-newline": [
|
16
|
+
ERROR,
|
17
|
+
Consistent,
|
18
|
+
],
|
19
|
+
"jsonc/comma-dangle": [ERROR, Never],
|
20
|
+
"jsonc/comma-style": [ERROR, Last],
|
21
|
+
"jsonc/indent": [ERROR, 2],
|
22
|
+
"jsonc/key-spacing": [
|
23
|
+
ERROR,
|
24
|
+
{
|
25
|
+
beforeColon: false,
|
26
|
+
afterColon: true,
|
27
|
+
mode: Strict,
|
28
|
+
},
|
29
|
+
],
|
30
|
+
"jsonc/no-dupe-keys": ERROR,
|
31
|
+
"jsonc/no-floating-decimal": ERROR,
|
32
|
+
"jsonc/no-irregular-whitespace": [
|
33
|
+
ERROR,
|
34
|
+
{
|
35
|
+
skipStrings: true,
|
36
|
+
skipComments: true,
|
37
|
+
skipRegExps: true,
|
38
|
+
skipTemplates: true,
|
39
|
+
skipJSXText: true,
|
40
|
+
},
|
41
|
+
],
|
42
|
+
"jsonc/no-multi-str": ERROR,
|
43
|
+
"jsonc/no-octal-escape": ERROR,
|
44
|
+
"jsonc/no-octal": ERROR,
|
45
|
+
"jsonc/no-sparse-arrays": ERROR,
|
46
|
+
"jsonc/no-useless-escape": ERROR,
|
47
|
+
"jsonc/object-curly-newline": [
|
48
|
+
ERROR,
|
49
|
+
{
|
50
|
+
consistent: true,
|
51
|
+
multiline: true,
|
52
|
+
minProperties: 4,
|
53
|
+
},
|
54
|
+
],
|
55
|
+
"jsonc/object-curly-spacing": [
|
56
|
+
ERROR,
|
57
|
+
Always,
|
58
|
+
{
|
59
|
+
arraysInObjects: true,
|
60
|
+
objectsInObjects: true,
|
61
|
+
},
|
62
|
+
],
|
63
|
+
"jsonc/object-property-newline": [
|
64
|
+
ERROR,
|
65
|
+
{
|
66
|
+
allowAllPropertiesOnSameLine: true,
|
67
|
+
},
|
68
|
+
],
|
69
|
+
"jsonc/quote-props": [ERROR, Always],
|
70
|
+
"jsonc/quotes": [
|
71
|
+
ERROR,
|
72
|
+
Double,
|
73
|
+
{
|
74
|
+
avoidEscape: false,
|
75
|
+
},
|
76
|
+
],
|
77
|
+
"jsonc/space-unary-ops": ERROR,
|
78
|
+
},
|
79
|
+
];
|
80
|
+
//# sourceMappingURL=enable_x.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"enable_x.js","sourceRoot":"","sources":["../../../src/rules/json/enable_x.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,KAAK,EACL,GAAG,EACH,MAAM,EACN,UAAU,EACV,MAAM,EACN,IAAI,EACJ,KAAK,EACL,MAAM,GACP,MAAM,gBAAgB,CAAC;AAExB,eAAe;IACb,QAAQ;IACR;QAEE,6BAA6B,EAAE,GAAG;QAClC,6BAA6B,EAAE;YAC7B,KAAK;YACL,KAAK;YACL;gBACE,WAAW,EAAE,KAAK;gBAClB,eAAe,EAAE,KAAK;gBACtB,cAAc,EAAE,KAAK;aACtB;SACF;QACD,6BAA6B,EAAE;YAC7B,KAAK;YACL,UAAU;SACX;QACD,oBAAoB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QACpC,mBAAmB,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC;QAClC,cAAc,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC;QAC1B,mBAAmB,EAAE;YACnB,KAAK;YACL;gBACE,WAAW,EAAE,KAAK;gBAClB,UAAU,EAAE,IAAI;gBAChB,IAAI,EAAE,MAAM;aACb;SACF;QACD,oBAAoB,EAAE,KAAK;QAC3B,2BAA2B,EAAE,KAAK;QAClC,+BAA+B,EAAE;YAC/B,KAAK;YACL;gBACE,WAAW,EAAE,IAAI;gBACjB,YAAY,EAAE,IAAI;gBAClB,WAAW,EAAE,IAAI;gBACjB,aAAa,EAAE,IAAI;gBACnB,WAAW,EAAE,IAAI;aAClB;SACF;QACD,oBAAoB,EAAE,KAAK;QAC3B,uBAAuB,EAAE,KAAK;QAC9B,gBAAgB,EAAE,KAAK;QACvB,wBAAwB,EAAE,KAAK;QAC/B,yBAAyB,EAAE,KAAK;QAChC,4BAA4B,EAAE;YAC5B,KAAK;YACL;gBACE,UAAU,EAAE,IAAI;gBAChB,SAAS,EAAE,IAAI;gBACf,aAAa,EAAE,CAAC;aACjB;SACF;QACD,4BAA4B,EAAE;YAC5B,KAAK;YACL,MAAM;YACN;gBACE,eAAe,EAAE,IAAI;gBACrB,gBAAgB,EAAE,IAAI;aACvB;SACF;QACD,+BAA+B,EAAE;YAC/B,KAAK;YACL;gBACE,4BAA4B,EAAE,IAAI;aACnC;SACF;QACD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;QACpC,cAAc,EAAE;YACd,KAAK;YACL,MAAM;YACN;gBACE,WAAW,EAAE,KAAK;aACnB;SACF;QACD,uBAAuB,EAAE,KAAK;KAC/B;CACO,CAAC"}
|