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.
Files changed (143) hide show
  1. package/dist/imports/index.d.ts +1 -1
  2. package/dist/imports/index.d.ts.map +1 -1
  3. package/dist/imports/index.js +1 -1
  4. package/dist/imports/index.js.map +1 -1
  5. package/dist/index.d.ts +5 -1
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/statics/index.d.ts +1 -1
  10. package/dist/statics/index.d.ts.map +1 -1
  11. package/dist/statics/index.js +1 -1
  12. package/dist/statics/index.js.map +1 -1
  13. package/dist/statics/rules/index.d.ts +23 -23
  14. package/dist/statics/rules/presets/Html.d.ts.map +1 -1
  15. package/dist/statics/rules/presets/Html.js +1 -4
  16. package/dist/statics/rules/presets/Html.js.map +1 -1
  17. package/dist/statics/rules/presets/Js.d.ts +4 -4
  18. package/dist/statics/rules/presets/Js.d.ts.map +1 -1
  19. package/dist/statics/rules/presets/Js.js +1 -4
  20. package/dist/statics/rules/presets/Js.js.map +1 -1
  21. package/dist/statics/rules/presets/Json.d.ts +1 -1
  22. package/dist/statics/rules/presets/Json.d.ts.map +1 -1
  23. package/dist/statics/rules/presets/Json.js +1 -4
  24. package/dist/statics/rules/presets/Json.js.map +1 -1
  25. package/dist/statics/rules/presets/Jsonc.d.ts +1 -1
  26. package/dist/statics/rules/presets/Jsonc.d.ts.map +1 -1
  27. package/dist/statics/rules/presets/Jsonc.js +1 -4
  28. package/dist/statics/rules/presets/Jsonc.js.map +1 -1
  29. package/dist/statics/rules/presets/Mocha.d.ts.map +1 -1
  30. package/dist/statics/rules/presets/Mocha.js +1 -4
  31. package/dist/statics/rules/presets/Mocha.js.map +1 -1
  32. package/dist/statics/rules/presets/Svelte.d.ts +8 -8
  33. package/dist/statics/rules/presets/Ts.d.ts +8 -8
  34. package/dist/statics/rules/presets/Yml.d.ts +1 -1
  35. package/dist/statics/rules/presets/Yml.d.ts.map +1 -1
  36. package/dist/statics/rules/presets/Yml.js +1 -4
  37. package/dist/statics/rules/presets/Yml.js.map +1 -1
  38. package/dist/statics/rules/presets/html/Enable.d.ts.map +1 -1
  39. package/dist/statics/rules/presets/html/Enable.js +1 -4
  40. package/dist/statics/rules/presets/html/Enable.js.map +1 -1
  41. package/dist/statics/rules/presets/html/Recommended.d.ts.map +1 -1
  42. package/dist/statics/rules/presets/html/Recommended.js +1 -4
  43. package/dist/statics/rules/presets/html/Recommended.js.map +1 -1
  44. package/dist/statics/rules/presets/index.d.ts +1 -1
  45. package/dist/statics/rules/presets/index.d.ts.map +1 -1
  46. package/dist/statics/rules/presets/index.js.map +1 -1
  47. package/dist/statics/rules/presets/js/Enable.d.ts.map +1 -1
  48. package/dist/statics/rules/presets/js/Enable.js +51 -254
  49. package/dist/statics/rules/presets/js/Enable.js.map +1 -1
  50. package/dist/statics/rules/presets/js/EnableStylistic.d.ts +4 -4
  51. package/dist/statics/rules/presets/js/EnableStylistic.d.ts.map +1 -1
  52. package/dist/statics/rules/presets/js/EnableStylistic.js +85 -486
  53. package/dist/statics/rules/presets/js/EnableStylistic.js.map +1 -1
  54. package/dist/statics/rules/presets/json/Enable.d.ts.map +1 -1
  55. package/dist/statics/rules/presets/json/Enable.js.map +1 -1
  56. package/dist/statics/rules/presets/json/EnableX.d.ts +1 -1
  57. package/dist/statics/rules/presets/json/EnableX.d.ts.map +1 -1
  58. package/dist/statics/rules/presets/json/EnableX.js +12 -66
  59. package/dist/statics/rules/presets/json/EnableX.js.map +1 -1
  60. package/dist/statics/rules/presets/jsonc/OverrideJson.d.ts.map +1 -1
  61. package/dist/statics/rules/presets/jsonc/OverrideJson.js +2 -11
  62. package/dist/statics/rules/presets/jsonc/OverrideJson.js.map +1 -1
  63. package/dist/statics/rules/presets/md/Enable.d.ts.map +1 -1
  64. package/dist/statics/rules/presets/md/Enable.js +11 -49
  65. package/dist/statics/rules/presets/md/Enable.js.map +1 -1
  66. package/dist/statics/rules/presets/mocha/Enable.d.ts.map +1 -1
  67. package/dist/statics/rules/presets/mocha/Enable.js +1 -4
  68. package/dist/statics/rules/presets/mocha/Enable.js.map +1 -1
  69. package/dist/statics/rules/presets/mocha/Recommended.d.ts.map +1 -1
  70. package/dist/statics/rules/presets/mocha/Recommended.js +1 -4
  71. package/dist/statics/rules/presets/mocha/Recommended.js.map +1 -1
  72. package/dist/statics/rules/presets/svelte/DisableJS.d.ts.map +1 -1
  73. package/dist/statics/rules/presets/svelte/DisableJS.js +1 -7
  74. package/dist/statics/rules/presets/svelte/DisableJS.js.map +1 -1
  75. package/dist/statics/rules/presets/svelte/DisableTS.d.ts.map +1 -1
  76. package/dist/statics/rules/presets/svelte/DisableTS.js +1 -7
  77. package/dist/statics/rules/presets/svelte/DisableTS.js.map +1 -1
  78. package/dist/statics/rules/presets/svelte/DisableX.d.ts.map +1 -1
  79. package/dist/statics/rules/presets/svelte/DisableX.js +1 -6
  80. package/dist/statics/rules/presets/svelte/DisableX.js.map +1 -1
  81. package/dist/statics/rules/presets/svelte/Enable.d.ts.map +1 -1
  82. package/dist/statics/rules/presets/svelte/Enable.js +19 -108
  83. package/dist/statics/rules/presets/svelte/Enable.js.map +1 -1
  84. package/dist/statics/rules/presets/svelte/EnableX.d.ts.map +1 -1
  85. package/dist/statics/rules/presets/svelte/EnableX.js +2 -12
  86. package/dist/statics/rules/presets/svelte/EnableX.js.map +1 -1
  87. package/dist/statics/rules/presets/ts/DisableX.d.ts.map +1 -1
  88. package/dist/statics/rules/presets/ts/DisableX.js.map +1 -1
  89. package/dist/statics/rules/presets/ts/Enable.d.ts +4 -4
  90. package/dist/statics/rules/presets/ts/Enable.d.ts.map +1 -1
  91. package/dist/statics/rules/presets/ts/Enable.js +38 -175
  92. package/dist/statics/rules/presets/ts/Enable.js.map +1 -1
  93. package/dist/statics/rules/presets/ts/EnableX.d.ts.map +1 -1
  94. package/dist/statics/rules/presets/ts/EnableX.js +4 -29
  95. package/dist/statics/rules/presets/ts/EnableX.js.map +1 -1
  96. package/dist/statics/rules/presets/yml/Enable.d.ts.map +1 -1
  97. package/dist/statics/rules/presets/yml/Enable.js +9 -50
  98. package/dist/statics/rules/presets/yml/Enable.js.map +1 -1
  99. package/dist/statics/rules/presets/yml/EnableX.d.ts +1 -1
  100. package/dist/statics/rules/presets/yml/EnableX.d.ts.map +1 -1
  101. package/dist/statics/rules/presets/yml/EnableX.js +9 -60
  102. package/dist/statics/rules/presets/yml/EnableX.js.map +1 -1
  103. package/dist/statics/rules/strings/level/index.d.ts +1 -1
  104. package/dist/statics/rules/strings/level/index.d.ts.map +1 -1
  105. package/dist/statics/rules/strings/level/index.js +1 -1
  106. package/dist/statics/rules/strings/level/index.js.map +1 -1
  107. package/dist/statics/rules/strings/state/index.d.ts +2 -2
  108. package/dist/statics/rules/strings/state/index.d.ts.map +1 -1
  109. package/dist/statics/rules/strings/state/index.js +2 -2
  110. package/dist/statics/rules/strings/state/index.js.map +1 -1
  111. package/package.json +3 -2
  112. package/src/imports/index.ts +1 -4
  113. package/src/index.ts +18 -7
  114. package/src/statics/index.ts +1 -4
  115. package/src/statics/rules/presets/Html.ts +1 -4
  116. package/src/statics/rules/presets/Js.ts +1 -4
  117. package/src/statics/rules/presets/Json.ts +1 -4
  118. package/src/statics/rules/presets/Jsonc.ts +1 -4
  119. package/src/statics/rules/presets/Mocha.ts +1 -4
  120. package/src/statics/rules/presets/Yml.ts +1 -4
  121. package/src/statics/rules/presets/html/Enable.ts +1 -4
  122. package/src/statics/rules/presets/html/Recommended.ts +2 -4
  123. package/src/statics/rules/presets/index.ts +1 -4
  124. package/src/statics/rules/presets/js/Enable.ts +53 -257
  125. package/src/statics/rules/presets/js/EnableStylistic.ts +86 -490
  126. package/src/statics/rules/presets/json/Enable.ts +0 -1
  127. package/src/statics/rules/presets/json/EnableX.ts +12 -67
  128. package/src/statics/rules/presets/jsonc/OverrideJson.ts +3 -19
  129. package/src/statics/rules/presets/md/Enable.ts +11 -50
  130. package/src/statics/rules/presets/mocha/Enable.ts +1 -4
  131. package/src/statics/rules/presets/mocha/Recommended.ts +2 -4
  132. package/src/statics/rules/presets/svelte/DisableJS.ts +3 -10
  133. package/src/statics/rules/presets/svelte/DisableTS.ts +1 -7
  134. package/src/statics/rules/presets/svelte/DisableX.ts +2 -11
  135. package/src/statics/rules/presets/svelte/Enable.ts +50 -137
  136. package/src/statics/rules/presets/svelte/EnableX.ts +3 -21
  137. package/src/statics/rules/presets/ts/DisableX.ts +1 -2
  138. package/src/statics/rules/presets/ts/Enable.ts +39 -191
  139. package/src/statics/rules/presets/ts/EnableX.ts +9 -41
  140. package/src/statics/rules/presets/yml/Enable.ts +9 -59
  141. package/src/statics/rules/presets/yml/EnableX.ts +9 -69
  142. package/src/statics/rules/strings/level/index.ts +1 -5
  143. package/src/statics/rules/strings/state/index.ts +2 -0
@@ -3,69 +3,21 @@ const { Id: { Stylistic }, Level: { ERROR, OFF }, State: { NEVER, ALWAYS, ALWAYS
3
3
  export default [
4
4
  Stylistic,
5
5
  {
6
- "@stylistic/array-bracket-newline": [
7
- ERROR,
8
- {
9
- multiline: true,
10
- minItems: null,
11
- },
12
- ],
13
- "@stylistic/array-bracket-spacing": [
14
- ERROR,
15
- NEVER,
16
- {
17
- singleValue: false,
18
- objectsInArrays: false,
19
- arraysInArrays: false,
20
- },
21
- ],
6
+ "@stylistic/array-bracket-newline": [ERROR, { multiline: true, minItems: null }],
7
+ "@stylistic/array-bracket-spacing": [ERROR, NEVER, { singleValue: false, objectsInArrays: false, arraysInArrays: false }],
22
8
  "@stylistic/array-element-newline": [
23
9
  ERROR,
24
10
  {
25
- ArrayExpression: {
26
- consistent: true,
27
- multiline: true,
28
- minItems: 4,
29
- },
30
- ArrayPattern: {
31
- consistent: true,
32
- multiline: true,
33
- minItems: 4,
34
- },
35
- },
36
- ],
37
- "@stylistic/arrow-parens": [
38
- ERROR,
39
- AS_NEEDED,
40
- { requireForBlockBody: false },
41
- ],
42
- "@stylistic/arrow-spacing": [
43
- ERROR,
44
- {
45
- before: true,
46
- after: true,
47
- },
48
- ],
49
- "@stylistic/block-spacing": [
50
- ERROR,
51
- ALWAYS,
52
- ],
53
- "@stylistic/brace-style": [
54
- ERROR,
55
- "stroustrup",
56
- { allowSingleLine: true },
57
- ],
58
- "@stylistic/comma-dangle": [
59
- ERROR,
60
- ALWAYS_MULTILINE,
61
- ],
62
- "@stylistic/comma-spacing": [
63
- ERROR,
64
- {
65
- before: false,
66
- after: true,
11
+ ArrayExpression: { consistent: true, multiline: true, minItems: 4 },
12
+ ArrayPattern: { consistent: true, multiline: true, minItems: 4 },
67
13
  },
68
14
  ],
15
+ "@stylistic/arrow-parens": [ERROR, AS_NEEDED, { requireForBlockBody: false }],
16
+ "@stylistic/arrow-spacing": [ERROR, { before: true, after: true }],
17
+ "@stylistic/block-spacing": [ERROR, ALWAYS],
18
+ "@stylistic/brace-style": [ERROR, "stroustrup", { allowSingleLine: true }],
19
+ "@stylistic/comma-dangle": [ERROR, ALWAYS_MULTILINE],
20
+ "@stylistic/comma-spacing": [ERROR, { before: false, after: true }],
69
21
  "@stylistic/comma-style": [
70
22
  ERROR,
71
23
  LAST,
@@ -85,63 +37,25 @@ export default [
85
37
  },
86
38
  },
87
39
  ],
88
- "@stylistic/computed-property-spacing": [
89
- ERROR,
90
- NEVER,
91
- { enforceForClassMembers: true },
92
- ],
93
- "@stylistic/dot-location": [
94
- ERROR,
95
- "property",
96
- ],
97
- "@stylistic/eol-last": [
98
- ERROR,
99
- ALWAYS,
100
- ],
101
- "@stylistic/function-call-argument-newline": [
102
- ERROR,
103
- CONSISTENT,
104
- ],
105
- "@stylistic/function-call-spacing": [
106
- ERROR,
107
- NEVER,
108
- ],
109
- "@stylistic/function-paren-newline": [
110
- ERROR,
111
- "multiline-arguments",
112
- ],
113
- "@stylistic/generator-star-spacing": [
114
- ERROR,
115
- {
116
- before: true,
117
- after: false,
118
- },
119
- ],
120
- "@stylistic/implicit-arrow-linebreak": [
121
- ERROR,
122
- BESIDE,
123
- ],
40
+ "@stylistic/computed-property-spacing": [ERROR, NEVER, { enforceForClassMembers: true }],
41
+ "@stylistic/dot-location": [ERROR, "property"],
42
+ "@stylistic/eol-last": [ERROR, ALWAYS],
43
+ "@stylistic/function-call-argument-newline": [ERROR, CONSISTENT],
44
+ "@stylistic/function-call-spacing": [ERROR, NEVER],
45
+ "@stylistic/function-paren-newline": [ERROR, "multiline-arguments"],
46
+ "@stylistic/generator-star-spacing": [ERROR, { before: true, after: false }],
47
+ "@stylistic/implicit-arrow-linebreak": [ERROR, BESIDE],
124
48
  "@stylistic/indent": [
125
49
  ERROR,
126
50
  2,
127
51
  {
128
52
  ignoredNodes: [],
129
53
  SwitchCase: 1,
130
- VariableDeclarator: {
131
- "var": 0,
132
- let: 0,
133
- "const": 0,
134
- },
54
+ VariableDeclarator: { "var": 0, let: 0, "const": 0 },
135
55
  outerIIFEBody: 0,
136
56
  MemberExpression: 1,
137
- FunctionDeclaration: {
138
- parameters: 1,
139
- body: 1,
140
- },
141
- FunctionExpression: {
142
- parameters: 1,
143
- body: 1,
144
- },
57
+ FunctionDeclaration: { parameters: 1, body: 1 },
58
+ FunctionExpression: { parameters: 1, body: 1 },
145
59
  StaticBlock: { body: 1 },
146
60
  CallExpression: { arguments: 1 },
147
61
  ArrayExpression: 1,
@@ -152,26 +66,9 @@ export default [
152
66
  ignoreComments: false,
153
67
  },
154
68
  ],
155
- "@stylistic/indent-binary-ops": [
156
- ERROR,
157
- 2,
158
- ],
159
- "@stylistic/key-spacing": [
160
- ERROR,
161
- {
162
- beforeColon: false,
163
- afterColon: true,
164
- mode: STRICT,
165
- },
166
- ],
167
- "@stylistic/keyword-spacing": [
168
- ERROR,
169
- {
170
- before: true,
171
- after: true,
172
- overrides: {},
173
- },
174
- ],
69
+ "@stylistic/indent-binary-ops": [ERROR, 2],
70
+ "@stylistic/key-spacing": [ERROR, { beforeColon: false, afterColon: true, mode: STRICT }],
71
+ "@stylistic/keyword-spacing": [ERROR, { before: true, after: true, overrides: {} }],
175
72
  "@stylistic/line-comment-position": OFF,
176
73
  "@stylistic/lines-around-comment": [
177
74
  ERROR,
@@ -204,27 +101,12 @@ export default [
204
101
  ERROR,
205
102
  {
206
103
  enforce: [
207
- {
208
- blankLine: NEVER,
209
- prev: "field",
210
- next: "field",
211
- },
212
- {
213
- blankLine: ALWAYS,
214
- prev: "field",
215
- next: "method",
216
- },
217
- {
218
- blankLine: ALWAYS,
219
- prev: "method",
220
- next: STAR,
221
- },
104
+ { blankLine: NEVER, prev: "field", next: "field" },
105
+ { blankLine: ALWAYS, prev: "field", next: "method" },
106
+ { blankLine: ALWAYS, prev: "method", next: STAR },
222
107
  ],
223
108
  },
224
- {
225
- exceptAfterSingleLine: false,
226
- exceptAfterOverload: true,
227
- },
109
+ { exceptAfterSingleLine: false, exceptAfterOverload: true },
228
110
  ],
229
111
  "@stylistic/max-len": [
230
112
  ERROR,
@@ -239,37 +121,19 @@ export default [
239
121
  ignoreRegExpLiterals: true,
240
122
  },
241
123
  ],
242
- "@stylistic/max-statements-per-line": [
243
- ERROR,
244
- { max: 1 },
245
- ],
124
+ "@stylistic/max-statements-per-line": [ERROR, { max: 1 }],
246
125
  "@stylistic/member-delimiter-style": [
247
126
  ERROR,
248
127
  {
249
- multiline: {
250
- delimiter: "semi",
251
- requireLast: true,
252
- },
253
- singleline: {
254
- delimiter: "semi",
255
- requireLast: false,
256
- },
128
+ multiline: { delimiter: "semi", requireLast: true },
129
+ singleline: { delimiter: "semi", requireLast: false },
257
130
  multilineDetection: "brackets",
258
131
  },
259
132
  ],
260
133
  "@stylistic/multiline-comment-style": OFF,
261
- "@stylistic/multiline-ternary": [
262
- ERROR,
263
- ALWAYS_MULTILINE,
264
- ],
265
- "@stylistic/new-parens": [
266
- ERROR,
267
- NEVER,
268
- ],
269
- "@stylistic/newline-per-chained-call": [
270
- ERROR,
271
- { ignoreChainWithDepth: 2 },
272
- ],
134
+ "@stylistic/multiline-ternary": [ERROR, ALWAYS_MULTILINE],
135
+ "@stylistic/new-parens": [ERROR, NEVER],
136
+ "@stylistic/newline-per-chained-call": [ERROR, { ignoreChainWithDepth: 2 }],
273
137
  "@stylistic/no-confusing-arrow": OFF,
274
138
  "@stylistic/no-extra-parens": [
275
139
  ERROR,
@@ -289,33 +153,10 @@ export default [
289
153
  "@stylistic/no-floating-decimal": ERROR,
290
154
  "@stylistic/no-mixed-operators": OFF,
291
155
  "@stylistic/no-mixed-spaces-and-tabs": ERROR,
292
- "@stylistic/no-multi-spaces": [
293
- ERROR,
294
- {
295
- ignoreEOLComments: false,
296
- exceptions: { Property: false },
297
- includeTabs: true,
298
- },
299
- ],
300
- "@stylistic/no-multiple-empty-lines": [
301
- ERROR,
302
- {
303
- max: 1,
304
- maxEOF: 1,
305
- maxBOF: 0,
306
- },
307
- ],
308
- "@stylistic/no-tabs": [
309
- ERROR,
310
- { allowIndentationTabs: false },
311
- ],
312
- "@stylistic/no-trailing-spaces": [
313
- ERROR,
314
- {
315
- skipBlankLines: false,
316
- ignoreComments: false,
317
- },
318
- ],
156
+ "@stylistic/no-multi-spaces": [ERROR, { ignoreEOLComments: false, exceptions: { Property: false }, includeTabs: true }],
157
+ "@stylistic/no-multiple-empty-lines": [ERROR, { max: 1, maxEOF: 1, maxBOF: 0 }],
158
+ "@stylistic/no-tabs": [ERROR, { allowIndentationTabs: false }],
159
+ "@stylistic/no-trailing-spaces": [ERROR, { skipBlankLines: false, ignoreComments: false }],
319
160
  "@stylistic/no-whitespace-before-property": ERROR,
320
161
  "@stylistic/nonblock-statement-body-position": [
321
162
  ERROR,
@@ -333,89 +174,23 @@ export default [
333
174
  "@stylistic/object-curly-newline": [
334
175
  ERROR,
335
176
  {
336
- ObjectExpression: {
337
- multiline: true,
338
- minProperties: 4,
339
- consistent: true,
340
- },
341
- ObjectPattern: {
342
- multiline: true,
343
- minProperties: 4,
344
- consistent: true,
345
- },
346
- ImportDeclaration: {
347
- multiline: true,
348
- minProperties: 4,
349
- consistent: true,
350
- },
351
- ExportDeclaration: {
352
- multiline: true,
353
- minProperties: 4,
354
- consistent: true,
355
- },
356
- },
357
- ],
358
- "@stylistic/object-curly-spacing": [
359
- ERROR,
360
- ALWAYS,
361
- {
362
- arraysInObjects: true,
363
- objectsInObjects: true,
177
+ ObjectExpression: { consistent: true, multiline: true, minProperties: 4 },
178
+ ObjectPattern: { consistent: true, multiline: true, minProperties: 4 },
179
+ ImportDeclaration: { consistent: true, multiline: true, minProperties: 4 },
180
+ ExportDeclaration: { consistent: true, multiline: true, minProperties: 4 },
364
181
  },
365
182
  ],
366
- "@stylistic/object-property-newline": [
367
- ERROR,
368
- { allowAllPropertiesOnSameLine: true },
369
- ],
370
- "@stylistic/one-var-declaration-per-line": [
371
- ERROR,
372
- ALWAYS,
373
- ],
374
- "@stylistic/operator-linebreak": [
375
- ERROR,
376
- BEFORE,
377
- { overrides: { "=": AFTER } },
378
- ],
379
- "@stylistic/padded-blocks": [
380
- ERROR,
381
- {
382
- blocks: NEVER,
383
- classes: NEVER,
384
- switches: NEVER,
385
- },
386
- { allowSingleLineBlocks: true },
387
- ],
183
+ "@stylistic/object-curly-spacing": [ERROR, ALWAYS, { arraysInObjects: true, objectsInObjects: true }],
184
+ "@stylistic/object-property-newline": [ERROR, { allowAllPropertiesOnSameLine: true }],
185
+ "@stylistic/one-var-declaration-per-line": [ERROR, ALWAYS],
186
+ "@stylistic/operator-linebreak": [ERROR, BEFORE, { overrides: { "=": AFTER } }],
187
+ "@stylistic/padded-blocks": [ERROR, { blocks: NEVER, classes: NEVER, switches: NEVER }, { allowSingleLineBlocks: true }],
388
188
  "@stylistic/padding-line-between-statements": [
389
189
  ERROR,
390
- {
391
- blankLine: ALWAYS,
392
- prev: "directive",
393
- next: STAR,
394
- },
395
- {
396
- blankLine: NEVER,
397
- prev: "directive",
398
- next: "directive",
399
- },
400
- {
401
- blankLine: ALWAYS,
402
- prev: [
403
- "import",
404
- "cjs-import",
405
- ],
406
- next: STAR,
407
- },
408
- {
409
- blankLine: NEVER,
410
- prev: [
411
- "import",
412
- "cjs-import",
413
- ],
414
- next: [
415
- "import",
416
- "cjs-import",
417
- ],
418
- },
190
+ { blankLine: ALWAYS, prev: "directive", next: STAR },
191
+ { blankLine: NEVER, prev: "directive", next: "directive" },
192
+ { blankLine: ALWAYS, prev: ["import", "cjs-import"], next: STAR },
193
+ { blankLine: NEVER, prev: ["import", "cjs-import"], next: ["import", "cjs-import"] },
419
194
  {
420
195
  blankLine: ALWAYS,
421
196
  prev: [
@@ -436,86 +211,19 @@ export default [
436
211
  ],
437
212
  next: STAR,
438
213
  },
439
- {
440
- blankLine: ALWAYS,
441
- prev: "case",
442
- next: STAR,
443
- },
444
- {
445
- blankLine: ALWAYS,
446
- prev: "case",
447
- next: [
448
- "case",
449
- "default",
450
- ],
451
- },
452
- {
453
- blankLine: ALWAYS,
454
- prev: "default",
455
- next: STAR,
456
- },
457
- {
458
- blankLine: ALWAYS,
459
- prev: "type",
460
- next: STAR,
461
- },
462
- {
463
- blankLine: NEVER,
464
- prev: "type",
465
- next: "type",
466
- },
467
- {
468
- blankLine: ALWAYS,
469
- prev: "function",
470
- next: STAR,
471
- },
472
- {
473
- blankLine: ALWAYS,
474
- prev: "function-overload",
475
- next: STAR,
476
- },
477
- {
478
- blankLine: NEVER,
479
- prev: "function-overload",
480
- next: "function-overload",
481
- },
482
- {
483
- blankLine: NEVER,
484
- prev: "function-overload",
485
- next: "function",
486
- },
487
- {
488
- blankLine: ALWAYS,
489
- prev: [
490
- "const",
491
- "let",
492
- "var",
493
- ],
494
- next: STAR,
495
- },
496
- {
497
- blankLine: NEVER,
498
- prev: [
499
- "const",
500
- "let",
501
- "var",
502
- ],
503
- next: [
504
- "const",
505
- "let",
506
- "var",
507
- ],
508
- },
509
- {
510
- blankLine: ALWAYS,
511
- prev: "expression",
512
- next: STAR,
513
- },
514
- {
515
- blankLine: NEVER,
516
- prev: "expression",
517
- next: "expression",
518
- },
214
+ { blankLine: ALWAYS, prev: "case", next: STAR },
215
+ { blankLine: ALWAYS, prev: "case", next: ["case", "default"] },
216
+ { blankLine: ALWAYS, prev: "default", next: STAR },
217
+ { blankLine: ALWAYS, prev: "type", next: STAR },
218
+ { blankLine: NEVER, prev: "type", next: "type" },
219
+ { blankLine: ALWAYS, prev: "function", next: STAR },
220
+ { blankLine: ALWAYS, prev: "function-overload", next: STAR },
221
+ { blankLine: NEVER, prev: "function-overload", next: "function-overload" },
222
+ { blankLine: NEVER, prev: "function-overload", next: "function" },
223
+ { blankLine: ALWAYS, prev: ["const", "let", "var"], next: STAR },
224
+ { blankLine: NEVER, prev: ["const", "let", "var"], next: ["const", "let", "var"] },
225
+ { blankLine: ALWAYS, prev: "expression", next: STAR },
226
+ { blankLine: NEVER, prev: "expression", next: "expression" },
519
227
  {
520
228
  blankLine: ALWAYS,
521
229
  prev: STAR,
@@ -526,139 +234,30 @@ export default [
526
234
  "continue",
527
235
  ],
528
236
  },
529
- {
530
- blankLine: ALWAYS,
531
- prev: STAR,
532
- next: [
533
- "export",
534
- "cjs-export",
535
- ],
536
- },
537
- {
538
- blankLine: NEVER,
539
- prev: [
540
- "export",
541
- "cjs-export",
542
- ],
543
- next: [
544
- "export",
545
- "cjs-export",
546
- ],
547
- },
548
- ],
549
- "@stylistic/quote-props": [
550
- ERROR,
551
- AS_NEEDED,
552
- {
553
- keywords: true,
554
- unnecessary: true,
555
- numbers: false,
556
- },
557
- ],
558
- "@stylistic/quotes": [
559
- ERROR,
560
- DOUBLE,
561
- {
562
- avoidEscape: true,
563
- allowTemplateLiterals: true,
564
- },
565
- ],
566
- "@stylistic/rest-spread-spacing": [
567
- ERROR,
568
- NEVER,
569
- ],
570
- "@stylistic/semi": [
571
- ERROR,
572
- ALWAYS,
573
- {
574
- omitLastInOneLineBlock: false,
575
- omitLastInOneLineClassBody: false,
576
- },
577
- ],
578
- "@stylistic/semi-spacing": [
579
- ERROR,
580
- {
581
- before: false,
582
- after: true,
583
- },
584
- ],
585
- "@stylistic/semi-style": [
586
- ERROR,
587
- LAST,
588
- ],
589
- "@stylistic/space-before-blocks": [
590
- ERROR,
591
- {
592
- functions: ALWAYS,
593
- keywords: ALWAYS,
594
- classes: ALWAYS,
595
- },
596
- ],
597
- "@stylistic/space-before-function-paren": [
598
- ERROR,
599
- {
600
- anonymous: ALWAYS,
601
- named: NEVER,
602
- asyncArrow: ALWAYS,
603
- },
604
- ],
605
- "@stylistic/space-in-parens": [
606
- ERROR,
607
- NEVER,
608
- ],
609
- "@stylistic/space-infix-ops": [
610
- ERROR,
611
- { int32Hint: true },
612
- ],
613
- "@stylistic/space-unary-ops": [
614
- ERROR,
615
- {
616
- words: true,
617
- nonwords: false,
618
- overrides: {},
619
- },
620
- ],
621
- "@stylistic/spaced-comment": [
622
- ERROR,
623
- ALWAYS,
624
- ],
625
- "@stylistic/switch-colon-spacing": [
626
- ERROR,
627
- {
628
- after: true,
629
- before: false,
630
- },
631
- ],
632
- "@stylistic/template-curly-spacing": [
633
- ERROR,
634
- NEVER,
635
- ],
636
- "@stylistic/template-tag-spacing": [
637
- ERROR,
638
- NEVER,
639
- ],
640
- "@stylistic/type-annotation-spacing": [
641
- ERROR,
642
- {
643
- before: false,
644
- after: true,
645
- },
646
- ],
237
+ { blankLine: ALWAYS, prev: STAR, next: ["export", "cjs-export"] },
238
+ { blankLine: NEVER, prev: ["export", "cjs-export"], next: ["export", "cjs-export"] },
239
+ ],
240
+ "@stylistic/quote-props": [ERROR, AS_NEEDED, { keywords: true, unnecessary: true, numbers: false }],
241
+ "@stylistic/quotes": [ERROR, DOUBLE, { avoidEscape: true, allowTemplateLiterals: true }],
242
+ "@stylistic/rest-spread-spacing": [ERROR, NEVER],
243
+ "@stylistic/semi": [ERROR, ALWAYS, { omitLastInOneLineBlock: false, omitLastInOneLineClassBody: false }],
244
+ "@stylistic/semi-spacing": [ERROR, { before: false, after: true }],
245
+ "@stylistic/semi-style": [ERROR, LAST],
246
+ "@stylistic/space-before-blocks": [ERROR, { functions: ALWAYS, keywords: ALWAYS, classes: ALWAYS }],
247
+ "@stylistic/space-before-function-paren": [ERROR, { anonymous: ALWAYS, named: NEVER, asyncArrow: ALWAYS }],
248
+ "@stylistic/space-in-parens": [ERROR, NEVER],
249
+ "@stylistic/space-infix-ops": [ERROR, { int32Hint: true }],
250
+ "@stylistic/space-unary-ops": [ERROR, { words: true, nonwords: false, overrides: {} }],
251
+ "@stylistic/spaced-comment": [ERROR, ALWAYS],
252
+ "@stylistic/switch-colon-spacing": [ERROR, { after: true, before: false }],
253
+ "@stylistic/template-curly-spacing": [ERROR, NEVER],
254
+ "@stylistic/template-tag-spacing": [ERROR, NEVER],
255
+ "@stylistic/type-annotation-spacing": [ERROR, { before: false, after: true }],
647
256
  "@stylistic/type-generic-spacing": ERROR,
648
257
  "@stylistic/type-named-tuple-spacing": ERROR,
649
- "@stylistic/wrap-iife": [
650
- ERROR,
651
- INSIDE,
652
- { functionPrototypeMethods: true },
653
- ],
258
+ "@stylistic/wrap-iife": [ERROR, INSIDE, { functionPrototypeMethods: true }],
654
259
  "@stylistic/wrap-regex": ERROR,
655
- "@stylistic/yield-star-spacing": [
656
- ERROR,
657
- {
658
- before: false,
659
- after: true,
660
- },
661
- ],
260
+ "@stylistic/yield-star-spacing": [ERROR, { before: false, after: true }],
662
261
  },
663
262
  ];
664
263
  //# sourceMappingURL=EnableStylistic.js.map