linted 16.1.0-rc.1 → 16.1.1-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/imports/index.d.ts +1 -1
- package/dist/imports/index.d.ts.map +1 -1
- package/dist/imports/index.js +1 -1
- package/dist/imports/index.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/statics/index.d.ts +1 -1
- package/dist/statics/index.d.ts.map +1 -1
- package/dist/statics/index.js +1 -1
- package/dist/statics/index.js.map +1 -1
- package/dist/statics/rules/index.d.ts +23 -23
- package/dist/statics/rules/presets/Html.d.ts.map +1 -1
- package/dist/statics/rules/presets/Html.js +1 -4
- package/dist/statics/rules/presets/Html.js.map +1 -1
- package/dist/statics/rules/presets/Js.d.ts +4 -4
- package/dist/statics/rules/presets/Js.d.ts.map +1 -1
- package/dist/statics/rules/presets/Js.js +1 -4
- package/dist/statics/rules/presets/Js.js.map +1 -1
- package/dist/statics/rules/presets/Json.d.ts +1 -1
- package/dist/statics/rules/presets/Json.d.ts.map +1 -1
- package/dist/statics/rules/presets/Json.js +1 -4
- package/dist/statics/rules/presets/Json.js.map +1 -1
- package/dist/statics/rules/presets/Jsonc.d.ts +1 -1
- package/dist/statics/rules/presets/Jsonc.d.ts.map +1 -1
- package/dist/statics/rules/presets/Jsonc.js +1 -4
- package/dist/statics/rules/presets/Jsonc.js.map +1 -1
- package/dist/statics/rules/presets/Mocha.d.ts.map +1 -1
- package/dist/statics/rules/presets/Mocha.js +1 -4
- package/dist/statics/rules/presets/Mocha.js.map +1 -1
- package/dist/statics/rules/presets/Svelte.d.ts +8 -8
- package/dist/statics/rules/presets/Ts.d.ts +8 -8
- package/dist/statics/rules/presets/Yml.d.ts +1 -1
- package/dist/statics/rules/presets/Yml.d.ts.map +1 -1
- package/dist/statics/rules/presets/Yml.js +1 -4
- package/dist/statics/rules/presets/Yml.js.map +1 -1
- package/dist/statics/rules/presets/html/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/html/Enable.js +1 -4
- package/dist/statics/rules/presets/html/Enable.js.map +1 -1
- package/dist/statics/rules/presets/html/Recommended.d.ts.map +1 -1
- package/dist/statics/rules/presets/html/Recommended.js +1 -4
- package/dist/statics/rules/presets/html/Recommended.js.map +1 -1
- package/dist/statics/rules/presets/index.d.ts +1 -1
- package/dist/statics/rules/presets/index.d.ts.map +1 -1
- package/dist/statics/rules/presets/index.js.map +1 -1
- package/dist/statics/rules/presets/js/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/js/Enable.js +51 -254
- package/dist/statics/rules/presets/js/Enable.js.map +1 -1
- package/dist/statics/rules/presets/js/EnableStylistic.d.ts +4 -4
- package/dist/statics/rules/presets/js/EnableStylistic.d.ts.map +1 -1
- package/dist/statics/rules/presets/js/EnableStylistic.js +85 -486
- package/dist/statics/rules/presets/js/EnableStylistic.js.map +1 -1
- package/dist/statics/rules/presets/json/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/json/Enable.js.map +1 -1
- package/dist/statics/rules/presets/json/EnableX.d.ts +1 -1
- package/dist/statics/rules/presets/json/EnableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/json/EnableX.js +12 -66
- package/dist/statics/rules/presets/json/EnableX.js.map +1 -1
- package/dist/statics/rules/presets/jsonc/OverrideJson.d.ts.map +1 -1
- package/dist/statics/rules/presets/jsonc/OverrideJson.js +2 -11
- package/dist/statics/rules/presets/jsonc/OverrideJson.js.map +1 -1
- package/dist/statics/rules/presets/md/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/md/Enable.js +11 -49
- package/dist/statics/rules/presets/md/Enable.js.map +1 -1
- package/dist/statics/rules/presets/mocha/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/mocha/Enable.js +1 -4
- package/dist/statics/rules/presets/mocha/Enable.js.map +1 -1
- package/dist/statics/rules/presets/mocha/Recommended.d.ts.map +1 -1
- package/dist/statics/rules/presets/mocha/Recommended.js +1 -4
- package/dist/statics/rules/presets/mocha/Recommended.js.map +1 -1
- package/dist/statics/rules/presets/svelte/DisableJS.d.ts.map +1 -1
- package/dist/statics/rules/presets/svelte/DisableJS.js +1 -7
- package/dist/statics/rules/presets/svelte/DisableJS.js.map +1 -1
- package/dist/statics/rules/presets/svelte/DisableTS.d.ts.map +1 -1
- package/dist/statics/rules/presets/svelte/DisableTS.js +1 -7
- package/dist/statics/rules/presets/svelte/DisableTS.js.map +1 -1
- package/dist/statics/rules/presets/svelte/DisableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/svelte/DisableX.js +1 -6
- package/dist/statics/rules/presets/svelte/DisableX.js.map +1 -1
- package/dist/statics/rules/presets/svelte/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/svelte/Enable.js +19 -108
- package/dist/statics/rules/presets/svelte/Enable.js.map +1 -1
- package/dist/statics/rules/presets/svelte/EnableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/svelte/EnableX.js +2 -12
- package/dist/statics/rules/presets/svelte/EnableX.js.map +1 -1
- package/dist/statics/rules/presets/ts/DisableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/ts/DisableX.js.map +1 -1
- package/dist/statics/rules/presets/ts/Enable.d.ts +4 -4
- package/dist/statics/rules/presets/ts/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/ts/Enable.js +38 -175
- package/dist/statics/rules/presets/ts/Enable.js.map +1 -1
- package/dist/statics/rules/presets/ts/EnableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/ts/EnableX.js +4 -29
- package/dist/statics/rules/presets/ts/EnableX.js.map +1 -1
- package/dist/statics/rules/presets/yml/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/yml/Enable.js +9 -50
- package/dist/statics/rules/presets/yml/Enable.js.map +1 -1
- package/dist/statics/rules/presets/yml/EnableX.d.ts +1 -1
- package/dist/statics/rules/presets/yml/EnableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/yml/EnableX.js +9 -60
- package/dist/statics/rules/presets/yml/EnableX.js.map +1 -1
- package/dist/statics/rules/strings/level/index.d.ts +1 -1
- package/dist/statics/rules/strings/level/index.d.ts.map +1 -1
- package/dist/statics/rules/strings/level/index.js +1 -1
- package/dist/statics/rules/strings/level/index.js.map +1 -1
- package/dist/statics/rules/strings/state/index.d.ts +2 -2
- package/dist/statics/rules/strings/state/index.d.ts.map +1 -1
- package/dist/statics/rules/strings/state/index.js +2 -2
- package/dist/statics/rules/strings/state/index.js.map +1 -1
- package/package.json +3 -2
- package/src/imports/index.ts +1 -4
- package/src/index.ts +18 -7
- package/src/statics/index.ts +1 -4
- package/src/statics/rules/presets/Html.ts +1 -4
- package/src/statics/rules/presets/Js.ts +1 -4
- package/src/statics/rules/presets/Json.ts +1 -4
- package/src/statics/rules/presets/Jsonc.ts +1 -4
- package/src/statics/rules/presets/Mocha.ts +1 -4
- package/src/statics/rules/presets/Yml.ts +1 -4
- package/src/statics/rules/presets/html/Enable.ts +1 -4
- package/src/statics/rules/presets/html/Recommended.ts +2 -4
- package/src/statics/rules/presets/index.ts +1 -4
- package/src/statics/rules/presets/js/Enable.ts +53 -257
- package/src/statics/rules/presets/js/EnableStylistic.ts +86 -490
- package/src/statics/rules/presets/json/Enable.ts +0 -1
- package/src/statics/rules/presets/json/EnableX.ts +12 -67
- package/src/statics/rules/presets/jsonc/OverrideJson.ts +3 -19
- package/src/statics/rules/presets/md/Enable.ts +11 -50
- package/src/statics/rules/presets/mocha/Enable.ts +1 -4
- package/src/statics/rules/presets/mocha/Recommended.ts +2 -4
- package/src/statics/rules/presets/svelte/DisableJS.ts +3 -10
- package/src/statics/rules/presets/svelte/DisableTS.ts +1 -7
- package/src/statics/rules/presets/svelte/DisableX.ts +2 -11
- package/src/statics/rules/presets/svelte/Enable.ts +50 -137
- package/src/statics/rules/presets/svelte/EnableX.ts +3 -21
- package/src/statics/rules/presets/ts/DisableX.ts +1 -2
- package/src/statics/rules/presets/ts/Enable.ts +39 -191
- package/src/statics/rules/presets/ts/EnableX.ts +9 -41
- package/src/statics/rules/presets/yml/Enable.ts +9 -59
- package/src/statics/rules/presets/yml/EnableX.ts +9 -69
- package/src/statics/rules/strings/level/index.ts +1 -5
- package/src/statics/rules/strings/state/index.ts +2 -0
@@ -25,71 +25,22 @@ const {
|
|
25
25
|
export default [
|
26
26
|
Stylistic,
|
27
27
|
{
|
28
|
-
|
29
28
|
// https://eslint.style/rules
|
30
|
-
"@stylistic/array-bracket-newline": [
|
31
|
-
|
32
|
-
{
|
33
|
-
multiline: true,
|
34
|
-
minItems: null,
|
35
|
-
},
|
36
|
-
],
|
37
|
-
"@stylistic/array-bracket-spacing": [
|
38
|
-
ERROR,
|
39
|
-
NEVER,
|
40
|
-
{
|
41
|
-
singleValue: false,
|
42
|
-
objectsInArrays: false,
|
43
|
-
arraysInArrays: false,
|
44
|
-
},
|
45
|
-
],
|
29
|
+
"@stylistic/array-bracket-newline": [ERROR, { multiline: true, minItems: null }],
|
30
|
+
"@stylistic/array-bracket-spacing": [ERROR, NEVER, { singleValue: false, objectsInArrays: false, arraysInArrays: false }],
|
46
31
|
"@stylistic/array-element-newline": [
|
47
32
|
ERROR,
|
48
33
|
{
|
49
|
-
ArrayExpression: {
|
50
|
-
|
51
|
-
multiline: true,
|
52
|
-
minItems: 4,
|
53
|
-
},
|
54
|
-
ArrayPattern: {
|
55
|
-
consistent: true,
|
56
|
-
multiline: true,
|
57
|
-
minItems: 4,
|
58
|
-
},
|
59
|
-
},
|
60
|
-
],
|
61
|
-
"@stylistic/arrow-parens": [
|
62
|
-
ERROR,
|
63
|
-
AS_NEEDED,
|
64
|
-
{ requireForBlockBody: false },
|
65
|
-
],
|
66
|
-
"@stylistic/arrow-spacing": [
|
67
|
-
ERROR,
|
68
|
-
{
|
69
|
-
before: true,
|
70
|
-
after: true,
|
71
|
-
},
|
72
|
-
],
|
73
|
-
"@stylistic/block-spacing": [
|
74
|
-
ERROR,
|
75
|
-
ALWAYS,
|
76
|
-
],
|
77
|
-
"@stylistic/brace-style": [
|
78
|
-
ERROR,
|
79
|
-
"stroustrup",
|
80
|
-
{ allowSingleLine: true },
|
81
|
-
],
|
82
|
-
"@stylistic/comma-dangle": [
|
83
|
-
ERROR,
|
84
|
-
ALWAYS_MULTILINE,
|
85
|
-
],
|
86
|
-
"@stylistic/comma-spacing": [
|
87
|
-
ERROR,
|
88
|
-
{
|
89
|
-
before: false,
|
90
|
-
after: true,
|
34
|
+
ArrayExpression: { consistent: true, multiline: true, minItems: 4 },
|
35
|
+
ArrayPattern: { consistent: true, multiline: true, minItems: 4 },
|
91
36
|
},
|
92
37
|
],
|
38
|
+
"@stylistic/arrow-parens": [ERROR, AS_NEEDED, { requireForBlockBody: false }],
|
39
|
+
"@stylistic/arrow-spacing": [ERROR, { before: true, after: true }],
|
40
|
+
"@stylistic/block-spacing": [ERROR, ALWAYS],
|
41
|
+
"@stylistic/brace-style": [ERROR, "stroustrup", { allowSingleLine: true }],
|
42
|
+
"@stylistic/comma-dangle": [ERROR, ALWAYS_MULTILINE],
|
43
|
+
"@stylistic/comma-spacing": [ERROR, { before: false, after: true }],
|
93
44
|
"@stylistic/comma-style": [
|
94
45
|
ERROR,
|
95
46
|
LAST,
|
@@ -109,64 +60,26 @@ export default [
|
|
109
60
|
},
|
110
61
|
},
|
111
62
|
],
|
112
|
-
"@stylistic/computed-property-spacing": [
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
],
|
117
|
-
"@stylistic/dot-location": [
|
118
|
-
ERROR,
|
119
|
-
"property",
|
120
|
-
],
|
121
|
-
"@stylistic/eol-last": [
|
122
|
-
ERROR,
|
123
|
-
ALWAYS,
|
124
|
-
],
|
125
|
-
"@stylistic/function-call-argument-newline": [
|
126
|
-
ERROR,
|
127
|
-
CONSISTENT,
|
128
|
-
],
|
129
|
-
"@stylistic/function-call-spacing": [
|
130
|
-
ERROR,
|
131
|
-
NEVER,
|
132
|
-
],
|
63
|
+
"@stylistic/computed-property-spacing": [ERROR, NEVER, { enforceForClassMembers: true }],
|
64
|
+
"@stylistic/dot-location": [ERROR, "property"],
|
65
|
+
"@stylistic/eol-last": [ERROR, ALWAYS],
|
66
|
+
"@stylistic/function-call-argument-newline": [ERROR, CONSISTENT],
|
67
|
+
"@stylistic/function-call-spacing": [ERROR, NEVER],
|
133
68
|
|
134
|
-
"@stylistic/function-paren-newline": [
|
135
|
-
|
136
|
-
|
137
|
-
],
|
138
|
-
"@stylistic/generator-star-spacing": [
|
139
|
-
ERROR,
|
140
|
-
{
|
141
|
-
before: true,
|
142
|
-
after: false,
|
143
|
-
},
|
144
|
-
],
|
145
|
-
"@stylistic/implicit-arrow-linebreak": [
|
146
|
-
ERROR,
|
147
|
-
BESIDE,
|
148
|
-
],
|
69
|
+
"@stylistic/function-paren-newline": [ERROR, "multiline-arguments"], // BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290
|
70
|
+
"@stylistic/generator-star-spacing": [ERROR, { before: true, after: false }],
|
71
|
+
"@stylistic/implicit-arrow-linebreak": [ERROR, BESIDE],
|
149
72
|
"@stylistic/indent": [
|
150
73
|
ERROR,
|
151
74
|
2,
|
152
75
|
{
|
153
76
|
ignoredNodes: [],
|
154
77
|
SwitchCase: 1,
|
155
|
-
VariableDeclarator: {
|
156
|
-
"var": 0,
|
157
|
-
let: 0,
|
158
|
-
"const": 0,
|
159
|
-
},
|
78
|
+
VariableDeclarator: { "var": 0, let: 0, "const": 0 },
|
160
79
|
outerIIFEBody: 0,
|
161
80
|
MemberExpression: 1,
|
162
|
-
FunctionDeclaration: {
|
163
|
-
|
164
|
-
body: 1,
|
165
|
-
},
|
166
|
-
FunctionExpression: {
|
167
|
-
parameters: 1,
|
168
|
-
body: 1,
|
169
|
-
},
|
81
|
+
FunctionDeclaration: { parameters: 1, body: 1 },
|
82
|
+
FunctionExpression: { parameters: 1, body: 1 },
|
170
83
|
StaticBlock: { body: 1 },
|
171
84
|
CallExpression: { arguments: 1 },
|
172
85
|
ArrayExpression: 1,
|
@@ -177,26 +90,9 @@ export default [
|
|
177
90
|
ignoreComments: false,
|
178
91
|
},
|
179
92
|
],
|
180
|
-
"@stylistic/indent-binary-ops": [
|
181
|
-
|
182
|
-
|
183
|
-
],
|
184
|
-
"@stylistic/key-spacing": [
|
185
|
-
ERROR,
|
186
|
-
{
|
187
|
-
beforeColon: false,
|
188
|
-
afterColon: true,
|
189
|
-
mode: STRICT,
|
190
|
-
},
|
191
|
-
],
|
192
|
-
"@stylistic/keyword-spacing": [
|
193
|
-
ERROR,
|
194
|
-
{
|
195
|
-
before: true,
|
196
|
-
after: true,
|
197
|
-
overrides: {},
|
198
|
-
},
|
199
|
-
],
|
93
|
+
"@stylistic/indent-binary-ops": [ERROR, 2],
|
94
|
+
"@stylistic/key-spacing": [ERROR, { beforeColon: false, afterColon: true, mode: STRICT }],
|
95
|
+
"@stylistic/keyword-spacing": [ERROR, { before: true, after: true, overrides: {} }],
|
200
96
|
"@stylistic/line-comment-position": OFF,
|
201
97
|
"@stylistic/lines-around-comment": [
|
202
98
|
ERROR,
|
@@ -216,7 +112,7 @@ export default [
|
|
216
112
|
applyDefaultIgnorePatterns: true,
|
217
113
|
afterHashbangComment: false,
|
218
114
|
|
219
|
-
|
115
|
+
/* TS-only */
|
220
116
|
allowEnumEnd: true,
|
221
117
|
allowEnumStart: true,
|
222
118
|
allowInterfaceEnd: true,
|
@@ -231,29 +127,12 @@ export default [
|
|
231
127
|
ERROR,
|
232
128
|
{
|
233
129
|
enforce: [
|
234
|
-
{
|
235
|
-
|
236
|
-
|
237
|
-
next: "field",
|
238
|
-
},
|
239
|
-
{
|
240
|
-
blankLine: ALWAYS,
|
241
|
-
prev: "field",
|
242
|
-
next: "method",
|
243
|
-
},
|
244
|
-
{
|
245
|
-
blankLine: ALWAYS,
|
246
|
-
prev: "method",
|
247
|
-
next: STAR,
|
248
|
-
},
|
130
|
+
{ blankLine: NEVER, prev: "field", next: "field" },
|
131
|
+
{ blankLine: ALWAYS, prev: "field", next: "method" },
|
132
|
+
{ blankLine: ALWAYS, prev: "method", next: STAR },
|
249
133
|
],
|
250
134
|
},
|
251
|
-
{
|
252
|
-
exceptAfterSingleLine: false,
|
253
|
-
|
254
|
-
// TS-only
|
255
|
-
exceptAfterOverload: true,
|
256
|
-
},
|
135
|
+
{ exceptAfterSingleLine: false, exceptAfterOverload: true /* TS-only */ },
|
257
136
|
],
|
258
137
|
"@stylistic/max-len": [
|
259
138
|
ERROR,
|
@@ -268,37 +147,19 @@ export default [
|
|
268
147
|
ignoreRegExpLiterals: true,
|
269
148
|
},
|
270
149
|
],
|
271
|
-
"@stylistic/max-statements-per-line": [
|
272
|
-
ERROR,
|
273
|
-
{ max: 1 },
|
274
|
-
],
|
150
|
+
"@stylistic/max-statements-per-line": [ERROR, { max: 1 }],
|
275
151
|
"@stylistic/member-delimiter-style": [
|
276
152
|
ERROR,
|
277
153
|
{
|
278
|
-
multiline: {
|
279
|
-
|
280
|
-
requireLast: true,
|
281
|
-
},
|
282
|
-
singleline: {
|
283
|
-
delimiter: "semi",
|
284
|
-
requireLast: false,
|
285
|
-
},
|
154
|
+
multiline: { delimiter: "semi", requireLast: true },
|
155
|
+
singleline: { delimiter: "semi", requireLast: false },
|
286
156
|
multilineDetection: "brackets",
|
287
157
|
},
|
288
158
|
],
|
289
159
|
"@stylistic/multiline-comment-style": OFF,
|
290
|
-
"@stylistic/multiline-ternary": [
|
291
|
-
|
292
|
-
|
293
|
-
],
|
294
|
-
"@stylistic/new-parens": [
|
295
|
-
ERROR,
|
296
|
-
NEVER,
|
297
|
-
],
|
298
|
-
"@stylistic/newline-per-chained-call": [
|
299
|
-
ERROR,
|
300
|
-
{ ignoreChainWithDepth: 2 },
|
301
|
-
],
|
160
|
+
"@stylistic/multiline-ternary": [ERROR, ALWAYS_MULTILINE],
|
161
|
+
"@stylistic/new-parens": [ERROR, NEVER],
|
162
|
+
"@stylistic/newline-per-chained-call": [ERROR, { ignoreChainWithDepth: 2 }],
|
302
163
|
"@stylistic/no-confusing-arrow": OFF,
|
303
164
|
"@stylistic/no-extra-parens": [
|
304
165
|
ERROR,
|
@@ -318,33 +179,10 @@ export default [
|
|
318
179
|
"@stylistic/no-floating-decimal": ERROR,
|
319
180
|
"@stylistic/no-mixed-operators": OFF,
|
320
181
|
"@stylistic/no-mixed-spaces-and-tabs": ERROR,
|
321
|
-
"@stylistic/no-multi-spaces": [
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
exceptions: { Property: false },
|
326
|
-
includeTabs: true,
|
327
|
-
},
|
328
|
-
],
|
329
|
-
"@stylistic/no-multiple-empty-lines": [
|
330
|
-
ERROR,
|
331
|
-
{
|
332
|
-
max: 1,
|
333
|
-
maxEOF: 1,
|
334
|
-
maxBOF: 0,
|
335
|
-
},
|
336
|
-
],
|
337
|
-
"@stylistic/no-tabs": [
|
338
|
-
ERROR,
|
339
|
-
{ allowIndentationTabs: false },
|
340
|
-
],
|
341
|
-
"@stylistic/no-trailing-spaces": [
|
342
|
-
ERROR,
|
343
|
-
{
|
344
|
-
skipBlankLines: false,
|
345
|
-
ignoreComments: false,
|
346
|
-
},
|
347
|
-
],
|
182
|
+
"@stylistic/no-multi-spaces": [ERROR, { ignoreEOLComments: false, exceptions: { Property: false }, includeTabs: true }],
|
183
|
+
"@stylistic/no-multiple-empty-lines": [ERROR, { max: 1, maxEOF: 1, maxBOF: 0 }],
|
184
|
+
"@stylistic/no-tabs": [ERROR, { allowIndentationTabs: false }],
|
185
|
+
"@stylistic/no-trailing-spaces": [ERROR, { skipBlankLines: false, ignoreComments: false }],
|
348
186
|
"@stylistic/no-whitespace-before-property": ERROR,
|
349
187
|
"@stylistic/nonblock-statement-body-position": [
|
350
188
|
ERROR,
|
@@ -362,89 +200,23 @@ export default [
|
|
362
200
|
"@stylistic/object-curly-newline": [
|
363
201
|
ERROR,
|
364
202
|
{
|
365
|
-
ObjectExpression: {
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
},
|
370
|
-
ObjectPattern: {
|
371
|
-
multiline: true,
|
372
|
-
minProperties: 4,
|
373
|
-
consistent: true,
|
374
|
-
},
|
375
|
-
ImportDeclaration: {
|
376
|
-
multiline: true,
|
377
|
-
minProperties: 4,
|
378
|
-
consistent: true,
|
379
|
-
},
|
380
|
-
ExportDeclaration: {
|
381
|
-
multiline: true,
|
382
|
-
minProperties: 4,
|
383
|
-
consistent: true,
|
384
|
-
},
|
385
|
-
},
|
386
|
-
],
|
387
|
-
"@stylistic/object-curly-spacing": [
|
388
|
-
ERROR,
|
389
|
-
ALWAYS,
|
390
|
-
{
|
391
|
-
arraysInObjects: true,
|
392
|
-
objectsInObjects: true,
|
203
|
+
ObjectExpression: { consistent: true, multiline: true, minProperties: 4 },
|
204
|
+
ObjectPattern: { consistent: true, multiline: true, minProperties: 4 },
|
205
|
+
ImportDeclaration: { consistent: true, multiline: true, minProperties: 4 },
|
206
|
+
ExportDeclaration: { consistent: true, multiline: true, minProperties: 4 },
|
393
207
|
},
|
394
208
|
],
|
395
|
-
"@stylistic/object-
|
396
|
-
|
397
|
-
|
398
|
-
],
|
399
|
-
"@stylistic/
|
400
|
-
ERROR,
|
401
|
-
ALWAYS,
|
402
|
-
],
|
403
|
-
"@stylistic/operator-linebreak": [
|
404
|
-
ERROR,
|
405
|
-
BEFORE,
|
406
|
-
{ overrides: { "=": AFTER } },
|
407
|
-
],
|
408
|
-
"@stylistic/padded-blocks": [
|
409
|
-
ERROR,
|
410
|
-
{
|
411
|
-
blocks: NEVER,
|
412
|
-
classes: NEVER,
|
413
|
-
switches: NEVER,
|
414
|
-
},
|
415
|
-
{ allowSingleLineBlocks: true },
|
416
|
-
],
|
209
|
+
"@stylistic/object-curly-spacing": [ERROR, ALWAYS, { arraysInObjects: true, objectsInObjects: true }],
|
210
|
+
"@stylistic/object-property-newline": [ERROR, { allowAllPropertiesOnSameLine: true }],
|
211
|
+
"@stylistic/one-var-declaration-per-line": [ERROR, ALWAYS],
|
212
|
+
"@stylistic/operator-linebreak": [ERROR, BEFORE, { overrides: { "=": AFTER } }],
|
213
|
+
"@stylistic/padded-blocks": [ERROR, { blocks: NEVER, classes: NEVER, switches: NEVER }, { allowSingleLineBlocks: true }],
|
417
214
|
"@stylistic/padding-line-between-statements": [
|
418
215
|
ERROR,
|
419
|
-
{
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
},
|
424
|
-
{
|
425
|
-
blankLine: NEVER,
|
426
|
-
prev: "directive",
|
427
|
-
next: "directive",
|
428
|
-
},
|
429
|
-
{
|
430
|
-
blankLine: ALWAYS,
|
431
|
-
prev: [
|
432
|
-
"import",
|
433
|
-
"cjs-import",
|
434
|
-
],
|
435
|
-
next: STAR,
|
436
|
-
},
|
437
|
-
{
|
438
|
-
blankLine: NEVER,
|
439
|
-
prev: [
|
440
|
-
"import",
|
441
|
-
"cjs-import",
|
442
|
-
],
|
443
|
-
next: [
|
444
|
-
"import",
|
445
|
-
"cjs-import",
|
446
|
-
],
|
447
|
-
},
|
216
|
+
{ blankLine: ALWAYS, prev: "directive", next: STAR },
|
217
|
+
{ blankLine: NEVER, prev: "directive", next: "directive" },
|
218
|
+
{ blankLine: ALWAYS, prev: ["import", "cjs-import"], next: STAR },
|
219
|
+
{ blankLine: NEVER, prev: ["import", "cjs-import"], next: ["import", "cjs-import"] },
|
448
220
|
{
|
449
221
|
blankLine: ALWAYS,
|
450
222
|
prev: [
|
@@ -465,86 +237,19 @@ export default [
|
|
465
237
|
],
|
466
238
|
next: STAR,
|
467
239
|
},
|
468
|
-
{
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
},
|
473
|
-
{
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
},
|
481
|
-
{
|
482
|
-
blankLine: ALWAYS,
|
483
|
-
prev: "default",
|
484
|
-
next: STAR,
|
485
|
-
},
|
486
|
-
{
|
487
|
-
blankLine: ALWAYS,
|
488
|
-
prev: "type",
|
489
|
-
next: STAR,
|
490
|
-
},
|
491
|
-
{
|
492
|
-
blankLine: NEVER,
|
493
|
-
prev: "type",
|
494
|
-
next: "type",
|
495
|
-
},
|
496
|
-
{
|
497
|
-
blankLine: ALWAYS,
|
498
|
-
prev: "function",
|
499
|
-
next: STAR,
|
500
|
-
},
|
501
|
-
{
|
502
|
-
blankLine: ALWAYS,
|
503
|
-
prev: "function-overload",
|
504
|
-
next: STAR,
|
505
|
-
},
|
506
|
-
{
|
507
|
-
blankLine: NEVER,
|
508
|
-
prev: "function-overload",
|
509
|
-
next: "function-overload",
|
510
|
-
},
|
511
|
-
{
|
512
|
-
blankLine: NEVER,
|
513
|
-
prev: "function-overload",
|
514
|
-
next: "function",
|
515
|
-
},
|
516
|
-
{
|
517
|
-
blankLine: ALWAYS,
|
518
|
-
prev: [
|
519
|
-
"const",
|
520
|
-
"let",
|
521
|
-
"var",
|
522
|
-
],
|
523
|
-
next: STAR,
|
524
|
-
},
|
525
|
-
{
|
526
|
-
blankLine: NEVER,
|
527
|
-
prev: [
|
528
|
-
"const",
|
529
|
-
"let",
|
530
|
-
"var",
|
531
|
-
],
|
532
|
-
next: [
|
533
|
-
"const",
|
534
|
-
"let",
|
535
|
-
"var",
|
536
|
-
],
|
537
|
-
},
|
538
|
-
{
|
539
|
-
blankLine: ALWAYS,
|
540
|
-
prev: "expression",
|
541
|
-
next: STAR,
|
542
|
-
},
|
543
|
-
{
|
544
|
-
blankLine: NEVER,
|
545
|
-
prev: "expression",
|
546
|
-
next: "expression",
|
547
|
-
},
|
240
|
+
{ blankLine: ALWAYS, prev: "case", next: STAR },
|
241
|
+
{ blankLine: ALWAYS, prev: "case", next: ["case", "default"] },
|
242
|
+
{ blankLine: ALWAYS, prev: "default", next: STAR },
|
243
|
+
{ blankLine: ALWAYS, prev: "type", next: STAR },
|
244
|
+
{ blankLine: NEVER, prev: "type", next: "type" },
|
245
|
+
{ blankLine: ALWAYS, prev: "function", next: STAR },
|
246
|
+
{ blankLine: ALWAYS, prev: "function-overload", next: STAR },
|
247
|
+
{ blankLine: NEVER, prev: "function-overload", next: "function-overload" },
|
248
|
+
{ blankLine: NEVER, prev: "function-overload", next: "function" },
|
249
|
+
{ blankLine: ALWAYS, prev: ["const", "let", "var"], next: STAR },
|
250
|
+
{ blankLine: NEVER, prev: ["const", "let", "var"], next: ["const", "let", "var"] },
|
251
|
+
{ blankLine: ALWAYS, prev: "expression", next: STAR },
|
252
|
+
{ blankLine: NEVER, prev: "expression", next: "expression" },
|
548
253
|
{
|
549
254
|
blankLine: ALWAYS,
|
550
255
|
prev: STAR,
|
@@ -555,138 +260,29 @@ export default [
|
|
555
260
|
"continue",
|
556
261
|
],
|
557
262
|
},
|
558
|
-
{
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
],
|
578
|
-
"@stylistic/quote-props": [
|
579
|
-
ERROR,
|
580
|
-
AS_NEEDED,
|
581
|
-
{
|
582
|
-
keywords: true,
|
583
|
-
unnecessary: true,
|
584
|
-
numbers: false,
|
585
|
-
},
|
586
|
-
],
|
587
|
-
"@stylistic/quotes": [
|
588
|
-
ERROR,
|
589
|
-
DOUBLE,
|
590
|
-
{
|
591
|
-
avoidEscape: true,
|
592
|
-
allowTemplateLiterals: true,
|
593
|
-
},
|
594
|
-
],
|
595
|
-
"@stylistic/rest-spread-spacing": [
|
596
|
-
ERROR,
|
597
|
-
NEVER,
|
598
|
-
],
|
599
|
-
"@stylistic/semi": [
|
600
|
-
ERROR,
|
601
|
-
ALWAYS,
|
602
|
-
{
|
603
|
-
omitLastInOneLineBlock: false,
|
604
|
-
omitLastInOneLineClassBody: false,
|
605
|
-
},
|
606
|
-
],
|
607
|
-
"@stylistic/semi-spacing": [
|
608
|
-
ERROR,
|
609
|
-
{
|
610
|
-
before: false,
|
611
|
-
after: true,
|
612
|
-
},
|
613
|
-
],
|
614
|
-
"@stylistic/semi-style": [
|
615
|
-
ERROR,
|
616
|
-
LAST,
|
617
|
-
],
|
618
|
-
"@stylistic/space-before-blocks": [
|
619
|
-
ERROR,
|
620
|
-
{
|
621
|
-
functions: ALWAYS,
|
622
|
-
keywords: ALWAYS,
|
623
|
-
classes: ALWAYS,
|
624
|
-
},
|
625
|
-
],
|
626
|
-
"@stylistic/space-before-function-paren": [
|
627
|
-
ERROR,
|
628
|
-
{
|
629
|
-
anonymous: ALWAYS,
|
630
|
-
named: NEVER,
|
631
|
-
asyncArrow: ALWAYS,
|
632
|
-
},
|
633
|
-
],
|
634
|
-
"@stylistic/space-in-parens": [
|
635
|
-
ERROR,
|
636
|
-
NEVER,
|
637
|
-
],
|
638
|
-
"@stylistic/space-infix-ops": [
|
639
|
-
ERROR,
|
640
|
-
{ int32Hint: true },
|
641
|
-
],
|
642
|
-
"@stylistic/space-unary-ops": [
|
643
|
-
ERROR,
|
644
|
-
{
|
645
|
-
words: true,
|
646
|
-
nonwords: false,
|
647
|
-
overrides: {},
|
648
|
-
},
|
649
|
-
],
|
650
|
-
"@stylistic/spaced-comment": [
|
651
|
-
ERROR,
|
652
|
-
ALWAYS,
|
653
|
-
],
|
654
|
-
"@stylistic/switch-colon-spacing": [
|
655
|
-
ERROR,
|
656
|
-
{
|
657
|
-
after: true,
|
658
|
-
before: false,
|
659
|
-
},
|
660
|
-
],
|
661
|
-
"@stylistic/template-curly-spacing": [
|
662
|
-
ERROR,
|
663
|
-
NEVER,
|
664
|
-
],
|
665
|
-
"@stylistic/template-tag-spacing": [
|
666
|
-
ERROR,
|
667
|
-
NEVER,
|
668
|
-
],
|
669
|
-
"@stylistic/type-annotation-spacing": [
|
670
|
-
ERROR,
|
671
|
-
{
|
672
|
-
before: false,
|
673
|
-
after: true,
|
674
|
-
},
|
675
|
-
],
|
263
|
+
{ blankLine: ALWAYS, prev: STAR, next: ["export", "cjs-export"] },
|
264
|
+
{ blankLine: NEVER, prev: ["export", "cjs-export"], next: ["export", "cjs-export"] },
|
265
|
+
],
|
266
|
+
"@stylistic/quote-props": [ERROR, AS_NEEDED, { keywords: true, unnecessary: true, numbers: false }],
|
267
|
+
"@stylistic/quotes": [ERROR, DOUBLE, { avoidEscape: true, allowTemplateLiterals: true }],
|
268
|
+
"@stylistic/rest-spread-spacing": [ERROR, NEVER],
|
269
|
+
"@stylistic/semi": [ERROR, ALWAYS, { omitLastInOneLineBlock: false, omitLastInOneLineClassBody: false }],
|
270
|
+
"@stylistic/semi-spacing": [ERROR, { before: false, after: true }],
|
271
|
+
"@stylistic/semi-style": [ERROR, LAST],
|
272
|
+
"@stylistic/space-before-blocks": [ERROR, { functions: ALWAYS, keywords: ALWAYS, classes: ALWAYS }],
|
273
|
+
"@stylistic/space-before-function-paren": [ERROR, { anonymous: ALWAYS, named: NEVER, asyncArrow: ALWAYS }],
|
274
|
+
"@stylistic/space-in-parens": [ERROR, NEVER],
|
275
|
+
"@stylistic/space-infix-ops": [ERROR, { int32Hint: true }],
|
276
|
+
"@stylistic/space-unary-ops": [ERROR, { words: true, nonwords: false, overrides: {} }],
|
277
|
+
"@stylistic/spaced-comment": [ERROR, ALWAYS],
|
278
|
+
"@stylistic/switch-colon-spacing": [ERROR, { after: true, before: false }],
|
279
|
+
"@stylistic/template-curly-spacing": [ERROR, NEVER],
|
280
|
+
"@stylistic/template-tag-spacing": [ERROR, NEVER],
|
281
|
+
"@stylistic/type-annotation-spacing": [ERROR, { before: false, after: true }],
|
676
282
|
"@stylistic/type-generic-spacing": ERROR,
|
677
283
|
"@stylistic/type-named-tuple-spacing": ERROR,
|
678
|
-
"@stylistic/wrap-iife": [
|
679
|
-
ERROR,
|
680
|
-
INSIDE,
|
681
|
-
{ functionPrototypeMethods: true },
|
682
|
-
],
|
284
|
+
"@stylistic/wrap-iife": [ERROR, INSIDE, { functionPrototypeMethods: true }],
|
683
285
|
"@stylistic/wrap-regex": ERROR,
|
684
|
-
"@stylistic/yield-star-spacing": [
|
685
|
-
ERROR,
|
686
|
-
{
|
687
|
-
before: false,
|
688
|
-
after: true,
|
689
|
-
},
|
690
|
-
],
|
286
|
+
"@stylistic/yield-star-spacing": [ERROR, { before: false, after: true }],
|
691
287
|
},
|
692
288
|
] as const satisfies RuleEntry;
|