linted 21.0.0-rc.16 → 21.0.0-rc.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/rules/index.d.ts +115 -176
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/json/enable.d.ts +23 -99
- package/dist/rules/json/enable.d.ts.map +1 -1
- package/dist/rules/json/enable.js +24 -142
- package/dist/rules/json/enable.js.map +1 -1
- package/dist/rules/json/enable_x.d.ts +46 -2
- package/dist/rules/json/enable_x.d.ts.map +1 -1
- package/dist/rules/json/enable_x.js +74 -3
- package/dist/rules/json/enable_x.js.map +1 -1
- package/dist/rules/json/index.d.ts +56 -88
- 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/package.json +4 -3
- package/src/imports/parsers.ts +2 -0
- package/src/imports/plugins.ts +2 -2
- package/src/rules/json/enable.ts +25 -148
- package/src/rules/json/enable_x.ts +80 -3
- package/src/rules/json/index.ts +2 -2
- package/src/rules/jsonc/index.ts +5 -1
- package/src/rules/jsonc/override.ts +18 -0
@@ -1,148 +1,30 @@
|
|
1
|
-
import { enable, ERROR,
|
1
|
+
import { enable, ERROR, OFF, } from "../../_strings/index.js";
|
2
2
|
export default [
|
3
3
|
enable,
|
4
4
|
{
|
5
|
-
"
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
"
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
"
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
"
|
26
|
-
|
27
|
-
|
28
|
-
{
|
29
|
-
allowSingleLine: true,
|
30
|
-
},
|
31
|
-
],
|
32
|
-
"comma-dangle": [
|
33
|
-
ERROR,
|
34
|
-
AlwaysMultiline,
|
35
|
-
],
|
36
|
-
"comma-spacing": [
|
37
|
-
ERROR,
|
38
|
-
{
|
39
|
-
before: false,
|
40
|
-
after: true,
|
41
|
-
},
|
42
|
-
],
|
43
|
-
"comma-style": [
|
44
|
-
ERROR,
|
45
|
-
Last,
|
46
|
-
{
|
47
|
-
exceptions: {
|
48
|
-
ArrayExpression: false,
|
49
|
-
ArrayPattern: false,
|
50
|
-
ArrowFunctionExpression: false,
|
51
|
-
CallExpression: false,
|
52
|
-
FunctionDeclaration: false,
|
53
|
-
FunctionExpression: false,
|
54
|
-
ImportDeclaration: false,
|
55
|
-
ObjectExpression: false,
|
56
|
-
ObjectPattern: false,
|
57
|
-
VariableDeclaration: false,
|
58
|
-
NewExpression: false,
|
59
|
-
},
|
60
|
-
},
|
61
|
-
],
|
62
|
-
"eol-last": [
|
63
|
-
ERROR,
|
64
|
-
Always,
|
65
|
-
],
|
66
|
-
"key-spacing": [
|
67
|
-
ERROR,
|
68
|
-
{
|
69
|
-
beforeColon: false,
|
70
|
-
afterColon: true,
|
71
|
-
mode: Strict,
|
72
|
-
},
|
73
|
-
],
|
74
|
-
indent: [
|
75
|
-
ERROR,
|
76
|
-
2,
|
77
|
-
{
|
78
|
-
ignoredNodes: [],
|
79
|
-
SwitchCase: 1,
|
80
|
-
VariableDeclarator: { "var": 0, let: 0, "const": 0 },
|
81
|
-
outerIIFEBody: 0,
|
82
|
-
MemberExpression: 1,
|
83
|
-
FunctionDeclaration: { parameters: 1, body: 1 },
|
84
|
-
FunctionExpression: { parameters: 1, body: 1 },
|
85
|
-
StaticBlock: { body: 1 },
|
86
|
-
CallExpression: { arguments: 1 },
|
87
|
-
ArrayExpression: 1,
|
88
|
-
ObjectExpression: 1,
|
89
|
-
ImportDeclaration: 1,
|
90
|
-
flatTernaryExpressions: false,
|
91
|
-
offsetTernaryExpressions: true,
|
92
|
-
ignoreComments: false,
|
93
|
-
},
|
94
|
-
],
|
95
|
-
"no-mixed-spaces-and-tabs": ERROR,
|
96
|
-
"no-multi-spaces": [
|
97
|
-
ERROR,
|
98
|
-
{
|
99
|
-
ignoreEOLComments: false,
|
100
|
-
exceptions: {
|
101
|
-
Property: false,
|
102
|
-
ImportAttributes: false,
|
103
|
-
},
|
104
|
-
},
|
105
|
-
],
|
106
|
-
"no-multiple-empty-lines": [
|
107
|
-
ERROR,
|
108
|
-
{
|
109
|
-
max: 1,
|
110
|
-
maxEOF: 1,
|
111
|
-
maxBOF: 0,
|
112
|
-
},
|
113
|
-
],
|
114
|
-
"no-tabs": [
|
115
|
-
ERROR,
|
116
|
-
{
|
117
|
-
allowIndentationTabs: false,
|
118
|
-
},
|
119
|
-
],
|
120
|
-
"no-trailing-spaces": [
|
121
|
-
ERROR,
|
122
|
-
{
|
123
|
-
skipBlankLines: false,
|
124
|
-
ignoreComments: false,
|
125
|
-
},
|
126
|
-
],
|
127
|
-
"no-whitespace-before-property": ERROR,
|
128
|
-
"object-curly-newline": [
|
129
|
-
ERROR,
|
130
|
-
Consistent,
|
131
|
-
],
|
132
|
-
"object-curly-spacing": [
|
133
|
-
ERROR,
|
134
|
-
Always,
|
135
|
-
{
|
136
|
-
arraysInObjects: true,
|
137
|
-
objectsInObjects: true,
|
138
|
-
},
|
139
|
-
],
|
140
|
-
"object-property-newline": [
|
141
|
-
ERROR,
|
142
|
-
{
|
143
|
-
allowAllPropertiesOnSameLine: true,
|
144
|
-
},
|
145
|
-
],
|
5
|
+
"jsonc/auto": OFF,
|
6
|
+
"jsonc/key-name-casing": OFF,
|
7
|
+
"jsonc/no-bigint-literals": ERROR,
|
8
|
+
"jsonc/no-binary-expression": ERROR,
|
9
|
+
"jsonc/no-binary-numeric-literals": ERROR,
|
10
|
+
"jsonc/no-comments": ERROR,
|
11
|
+
"jsonc/no-escape-sequence-in-identifier": ERROR,
|
12
|
+
"jsonc/no-hexadecimal-numeric-literals": ERROR,
|
13
|
+
"jsonc/no-infinity": ERROR,
|
14
|
+
"jsonc/no-nan": ERROR,
|
15
|
+
"jsonc/no-number-props": ERROR,
|
16
|
+
"jsonc/no-numeric-separators": ERROR,
|
17
|
+
"jsonc/no-octal-numeric-literals": ERROR,
|
18
|
+
"jsonc/no-parenthesized": ERROR,
|
19
|
+
"jsonc/no-plus-sign": ERROR,
|
20
|
+
"jsonc/no-regexp-literals": ERROR,
|
21
|
+
"jsonc/no-template-literals": ERROR,
|
22
|
+
"jsonc/no-undefined-value": ERROR,
|
23
|
+
"jsonc/no-unicode-codepoint-escapes": ERROR,
|
24
|
+
"jsonc/sort-array-values": OFF,
|
25
|
+
"jsonc/sort-keys": OFF,
|
26
|
+
"jsonc/valid-json-number": ERROR,
|
27
|
+
"jsonc/vue-custom-block/no-parsing-error": ERROR,
|
146
28
|
},
|
147
29
|
];
|
148
30
|
//# sourceMappingURL=enable.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/json/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,KAAK,EACL,
|
1
|
+
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/json/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,KAAK,EACL,GAAG,GACJ,MAAM,gBAAgB,CAAC;AAExB,eAAe;IACb,MAAM;IACN;QAEE,YAAY,EAAE,GAAG;QACjB,uBAAuB,EAAE,GAAG;QAC5B,0BAA0B,EAAE,KAAK;QACjC,4BAA4B,EAAE,KAAK;QACnC,kCAAkC,EAAE,KAAK;QACzC,mBAAmB,EAAE,KAAK;QAC1B,wCAAwC,EAAE,KAAK;QAC/C,uCAAuC,EAAE,KAAK;QAC9C,mBAAmB,EAAE,KAAK;QAC1B,cAAc,EAAE,KAAK;QACrB,uBAAuB,EAAE,KAAK;QAC9B,6BAA6B,EAAE,KAAK;QACpC,iCAAiC,EAAE,KAAK;QACxC,wBAAwB,EAAE,KAAK;QAC/B,oBAAoB,EAAE,KAAK;QAC3B,0BAA0B,EAAE,KAAK;QACjC,4BAA4B,EAAE,KAAK;QACnC,0BAA0B,EAAE,KAAK;QACjC,oCAAoC,EAAE,KAAK;QAC3C,yBAAyB,EAAE,GAAG;QAC9B,iBAAiB,EAAE,GAAG;QACtB,yBAAyB,EAAE,KAAK;QAChC,yCAAyC,EAAE,KAAK;KACjD;CACO,CAAC"}
|
@@ -1,6 +1,50 @@
|
|
1
1
|
declare const _default: readonly ["enable-extend", {
|
2
|
-
readonly "
|
3
|
-
readonly "
|
2
|
+
readonly "jsonc/array-bracket-newline": "off";
|
3
|
+
readonly "jsonc/array-bracket-spacing": readonly ["error", "never", {
|
4
|
+
readonly singleValue: false;
|
5
|
+
readonly objectsInArrays: false;
|
6
|
+
readonly arraysInArrays: false;
|
7
|
+
}];
|
8
|
+
readonly "jsonc/array-element-newline": readonly ["error", "consistent"];
|
9
|
+
readonly "jsonc/comma-dangle": readonly ["error", "never"];
|
10
|
+
readonly "jsonc/comma-style": readonly ["error", "last"];
|
11
|
+
readonly "jsonc/indent": readonly ["error", 2];
|
12
|
+
readonly "jsonc/key-spacing": readonly ["error", {
|
13
|
+
readonly beforeColon: false;
|
14
|
+
readonly afterColon: true;
|
15
|
+
readonly mode: "strict";
|
16
|
+
}];
|
17
|
+
readonly "jsonc/no-dupe-keys": "error";
|
18
|
+
readonly "jsonc/no-floating-decimal": "error";
|
19
|
+
readonly "jsonc/no-irregular-whitespace": readonly ["error", {
|
20
|
+
readonly skipStrings: true;
|
21
|
+
readonly skipComments: true;
|
22
|
+
readonly skipRegExps: true;
|
23
|
+
readonly skipTemplates: true;
|
24
|
+
readonly skipJSXText: true;
|
25
|
+
}];
|
26
|
+
readonly "jsonc/no-multi-str": "error";
|
27
|
+
readonly "jsonc/no-octal-escape": "error";
|
28
|
+
readonly "jsonc/no-octal": "error";
|
29
|
+
readonly "jsonc/no-sparse-arrays": "error";
|
30
|
+
readonly "jsonc/no-useless-escape": "error";
|
31
|
+
readonly "jsonc/object-curly-newline": readonly ["error", {
|
32
|
+
readonly consistent: true;
|
33
|
+
readonly multiline: true;
|
34
|
+
readonly minProperties: 4;
|
35
|
+
}];
|
36
|
+
readonly "jsonc/object-curly-spacing": readonly ["error", "always", {
|
37
|
+
readonly arraysInObjects: true;
|
38
|
+
readonly objectsInObjects: true;
|
39
|
+
}];
|
40
|
+
readonly "jsonc/object-property-newline": readonly ["error", {
|
41
|
+
readonly allowAllPropertiesOnSameLine: true;
|
42
|
+
}];
|
43
|
+
readonly "jsonc/quote-props": readonly ["error", "always"];
|
44
|
+
readonly "jsonc/quotes": readonly ["error", "double", {
|
45
|
+
readonly avoidEscape: false;
|
46
|
+
}];
|
47
|
+
readonly "jsonc/space-unary-ops": "error";
|
4
48
|
}];
|
5
49
|
export default _default;
|
6
50
|
//# sourceMappingURL=enable_x.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enable_x.d.ts","sourceRoot":"","sources":["../../../src/rules/json/enable_x.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"enable_x.d.ts","sourceRoot":"","sources":["../../../src/rules/json/enable_x.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,wBA8EW"}
|
@@ -1,9 +1,80 @@
|
|
1
|
-
import { enable_x, ERROR, OFF, } from "../../_strings/index.js";
|
1
|
+
import { enable_x, ERROR, OFF, Always, Consistent, Double, Last, Never, Strict, } from "../../_strings/index.js";
|
2
2
|
export default [
|
3
3
|
enable_x,
|
4
4
|
{
|
5
|
-
"
|
6
|
-
"
|
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,
|
7
78
|
},
|
8
79
|
];
|
9
80
|
//# sourceMappingURL=enable_x.js.map
|
@@ -1 +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,
|
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"}
|
@@ -1,106 +1,74 @@
|
|
1
|
-
declare const _default: (readonly ["enable", {
|
2
|
-
readonly "array-bracket-newline":
|
3
|
-
|
4
|
-
readonly minItems: null;
|
5
|
-
}];
|
6
|
-
readonly "array-bracket-spacing": readonly ["error", "never", {
|
1
|
+
declare const _default: (readonly ["enable-extend", {
|
2
|
+
readonly "jsonc/array-bracket-newline": "off";
|
3
|
+
readonly "jsonc/array-bracket-spacing": readonly ["error", "never", {
|
7
4
|
readonly singleValue: false;
|
8
5
|
readonly objectsInArrays: false;
|
9
6
|
readonly arraysInArrays: false;
|
10
7
|
}];
|
11
|
-
readonly "array-element-newline": readonly ["error", "consistent"];
|
12
|
-
readonly "
|
13
|
-
|
14
|
-
|
15
|
-
readonly "
|
16
|
-
readonly "comma-spacing": readonly ["error", {
|
17
|
-
readonly before: false;
|
18
|
-
readonly after: true;
|
19
|
-
}];
|
20
|
-
readonly "comma-style": readonly ["error", "last", {
|
21
|
-
readonly exceptions: {
|
22
|
-
readonly ArrayExpression: false;
|
23
|
-
readonly ArrayPattern: false;
|
24
|
-
readonly ArrowFunctionExpression: false;
|
25
|
-
readonly CallExpression: false;
|
26
|
-
readonly FunctionDeclaration: false;
|
27
|
-
readonly FunctionExpression: false;
|
28
|
-
readonly ImportDeclaration: false;
|
29
|
-
readonly ObjectExpression: false;
|
30
|
-
readonly ObjectPattern: false;
|
31
|
-
readonly VariableDeclaration: false;
|
32
|
-
readonly NewExpression: false;
|
33
|
-
};
|
34
|
-
}];
|
35
|
-
readonly "eol-last": readonly ["error", "always"];
|
36
|
-
readonly "key-spacing": readonly ["error", {
|
8
|
+
readonly "jsonc/array-element-newline": readonly ["error", "consistent"];
|
9
|
+
readonly "jsonc/comma-dangle": readonly ["error", "never"];
|
10
|
+
readonly "jsonc/comma-style": readonly ["error", "last"];
|
11
|
+
readonly "jsonc/indent": readonly ["error", 2];
|
12
|
+
readonly "jsonc/key-spacing": readonly ["error", {
|
37
13
|
readonly beforeColon: false;
|
38
14
|
readonly afterColon: true;
|
39
15
|
readonly mode: "strict";
|
40
16
|
}];
|
41
|
-
readonly
|
42
|
-
|
43
|
-
|
44
|
-
readonly
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
readonly outerIIFEBody: 0;
|
50
|
-
readonly MemberExpression: 1;
|
51
|
-
readonly FunctionDeclaration: {
|
52
|
-
readonly parameters: 1;
|
53
|
-
readonly body: 1;
|
54
|
-
};
|
55
|
-
readonly FunctionExpression: {
|
56
|
-
readonly parameters: 1;
|
57
|
-
readonly body: 1;
|
58
|
-
};
|
59
|
-
readonly StaticBlock: {
|
60
|
-
readonly body: 1;
|
61
|
-
};
|
62
|
-
readonly CallExpression: {
|
63
|
-
readonly arguments: 1;
|
64
|
-
};
|
65
|
-
readonly ArrayExpression: 1;
|
66
|
-
readonly ObjectExpression: 1;
|
67
|
-
readonly ImportDeclaration: 1;
|
68
|
-
readonly flatTernaryExpressions: false;
|
69
|
-
readonly offsetTernaryExpressions: true;
|
70
|
-
readonly ignoreComments: false;
|
17
|
+
readonly "jsonc/no-dupe-keys": "error";
|
18
|
+
readonly "jsonc/no-floating-decimal": "error";
|
19
|
+
readonly "jsonc/no-irregular-whitespace": readonly ["error", {
|
20
|
+
readonly skipStrings: true;
|
21
|
+
readonly skipComments: true;
|
22
|
+
readonly skipRegExps: true;
|
23
|
+
readonly skipTemplates: true;
|
24
|
+
readonly skipJSXText: true;
|
71
25
|
}];
|
72
|
-
readonly "no-
|
73
|
-
readonly "no-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
readonly max: 1;
|
82
|
-
readonly maxEOF: 1;
|
83
|
-
readonly maxBOF: 0;
|
84
|
-
}];
|
85
|
-
readonly "no-tabs": readonly ["error", {
|
86
|
-
readonly allowIndentationTabs: false;
|
87
|
-
}];
|
88
|
-
readonly "no-trailing-spaces": readonly ["error", {
|
89
|
-
readonly skipBlankLines: false;
|
90
|
-
readonly ignoreComments: false;
|
26
|
+
readonly "jsonc/no-multi-str": "error";
|
27
|
+
readonly "jsonc/no-octal-escape": "error";
|
28
|
+
readonly "jsonc/no-octal": "error";
|
29
|
+
readonly "jsonc/no-sparse-arrays": "error";
|
30
|
+
readonly "jsonc/no-useless-escape": "error";
|
31
|
+
readonly "jsonc/object-curly-newline": readonly ["error", {
|
32
|
+
readonly consistent: true;
|
33
|
+
readonly multiline: true;
|
34
|
+
readonly minProperties: 4;
|
91
35
|
}];
|
92
|
-
readonly "
|
93
|
-
readonly "object-curly-newline": readonly ["error", "consistent"];
|
94
|
-
readonly "object-curly-spacing": readonly ["error", "always", {
|
36
|
+
readonly "jsonc/object-curly-spacing": readonly ["error", "always", {
|
95
37
|
readonly arraysInObjects: true;
|
96
38
|
readonly objectsInObjects: true;
|
97
39
|
}];
|
98
|
-
readonly "object-property-newline": readonly ["error", {
|
40
|
+
readonly "jsonc/object-property-newline": readonly ["error", {
|
99
41
|
readonly allowAllPropertiesOnSameLine: true;
|
100
42
|
}];
|
101
|
-
|
102
|
-
readonly "
|
103
|
-
|
43
|
+
readonly "jsonc/quote-props": readonly ["error", "always"];
|
44
|
+
readonly "jsonc/quotes": readonly ["error", "double", {
|
45
|
+
readonly avoidEscape: false;
|
46
|
+
}];
|
47
|
+
readonly "jsonc/space-unary-ops": "error";
|
48
|
+
}] | readonly ["enable", {
|
49
|
+
readonly "jsonc/auto": "off";
|
50
|
+
readonly "jsonc/key-name-casing": "off";
|
51
|
+
readonly "jsonc/no-bigint-literals": "error";
|
52
|
+
readonly "jsonc/no-binary-expression": "error";
|
53
|
+
readonly "jsonc/no-binary-numeric-literals": "error";
|
54
|
+
readonly "jsonc/no-comments": "error";
|
55
|
+
readonly "jsonc/no-escape-sequence-in-identifier": "error";
|
56
|
+
readonly "jsonc/no-hexadecimal-numeric-literals": "error";
|
57
|
+
readonly "jsonc/no-infinity": "error";
|
58
|
+
readonly "jsonc/no-nan": "error";
|
59
|
+
readonly "jsonc/no-number-props": "error";
|
60
|
+
readonly "jsonc/no-numeric-separators": "error";
|
61
|
+
readonly "jsonc/no-octal-numeric-literals": "error";
|
62
|
+
readonly "jsonc/no-parenthesized": "error";
|
63
|
+
readonly "jsonc/no-plus-sign": "error";
|
64
|
+
readonly "jsonc/no-regexp-literals": "error";
|
65
|
+
readonly "jsonc/no-template-literals": "error";
|
66
|
+
readonly "jsonc/no-undefined-value": "error";
|
67
|
+
readonly "jsonc/no-unicode-codepoint-escapes": "error";
|
68
|
+
readonly "jsonc/sort-array-values": "off";
|
69
|
+
readonly "jsonc/sort-keys": "off";
|
70
|
+
readonly "jsonc/valid-json-number": "error";
|
71
|
+
readonly "jsonc/vue-custom-block/no-parsing-error": "error";
|
104
72
|
}])[];
|
105
73
|
export default _default;
|
106
74
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
|
package/dist/rules/json/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,eAAe;IACb,QAAQ;IACR,MAAM;CACP,CAAC"}
|
@@ -1,3 +1,77 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
declare const _default: (readonly ["enable-extend", {
|
2
|
+
readonly "jsonc/array-bracket-newline": "off";
|
3
|
+
readonly "jsonc/array-bracket-spacing": readonly ["error", "never", {
|
4
|
+
readonly singleValue: false;
|
5
|
+
readonly objectsInArrays: false;
|
6
|
+
readonly arraysInArrays: false;
|
7
|
+
}];
|
8
|
+
readonly "jsonc/array-element-newline": readonly ["error", "consistent"];
|
9
|
+
readonly "jsonc/comma-dangle": readonly ["error", "never"];
|
10
|
+
readonly "jsonc/comma-style": readonly ["error", "last"];
|
11
|
+
readonly "jsonc/indent": readonly ["error", 2];
|
12
|
+
readonly "jsonc/key-spacing": readonly ["error", {
|
13
|
+
readonly beforeColon: false;
|
14
|
+
readonly afterColon: true;
|
15
|
+
readonly mode: "strict";
|
16
|
+
}];
|
17
|
+
readonly "jsonc/no-dupe-keys": "error";
|
18
|
+
readonly "jsonc/no-floating-decimal": "error";
|
19
|
+
readonly "jsonc/no-irregular-whitespace": readonly ["error", {
|
20
|
+
readonly skipStrings: true;
|
21
|
+
readonly skipComments: true;
|
22
|
+
readonly skipRegExps: true;
|
23
|
+
readonly skipTemplates: true;
|
24
|
+
readonly skipJSXText: true;
|
25
|
+
}];
|
26
|
+
readonly "jsonc/no-multi-str": "error";
|
27
|
+
readonly "jsonc/no-octal-escape": "error";
|
28
|
+
readonly "jsonc/no-octal": "error";
|
29
|
+
readonly "jsonc/no-sparse-arrays": "error";
|
30
|
+
readonly "jsonc/no-useless-escape": "error";
|
31
|
+
readonly "jsonc/object-curly-newline": readonly ["error", {
|
32
|
+
readonly consistent: true;
|
33
|
+
readonly multiline: true;
|
34
|
+
readonly minProperties: 4;
|
35
|
+
}];
|
36
|
+
readonly "jsonc/object-curly-spacing": readonly ["error", "always", {
|
37
|
+
readonly arraysInObjects: true;
|
38
|
+
readonly objectsInObjects: true;
|
39
|
+
}];
|
40
|
+
readonly "jsonc/object-property-newline": readonly ["error", {
|
41
|
+
readonly allowAllPropertiesOnSameLine: true;
|
42
|
+
}];
|
43
|
+
readonly "jsonc/quote-props": readonly ["error", "always"];
|
44
|
+
readonly "jsonc/quotes": readonly ["error", "double", {
|
45
|
+
readonly avoidEscape: false;
|
46
|
+
}];
|
47
|
+
readonly "jsonc/space-unary-ops": "error";
|
48
|
+
}] | readonly ["enable", {
|
49
|
+
readonly "jsonc/auto": "off";
|
50
|
+
readonly "jsonc/key-name-casing": "off";
|
51
|
+
readonly "jsonc/no-bigint-literals": "error";
|
52
|
+
readonly "jsonc/no-binary-expression": "error";
|
53
|
+
readonly "jsonc/no-binary-numeric-literals": "error";
|
54
|
+
readonly "jsonc/no-comments": "error";
|
55
|
+
readonly "jsonc/no-escape-sequence-in-identifier": "error";
|
56
|
+
readonly "jsonc/no-hexadecimal-numeric-literals": "error";
|
57
|
+
readonly "jsonc/no-infinity": "error";
|
58
|
+
readonly "jsonc/no-nan": "error";
|
59
|
+
readonly "jsonc/no-number-props": "error";
|
60
|
+
readonly "jsonc/no-numeric-separators": "error";
|
61
|
+
readonly "jsonc/no-octal-numeric-literals": "error";
|
62
|
+
readonly "jsonc/no-parenthesized": "error";
|
63
|
+
readonly "jsonc/no-plus-sign": "error";
|
64
|
+
readonly "jsonc/no-regexp-literals": "error";
|
65
|
+
readonly "jsonc/no-template-literals": "error";
|
66
|
+
readonly "jsonc/no-undefined-value": "error";
|
67
|
+
readonly "jsonc/no-unicode-codepoint-escapes": "error";
|
68
|
+
readonly "jsonc/sort-array-values": "off";
|
69
|
+
readonly "jsonc/sort-keys": "off";
|
70
|
+
readonly "jsonc/valid-json-number": "error";
|
71
|
+
readonly "jsonc/vue-custom-block/no-parsing-error": "error";
|
72
|
+
}] | readonly ["override", {
|
73
|
+
readonly "jsonc/no-comments": "off";
|
74
|
+
readonly "jsonc/comma-dangle": readonly ["error", "always-multiline"];
|
75
|
+
}])[];
|
76
|
+
export default _default;
|
77
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/jsonc/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/jsonc/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/jsonc/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/jsonc/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,eAAe;IACb,GAAG,IAAI;IACP,QAAQ;CACT,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"override.d.ts","sourceRoot":"","sources":["../../../src/rules/jsonc/override.ts"],"names":[],"mappings":";;;;AAOA,wBAUW"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"override.js","sourceRoot":"","sources":["../../../src/rules/jsonc/override.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,KAAK,EACL,GAAG,EACH,eAAe,GAChB,MAAM,gBAAgB,CAAC;AAExB,eAAe;IACb,QAAQ;IACR;QAEE,mBAAmB,EAAE,GAAG;QACxB,oBAAoB,EAAE;YACpB,KAAK;YACL,eAAe;SAChB;KACF;CACO,CAAC"}
|