@eslinted/defaults 17.10.0 → 18.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +246 -265
- package/dist/index.d.ts.map +1 -1
- package/dist/rules/css/index.d.ts +9 -9
- package/dist/rules/css/index.js +9 -9
- package/dist/rules/css/index.js.map +1 -1
- package/dist/rules/html/index.d.ts +42 -42
- package/dist/rules/html/index.d.ts.map +1 -1
- package/dist/rules/html/index.js +42 -42
- package/dist/rules/html/index.js.map +1 -1
- package/dist/rules/index.d.ts +246 -265
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/js.d.ts +112 -119
- package/dist/rules/js.d.ts.map +1 -1
- package/dist/rules/js.eslint.d.ts +45 -52
- package/dist/rules/js.eslint.d.ts.map +1 -1
- package/dist/rules/js.eslint.js +45 -52
- package/dist/rules/js.eslint.js.map +1 -1
- package/dist/rules/js.stylistic.d.ts +67 -67
- package/dist/rules/js.stylistic.d.ts.map +1 -1
- package/dist/rules/js.stylistic.js +67 -67
- package/dist/rules/js.stylistic.js.map +1 -1
- package/dist/rules/json/index.d.ts +8 -11
- package/dist/rules/json/index.d.ts.map +1 -1
- package/dist/rules/json/plugin/extend.d.ts +8 -11
- package/dist/rules/json/plugin/extend.d.ts.map +1 -1
- package/dist/rules/json/plugin/extend.js +8 -11
- package/dist/rules/json/plugin/extend.js.map +1 -1
- package/dist/rules/jsoncc/index.d.ts +1 -1
- package/dist/rules/jsoncc/index.js +1 -1
- package/dist/rules/svelte/extend.d.ts +1 -1
- package/dist/rules/svelte/extend.js +1 -1
- package/dist/rules/svelte/extend.js.map +1 -1
- package/dist/rules/svelte/index.d.ts +24 -24
- package/dist/rules/svelte/svelte.d.ts +23 -23
- package/dist/rules/svelte/svelte.js +23 -23
- package/dist/rules/svelte/svelte.js.map +1 -1
- package/dist/rules/ts/extend.d.ts +4 -13
- package/dist/rules/ts/extend.d.ts.map +1 -1
- package/dist/rules/ts/extend.js +4 -13
- package/dist/rules/ts/extend.js.map +1 -1
- package/dist/rules/ts/index.d.ts +31 -41
- package/dist/rules/ts/index.d.ts.map +1 -1
- package/dist/rules/ts/ts.d.ts +27 -28
- package/dist/rules/ts/ts.d.ts.map +1 -1
- package/dist/rules/ts/ts.js +27 -28
- package/dist/rules/ts/ts.js.map +1 -1
- package/dist/rules/yml/extend.d.ts +7 -7
- package/dist/rules/yml/extend.js +7 -7
- package/dist/rules/yml/extend.js.map +1 -1
- package/dist/rules/yml/index.d.ts +19 -18
- package/dist/rules/yml/index.d.ts.map +1 -1
- package/dist/rules/yml/yml.d.ts +12 -11
- package/dist/rules/yml/yml.d.ts.map +1 -1
- package/dist/rules/yml/yml.js +12 -11
- package/dist/rules/yml/yml.js.map +1 -1
- package/package.json +1 -1
- package/src/rules/css/index.ts +11 -11
- package/src/rules/html/index.ts +50 -58
- package/src/rules/js.eslint.ts +143 -162
- package/src/rules/js.stylistic.ts +87 -88
- package/src/rules/json/json.ts +3 -3
- package/src/rules/json/plugin/extend.ts +11 -14
- package/src/rules/json/plugin/index.ts +3 -3
- package/src/rules/jsonc/index.ts +1 -1
- package/src/rules/jsoncc/index.ts +2 -2
- package/src/rules/svelte/disable.ts +3 -3
- package/src/rules/svelte/extend.ts +3 -3
- package/src/rules/svelte/svelte.ts +26 -26
- package/src/rules/ts/disable.ts +4 -4
- package/src/rules/ts/extend.ts +7 -15
- package/src/rules/ts/ts.ts +44 -44
- package/src/rules/yml/extend.ts +7 -7
- package/src/rules/yml/yml.ts +15 -15
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { State } from "./state.js";
|
|
2
2
|
declare const _default: {
|
|
3
3
|
rules: {
|
|
4
|
-
readonly "stylistic/array-bracket-newline": State.
|
|
5
|
-
readonly "stylistic/array-bracket-spacing": State.
|
|
4
|
+
readonly "stylistic/array-bracket-newline": State.WARN;
|
|
5
|
+
readonly "stylistic/array-bracket-spacing": State.WARN;
|
|
6
6
|
readonly "stylistic/array-element-newline": readonly [
|
|
7
|
-
State.
|
|
7
|
+
State.WARN,
|
|
8
8
|
{
|
|
9
9
|
readonly consistent: true;
|
|
10
10
|
readonly multiline: true;
|
|
@@ -12,44 +12,44 @@ declare const _default: {
|
|
|
12
12
|
}
|
|
13
13
|
];
|
|
14
14
|
readonly "stylistic/arrow-parens": readonly [
|
|
15
|
-
State.
|
|
15
|
+
State.WARN,
|
|
16
16
|
"as-needed"
|
|
17
17
|
];
|
|
18
|
-
readonly "stylistic/arrow-spacing": State.
|
|
19
|
-
readonly "stylistic/block-spacing": State.
|
|
18
|
+
readonly "stylistic/arrow-spacing": State.WARN;
|
|
19
|
+
readonly "stylistic/block-spacing": State.WARN;
|
|
20
20
|
readonly "stylistic/brace-style": readonly [
|
|
21
|
-
State.
|
|
21
|
+
State.WARN,
|
|
22
22
|
"stroustrup",
|
|
23
23
|
{
|
|
24
24
|
readonly allowSingleLine: true;
|
|
25
25
|
}
|
|
26
26
|
];
|
|
27
27
|
readonly "stylistic/comma-dangle": readonly [
|
|
28
|
-
State.
|
|
28
|
+
State.WARN,
|
|
29
29
|
"always-multiline"
|
|
30
30
|
];
|
|
31
|
-
readonly "stylistic/comma-spacing": State.
|
|
32
|
-
readonly "stylistic/comma-style": State.
|
|
33
|
-
readonly "stylistic/computed-property-spacing": State.
|
|
34
|
-
readonly "stylistic/curly-newline": State.
|
|
31
|
+
readonly "stylistic/comma-spacing": State.WARN;
|
|
32
|
+
readonly "stylistic/comma-style": State.WARN;
|
|
33
|
+
readonly "stylistic/computed-property-spacing": State.WARN;
|
|
34
|
+
readonly "stylistic/curly-newline": State.WARN;
|
|
35
35
|
readonly "stylistic/dot-location": readonly [
|
|
36
|
-
State.
|
|
36
|
+
State.WARN,
|
|
37
37
|
"property"
|
|
38
38
|
];
|
|
39
|
-
readonly "stylistic/eol-last": State.
|
|
39
|
+
readonly "stylistic/eol-last": State.WARN;
|
|
40
40
|
readonly "stylistic/function-call-argument-newline": readonly [
|
|
41
|
-
State.
|
|
41
|
+
State.WARN,
|
|
42
42
|
"consistent"
|
|
43
43
|
];
|
|
44
|
-
readonly "stylistic/function-call-spacing": State.
|
|
44
|
+
readonly "stylistic/function-call-spacing": State.WARN;
|
|
45
45
|
readonly "stylistic/function-paren-newline": readonly [
|
|
46
|
-
State.
|
|
46
|
+
State.WARN,
|
|
47
47
|
"multiline-arguments"
|
|
48
48
|
];
|
|
49
|
-
readonly "stylistic/generator-star-spacing": State.
|
|
50
|
-
readonly "stylistic/implicit-arrow-linebreak": State.
|
|
49
|
+
readonly "stylistic/generator-star-spacing": State.WARN;
|
|
50
|
+
readonly "stylistic/implicit-arrow-linebreak": State.WARN;
|
|
51
51
|
readonly "stylistic/indent": readonly [
|
|
52
|
-
State.
|
|
52
|
+
State.WARN,
|
|
53
53
|
2,
|
|
54
54
|
{
|
|
55
55
|
readonly assignmentOperator: 0;
|
|
@@ -63,14 +63,14 @@ declare const _default: {
|
|
|
63
63
|
}
|
|
64
64
|
];
|
|
65
65
|
readonly "stylistic/indent-binary-ops": readonly [
|
|
66
|
-
State.
|
|
66
|
+
State.WARN,
|
|
67
67
|
2
|
|
68
68
|
];
|
|
69
|
-
readonly "stylistic/key-spacing": State.
|
|
70
|
-
readonly "stylistic/keyword-spacing": State.
|
|
71
|
-
readonly "stylistic/linebreak-style": State.
|
|
69
|
+
readonly "stylistic/key-spacing": State.WARN;
|
|
70
|
+
readonly "stylistic/keyword-spacing": State.WARN;
|
|
71
|
+
readonly "stylistic/linebreak-style": State.WARN;
|
|
72
72
|
readonly "stylistic/lines-between-class-members": readonly [
|
|
73
|
-
State.
|
|
73
|
+
State.WARN,
|
|
74
74
|
{
|
|
75
75
|
readonly enforce: readonly [
|
|
76
76
|
{
|
|
@@ -92,7 +92,7 @@ declare const _default: {
|
|
|
92
92
|
}
|
|
93
93
|
];
|
|
94
94
|
readonly "stylistic/max-len": readonly [
|
|
95
|
-
State.
|
|
95
|
+
State.WARN,
|
|
96
96
|
{
|
|
97
97
|
readonly code: 300;
|
|
98
98
|
readonly ignoreComments: true;
|
|
@@ -103,19 +103,19 @@ declare const _default: {
|
|
|
103
103
|
readonly ignoreRegExpLiterals: true;
|
|
104
104
|
}
|
|
105
105
|
];
|
|
106
|
-
readonly "stylistic/max-statements-per-line": State.
|
|
107
|
-
readonly "stylistic/member-delimiter-style": State.
|
|
106
|
+
readonly "stylistic/max-statements-per-line": State.WARN;
|
|
107
|
+
readonly "stylistic/member-delimiter-style": State.WARN;
|
|
108
108
|
readonly "stylistic/multiline-ternary": readonly [
|
|
109
|
-
State.
|
|
109
|
+
State.WARN,
|
|
110
110
|
"always-multiline"
|
|
111
111
|
];
|
|
112
|
-
readonly "stylistic/newline-per-chained-call": State.
|
|
113
|
-
readonly "stylistic/no-extra-parens": State.
|
|
114
|
-
readonly "stylistic/no-extra-semi": State.
|
|
115
|
-
readonly "stylistic/no-floating-decimal": State.
|
|
116
|
-
readonly "stylistic/no-mixed-spaces-and-tabs": State.
|
|
112
|
+
readonly "stylistic/newline-per-chained-call": State.WARN;
|
|
113
|
+
readonly "stylistic/no-extra-parens": State.WARN;
|
|
114
|
+
readonly "stylistic/no-extra-semi": State.WARN;
|
|
115
|
+
readonly "stylistic/no-floating-decimal": State.WARN;
|
|
116
|
+
readonly "stylistic/no-mixed-spaces-and-tabs": State.WARN;
|
|
117
117
|
readonly "stylistic/no-multi-spaces": readonly [
|
|
118
|
-
State.
|
|
118
|
+
State.WARN,
|
|
119
119
|
{
|
|
120
120
|
readonly exceptions: {
|
|
121
121
|
readonly Property: false;
|
|
@@ -124,22 +124,22 @@ declare const _default: {
|
|
|
124
124
|
}
|
|
125
125
|
];
|
|
126
126
|
readonly "stylistic/no-multiple-empty-lines": readonly [
|
|
127
|
-
State.
|
|
127
|
+
State.WARN,
|
|
128
128
|
{
|
|
129
129
|
readonly max: 1;
|
|
130
130
|
readonly maxBOF: 0;
|
|
131
131
|
readonly maxEOF: 0;
|
|
132
132
|
}
|
|
133
133
|
];
|
|
134
|
-
readonly "stylistic/no-tabs": State.
|
|
135
|
-
readonly "stylistic/no-trailing-spaces": State.
|
|
136
|
-
readonly "stylistic/no-whitespace-before-property": State.
|
|
134
|
+
readonly "stylistic/no-tabs": State.WARN;
|
|
135
|
+
readonly "stylistic/no-trailing-spaces": State.WARN;
|
|
136
|
+
readonly "stylistic/no-whitespace-before-property": State.WARN;
|
|
137
137
|
readonly "stylistic/nonblock-statement-body-position": readonly [
|
|
138
|
-
State.
|
|
138
|
+
State.WARN,
|
|
139
139
|
"below"
|
|
140
140
|
];
|
|
141
141
|
readonly "stylistic/object-curly-newline": readonly [
|
|
142
|
-
State.
|
|
142
|
+
State.WARN,
|
|
143
143
|
{
|
|
144
144
|
readonly consistent: true;
|
|
145
145
|
readonly multiline: true;
|
|
@@ -147,59 +147,59 @@ declare const _default: {
|
|
|
147
147
|
}
|
|
148
148
|
];
|
|
149
149
|
readonly "stylistic/object-curly-spacing": readonly [
|
|
150
|
-
State.
|
|
150
|
+
State.WARN,
|
|
151
151
|
"always",
|
|
152
152
|
{
|
|
153
153
|
readonly emptyObjects: "never";
|
|
154
154
|
}
|
|
155
155
|
];
|
|
156
|
-
readonly "stylistic/object-property-newline": State.
|
|
156
|
+
readonly "stylistic/object-property-newline": State.WARN;
|
|
157
157
|
readonly "stylistic/one-var-declaration-per-line": readonly [
|
|
158
|
-
State.
|
|
158
|
+
State.WARN,
|
|
159
159
|
"always"
|
|
160
160
|
];
|
|
161
161
|
readonly "stylistic/operator-linebreak": readonly [
|
|
162
|
-
State.
|
|
162
|
+
State.WARN,
|
|
163
163
|
"before"
|
|
164
164
|
];
|
|
165
165
|
readonly "stylistic/padded-blocks": readonly [
|
|
166
|
-
State.
|
|
166
|
+
State.WARN,
|
|
167
167
|
"never",
|
|
168
168
|
{
|
|
169
169
|
readonly allowSingleLineBlocks: true;
|
|
170
170
|
}
|
|
171
171
|
];
|
|
172
172
|
readonly "stylistic/quote-props": readonly [
|
|
173
|
-
State.
|
|
173
|
+
State.WARN,
|
|
174
174
|
"as-needed",
|
|
175
175
|
{
|
|
176
176
|
readonly keywords: true;
|
|
177
177
|
}
|
|
178
178
|
];
|
|
179
179
|
readonly "stylistic/quotes": readonly [
|
|
180
|
-
State.
|
|
180
|
+
State.WARN,
|
|
181
181
|
"double",
|
|
182
182
|
{
|
|
183
183
|
readonly avoidEscape: true;
|
|
184
184
|
readonly allowTemplateLiterals: "always";
|
|
185
185
|
}
|
|
186
186
|
];
|
|
187
|
-
readonly "stylistic/rest-spread-spacing": State.
|
|
188
|
-
readonly "stylistic/semi": State.
|
|
189
|
-
readonly "stylistic/semi-spacing": State.
|
|
190
|
-
readonly "stylistic/semi-style": State.
|
|
191
|
-
readonly "stylistic/space-before-blocks": State.
|
|
187
|
+
readonly "stylistic/rest-spread-spacing": State.WARN;
|
|
188
|
+
readonly "stylistic/semi": State.WARN;
|
|
189
|
+
readonly "stylistic/semi-spacing": State.WARN;
|
|
190
|
+
readonly "stylistic/semi-style": State.WARN;
|
|
191
|
+
readonly "stylistic/space-before-blocks": State.WARN;
|
|
192
192
|
readonly "stylistic/space-before-function-paren": readonly [
|
|
193
|
-
State.
|
|
193
|
+
State.WARN,
|
|
194
194
|
{
|
|
195
195
|
readonly named: "never";
|
|
196
196
|
}
|
|
197
197
|
];
|
|
198
|
-
readonly "stylistic/space-in-parens": State.
|
|
199
|
-
readonly "stylistic/space-infix-ops": State.
|
|
200
|
-
readonly "stylistic/space-unary-ops": State.
|
|
198
|
+
readonly "stylistic/space-in-parens": State.WARN;
|
|
199
|
+
readonly "stylistic/space-infix-ops": State.WARN;
|
|
200
|
+
readonly "stylistic/space-unary-ops": State.WARN;
|
|
201
201
|
readonly "stylistic/spaced-comment": readonly [
|
|
202
|
-
State.
|
|
202
|
+
State.WARN,
|
|
203
203
|
"always",
|
|
204
204
|
{
|
|
205
205
|
readonly line: {
|
|
@@ -233,11 +233,11 @@ declare const _default: {
|
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
235
|
];
|
|
236
|
-
readonly "stylistic/switch-colon-spacing": State.
|
|
237
|
-
readonly "stylistic/template-curly-spacing": State.
|
|
238
|
-
readonly "stylistic/template-tag-spacing": State.
|
|
236
|
+
readonly "stylistic/switch-colon-spacing": State.WARN;
|
|
237
|
+
readonly "stylistic/template-curly-spacing": State.WARN;
|
|
238
|
+
readonly "stylistic/template-tag-spacing": State.WARN;
|
|
239
239
|
readonly "stylistic/type-annotation-spacing": readonly [
|
|
240
|
-
State.
|
|
240
|
+
State.WARN,
|
|
241
241
|
{
|
|
242
242
|
readonly before: true;
|
|
243
243
|
readonly after: true;
|
|
@@ -249,17 +249,17 @@ declare const _default: {
|
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
251
|
];
|
|
252
|
-
readonly "stylistic/type-generic-spacing": State.
|
|
253
|
-
readonly "stylistic/type-named-tuple-spacing": State.
|
|
252
|
+
readonly "stylistic/type-generic-spacing": State.WARN;
|
|
253
|
+
readonly "stylistic/type-named-tuple-spacing": State.WARN;
|
|
254
254
|
readonly "stylistic/wrap-iife": readonly [
|
|
255
|
-
State.
|
|
255
|
+
State.WARN,
|
|
256
256
|
"inside",
|
|
257
257
|
{
|
|
258
258
|
readonly functionPrototypeMethods: true;
|
|
259
259
|
}
|
|
260
260
|
];
|
|
261
|
-
readonly "stylistic/wrap-regex": State.
|
|
262
|
-
readonly "stylistic/yield-star-spacing": State.
|
|
261
|
+
readonly "stylistic/wrap-regex": State.WARN;
|
|
262
|
+
readonly "stylistic/yield-star-spacing": State.WARN;
|
|
263
263
|
};
|
|
264
264
|
};
|
|
265
265
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"js.stylistic.d.ts","sourceRoot":"","sources":["../../src/rules/js.stylistic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGhC,
|
|
1
|
+
{"version":3,"file":"js.stylistic.d.ts","sourceRoot":"","sources":["../../src/rules/js.stylistic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGhC,wBAyQE"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
rules: {
|
|
3
|
-
"stylistic/array-bracket-newline":
|
|
4
|
-
"stylistic/array-bracket-spacing":
|
|
3
|
+
"stylistic/array-bracket-newline": 1,
|
|
4
|
+
"stylistic/array-bracket-spacing": 1,
|
|
5
5
|
"stylistic/array-element-newline": [
|
|
6
|
-
|
|
6
|
+
1,
|
|
7
7
|
{
|
|
8
8
|
consistent: true,
|
|
9
9
|
multiline: true,
|
|
@@ -11,44 +11,44 @@ export default {
|
|
|
11
11
|
},
|
|
12
12
|
],
|
|
13
13
|
"stylistic/arrow-parens": [
|
|
14
|
-
|
|
14
|
+
1,
|
|
15
15
|
"as-needed",
|
|
16
16
|
],
|
|
17
|
-
"stylistic/arrow-spacing":
|
|
18
|
-
"stylistic/block-spacing":
|
|
17
|
+
"stylistic/arrow-spacing": 1,
|
|
18
|
+
"stylistic/block-spacing": 1,
|
|
19
19
|
"stylistic/brace-style": [
|
|
20
|
-
|
|
20
|
+
1,
|
|
21
21
|
"stroustrup",
|
|
22
22
|
{
|
|
23
23
|
allowSingleLine: true,
|
|
24
24
|
},
|
|
25
25
|
],
|
|
26
26
|
"stylistic/comma-dangle": [
|
|
27
|
-
|
|
27
|
+
1,
|
|
28
28
|
"always-multiline",
|
|
29
29
|
],
|
|
30
|
-
"stylistic/comma-spacing":
|
|
31
|
-
"stylistic/comma-style":
|
|
32
|
-
"stylistic/computed-property-spacing":
|
|
33
|
-
"stylistic/curly-newline":
|
|
30
|
+
"stylistic/comma-spacing": 1,
|
|
31
|
+
"stylistic/comma-style": 1,
|
|
32
|
+
"stylistic/computed-property-spacing": 1,
|
|
33
|
+
"stylistic/curly-newline": 1,
|
|
34
34
|
"stylistic/dot-location": [
|
|
35
|
-
|
|
35
|
+
1,
|
|
36
36
|
"property",
|
|
37
37
|
],
|
|
38
|
-
"stylistic/eol-last":
|
|
38
|
+
"stylistic/eol-last": 1,
|
|
39
39
|
"stylistic/function-call-argument-newline": [
|
|
40
|
-
|
|
40
|
+
1,
|
|
41
41
|
"consistent",
|
|
42
42
|
],
|
|
43
|
-
"stylistic/function-call-spacing":
|
|
43
|
+
"stylistic/function-call-spacing": 1,
|
|
44
44
|
"stylistic/function-paren-newline": [
|
|
45
|
-
|
|
45
|
+
1,
|
|
46
46
|
"multiline-arguments",
|
|
47
47
|
],
|
|
48
|
-
"stylistic/generator-star-spacing":
|
|
49
|
-
"stylistic/implicit-arrow-linebreak":
|
|
48
|
+
"stylistic/generator-star-spacing": 1,
|
|
49
|
+
"stylistic/implicit-arrow-linebreak": 1,
|
|
50
50
|
"stylistic/indent": [
|
|
51
|
-
|
|
51
|
+
1,
|
|
52
52
|
2,
|
|
53
53
|
{
|
|
54
54
|
assignmentOperator: 0,
|
|
@@ -62,14 +62,14 @@ export default {
|
|
|
62
62
|
},
|
|
63
63
|
],
|
|
64
64
|
"stylistic/indent-binary-ops": [
|
|
65
|
-
|
|
65
|
+
1,
|
|
66
66
|
2,
|
|
67
67
|
],
|
|
68
|
-
"stylistic/key-spacing":
|
|
69
|
-
"stylistic/keyword-spacing":
|
|
70
|
-
"stylistic/linebreak-style":
|
|
68
|
+
"stylistic/key-spacing": 1,
|
|
69
|
+
"stylistic/keyword-spacing": 1,
|
|
70
|
+
"stylistic/linebreak-style": 1,
|
|
71
71
|
"stylistic/lines-between-class-members": [
|
|
72
|
-
|
|
72
|
+
1,
|
|
73
73
|
{
|
|
74
74
|
enforce: [
|
|
75
75
|
{
|
|
@@ -91,7 +91,7 @@ export default {
|
|
|
91
91
|
},
|
|
92
92
|
],
|
|
93
93
|
"stylistic/max-len": [
|
|
94
|
-
|
|
94
|
+
1,
|
|
95
95
|
{
|
|
96
96
|
code: 300,
|
|
97
97
|
ignoreComments: true,
|
|
@@ -102,19 +102,19 @@ export default {
|
|
|
102
102
|
ignoreRegExpLiterals: true,
|
|
103
103
|
},
|
|
104
104
|
],
|
|
105
|
-
"stylistic/max-statements-per-line":
|
|
106
|
-
"stylistic/member-delimiter-style":
|
|
105
|
+
"stylistic/max-statements-per-line": 1,
|
|
106
|
+
"stylistic/member-delimiter-style": 1,
|
|
107
107
|
"stylistic/multiline-ternary": [
|
|
108
|
-
|
|
108
|
+
1,
|
|
109
109
|
"always-multiline",
|
|
110
110
|
],
|
|
111
|
-
"stylistic/newline-per-chained-call":
|
|
112
|
-
"stylistic/no-extra-parens":
|
|
113
|
-
"stylistic/no-extra-semi":
|
|
114
|
-
"stylistic/no-floating-decimal":
|
|
115
|
-
"stylistic/no-mixed-spaces-and-tabs":
|
|
111
|
+
"stylistic/newline-per-chained-call": 1,
|
|
112
|
+
"stylistic/no-extra-parens": 1,
|
|
113
|
+
"stylistic/no-extra-semi": 1,
|
|
114
|
+
"stylistic/no-floating-decimal": 1,
|
|
115
|
+
"stylistic/no-mixed-spaces-and-tabs": 1,
|
|
116
116
|
"stylistic/no-multi-spaces": [
|
|
117
|
-
|
|
117
|
+
1,
|
|
118
118
|
{
|
|
119
119
|
exceptions: {
|
|
120
120
|
Property: false,
|
|
@@ -123,22 +123,22 @@ export default {
|
|
|
123
123
|
},
|
|
124
124
|
],
|
|
125
125
|
"stylistic/no-multiple-empty-lines": [
|
|
126
|
-
|
|
126
|
+
1,
|
|
127
127
|
{
|
|
128
128
|
max: 1,
|
|
129
129
|
maxBOF: 0,
|
|
130
130
|
maxEOF: 0,
|
|
131
131
|
},
|
|
132
132
|
],
|
|
133
|
-
"stylistic/no-tabs":
|
|
134
|
-
"stylistic/no-trailing-spaces":
|
|
135
|
-
"stylistic/no-whitespace-before-property":
|
|
133
|
+
"stylistic/no-tabs": 1,
|
|
134
|
+
"stylistic/no-trailing-spaces": 1,
|
|
135
|
+
"stylistic/no-whitespace-before-property": 1,
|
|
136
136
|
"stylistic/nonblock-statement-body-position": [
|
|
137
|
-
|
|
137
|
+
1,
|
|
138
138
|
"below",
|
|
139
139
|
],
|
|
140
140
|
"stylistic/object-curly-newline": [
|
|
141
|
-
|
|
141
|
+
1,
|
|
142
142
|
{
|
|
143
143
|
consistent: true,
|
|
144
144
|
multiline: true,
|
|
@@ -146,59 +146,59 @@ export default {
|
|
|
146
146
|
},
|
|
147
147
|
],
|
|
148
148
|
"stylistic/object-curly-spacing": [
|
|
149
|
-
|
|
149
|
+
1,
|
|
150
150
|
"always",
|
|
151
151
|
{
|
|
152
152
|
emptyObjects: "never",
|
|
153
153
|
},
|
|
154
154
|
],
|
|
155
|
-
"stylistic/object-property-newline":
|
|
155
|
+
"stylistic/object-property-newline": 1,
|
|
156
156
|
"stylistic/one-var-declaration-per-line": [
|
|
157
|
-
|
|
157
|
+
1,
|
|
158
158
|
"always",
|
|
159
159
|
],
|
|
160
160
|
"stylistic/operator-linebreak": [
|
|
161
|
-
|
|
161
|
+
1,
|
|
162
162
|
"before",
|
|
163
163
|
],
|
|
164
164
|
"stylistic/padded-blocks": [
|
|
165
|
-
|
|
165
|
+
1,
|
|
166
166
|
"never",
|
|
167
167
|
{
|
|
168
168
|
allowSingleLineBlocks: true,
|
|
169
169
|
},
|
|
170
170
|
],
|
|
171
171
|
"stylistic/quote-props": [
|
|
172
|
-
|
|
172
|
+
1,
|
|
173
173
|
"as-needed",
|
|
174
174
|
{
|
|
175
175
|
keywords: true,
|
|
176
176
|
},
|
|
177
177
|
],
|
|
178
178
|
"stylistic/quotes": [
|
|
179
|
-
|
|
179
|
+
1,
|
|
180
180
|
"double",
|
|
181
181
|
{
|
|
182
182
|
avoidEscape: true,
|
|
183
183
|
allowTemplateLiterals: "always",
|
|
184
184
|
},
|
|
185
185
|
],
|
|
186
|
-
"stylistic/rest-spread-spacing":
|
|
187
|
-
"stylistic/semi":
|
|
188
|
-
"stylistic/semi-spacing":
|
|
189
|
-
"stylistic/semi-style":
|
|
190
|
-
"stylistic/space-before-blocks":
|
|
186
|
+
"stylistic/rest-spread-spacing": 1,
|
|
187
|
+
"stylistic/semi": 1,
|
|
188
|
+
"stylistic/semi-spacing": 1,
|
|
189
|
+
"stylistic/semi-style": 1,
|
|
190
|
+
"stylistic/space-before-blocks": 1,
|
|
191
191
|
"stylistic/space-before-function-paren": [
|
|
192
|
-
|
|
192
|
+
1,
|
|
193
193
|
{
|
|
194
194
|
named: "never",
|
|
195
195
|
},
|
|
196
196
|
],
|
|
197
|
-
"stylistic/space-in-parens":
|
|
198
|
-
"stylistic/space-infix-ops":
|
|
199
|
-
"stylistic/space-unary-ops":
|
|
197
|
+
"stylistic/space-in-parens": 1,
|
|
198
|
+
"stylistic/space-infix-ops": 1,
|
|
199
|
+
"stylistic/space-unary-ops": 1,
|
|
200
200
|
"stylistic/spaced-comment": [
|
|
201
|
-
|
|
201
|
+
1,
|
|
202
202
|
"always",
|
|
203
203
|
{
|
|
204
204
|
line: {
|
|
@@ -228,11 +228,11 @@ export default {
|
|
|
228
228
|
},
|
|
229
229
|
},
|
|
230
230
|
],
|
|
231
|
-
"stylistic/switch-colon-spacing":
|
|
232
|
-
"stylistic/template-curly-spacing":
|
|
233
|
-
"stylistic/template-tag-spacing":
|
|
231
|
+
"stylistic/switch-colon-spacing": 1,
|
|
232
|
+
"stylistic/template-curly-spacing": 1,
|
|
233
|
+
"stylistic/template-tag-spacing": 1,
|
|
234
234
|
"stylistic/type-annotation-spacing": [
|
|
235
|
-
|
|
235
|
+
1,
|
|
236
236
|
{
|
|
237
237
|
before: true,
|
|
238
238
|
after: true,
|
|
@@ -244,17 +244,17 @@ export default {
|
|
|
244
244
|
},
|
|
245
245
|
},
|
|
246
246
|
],
|
|
247
|
-
"stylistic/type-generic-spacing":
|
|
248
|
-
"stylistic/type-named-tuple-spacing":
|
|
247
|
+
"stylistic/type-generic-spacing": 1,
|
|
248
|
+
"stylistic/type-named-tuple-spacing": 1,
|
|
249
249
|
"stylistic/wrap-iife": [
|
|
250
|
-
|
|
250
|
+
1,
|
|
251
251
|
"inside",
|
|
252
252
|
{
|
|
253
253
|
functionPrototypeMethods: true,
|
|
254
254
|
},
|
|
255
255
|
],
|
|
256
|
-
"stylistic/wrap-regex":
|
|
257
|
-
"stylistic/yield-star-spacing":
|
|
256
|
+
"stylistic/wrap-regex": 1,
|
|
257
|
+
"stylistic/yield-star-spacing": 1,
|
|
258
258
|
},
|
|
259
259
|
};
|
|
260
260
|
//# sourceMappingURL=js.stylistic.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"js.stylistic.js","sourceRoot":"","sources":["../../src/rules/js.stylistic.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QACL,iCAAiC,
|
|
1
|
+
{"version":3,"file":"js.stylistic.js","sourceRoot":"","sources":["../../src/rules/js.stylistic.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QACL,iCAAiC,GAAY;QAC7C,iCAAiC,GAAY;QAC7C,iCAAiC,EAAE;;YAEjC;gBACE,UAAU,EAAE,IAAI;gBAChB,SAAS,EAAE,IAAI;gBACf,QAAQ,EAAE,CAAC;aACZ;SACF;QACD,wBAAwB,EAAE;;YAExB,WAAW;SACZ;QACD,yBAAyB,GAAY;QACrC,yBAAyB,GAAY;QACrC,uBAAuB,EAAE;;YAEvB,YAAY;YACZ;gBACE,eAAe,EAAE,IAAI;aACtB;SACF;QACD,wBAAwB,EAAE;;YAExB,kBAAkB;SACnB;QACD,yB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QAAQ;YACR;gBACE,IAAI,EAAE;oBACJ,UAAU,EAAE;wBACV,GAAG;wBACH,GAAG;wBACH,GAAG;wBACH,GAAG;qBACJ;oBACD,OAAO,EAAE;wBACP,GAAG;wBACH,GAAG;wBACH,GAAG;wBACH,GAAG;wBACH,SAAS;wBACT,YAAY;wBACZ,OAAO;wBACP,UAAU;wBACV,aAAa;wBACb,QAAQ;qBACT;iBACF;gBACD,KAAK,EAAE;oBACL,UAAU,EAAE,CAAC,GAAG,CAAC;oBACjB,OAAO,EAAE,CAAC,GAAG,CAAC;oBACd,QAAQ,EAAE,IAAI;iBACf;aACF;SACF;QACD,gCAAgC,GAAY;QAC5C,kCAAkC,GAAY;QAC9C,gCAAgC,GAAY;QAC5C,mCAAmC,EAAE;;YAEnC;gBACE,MAAM,EAAE,IAAI;gBACZ,KAAK,EAAE,IAAI;gBACX,SAAS,EAAE;oBACT,KAAK,EAAE;wBACL,MAAM,EAAE,KAAK;wBACb,KAAK,EAAE,IAAI;qBACZ;iBACF;aACF;SACF;QACD,gCAAgC,GAAY;QAC5C,oCAAoC,GAAY;QAChD,qBAAqB,EAAE;;YAErB,QAAQ;YACR;gBACE,wBAAwB,EAAE,IAAI;aAC/B;SACF;QACD,sBAAsB,GAAY;QAClC,8BAA8B,GAAY;KAClC;CACX,CAAC"}
|
|
@@ -28,27 +28,24 @@ declare const _default: ({
|
|
|
28
28
|
};
|
|
29
29
|
} | {
|
|
30
30
|
rules: {
|
|
31
|
-
readonly "jsonc/array-bracket-spacing": import("../state.js").State.
|
|
31
|
+
readonly "jsonc/array-bracket-spacing": import("../state.js").State.WARN;
|
|
32
32
|
readonly "jsonc/array-element-newline": readonly [
|
|
33
|
-
import("../state.js").State.
|
|
33
|
+
import("../state.js").State.WARN,
|
|
34
34
|
"consistent"
|
|
35
35
|
];
|
|
36
36
|
readonly "jsonc/comma-dangle": import("../state.js").State.ON;
|
|
37
|
-
readonly "jsonc/comma-style": import("../state.js").State.
|
|
37
|
+
readonly "jsonc/comma-style": import("../state.js").State.WARN;
|
|
38
38
|
readonly "jsonc/indent": readonly [
|
|
39
|
-
import("../state.js").State.
|
|
39
|
+
import("../state.js").State.WARN,
|
|
40
40
|
2
|
|
41
41
|
];
|
|
42
|
-
readonly "jsonc/key-spacing": import("../state.js").State.
|
|
42
|
+
readonly "jsonc/key-spacing": import("../state.js").State.WARN;
|
|
43
43
|
readonly "jsonc/no-floating-decimal": import("../state.js").State.ON;
|
|
44
44
|
readonly "jsonc/no-irregular-whitespace": readonly [
|
|
45
45
|
import("../state.js").State.ON,
|
|
46
46
|
{
|
|
47
47
|
readonly skipStrings: true;
|
|
48
48
|
readonly skipComments: true;
|
|
49
|
-
readonly skipRegExps: true;
|
|
50
|
-
readonly skipTemplates: true;
|
|
51
|
-
readonly skipJSXText: true;
|
|
52
49
|
}
|
|
53
50
|
];
|
|
54
51
|
readonly "jsonc/no-multi-str": import("../state.js").State.ON;
|
|
@@ -57,7 +54,7 @@ declare const _default: ({
|
|
|
57
54
|
readonly "jsonc/no-sparse-arrays": import("../state.js").State.ON;
|
|
58
55
|
readonly "jsonc/no-useless-escape": import("../state.js").State.ON;
|
|
59
56
|
readonly "jsonc/object-curly-newline": readonly [
|
|
60
|
-
import("../state.js").State.
|
|
57
|
+
import("../state.js").State.WARN,
|
|
61
58
|
{
|
|
62
59
|
readonly consistent: true;
|
|
63
60
|
readonly multiline: true;
|
|
@@ -65,10 +62,10 @@ declare const _default: ({
|
|
|
65
62
|
}
|
|
66
63
|
];
|
|
67
64
|
readonly "jsonc/object-curly-spacing": readonly [
|
|
68
|
-
import("../state.js").State.
|
|
65
|
+
import("../state.js").State.WARN,
|
|
69
66
|
"always"
|
|
70
67
|
];
|
|
71
|
-
readonly "jsonc/object-property-newline": import("../state.js").State.
|
|
68
|
+
readonly "jsonc/object-property-newline": import("../state.js").State.WARN;
|
|
72
69
|
readonly "jsonc/quote-props": import("../state.js").State.ON;
|
|
73
70
|
readonly "jsonc/quotes": import("../state.js").State.ON;
|
|
74
71
|
readonly "jsonc/space-unary-ops": import("../state.js").State.ON;
|
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
|