@eslinted/defaults 17.0.2 → 17.0.4

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.
@@ -178,206 +178,7 @@ export default {
178
178
  allowSingleLineBlocks: true,
179
179
  },
180
180
  ],
181
- "stylistic/padding-line-between-statements": [
182
- State.WARN,
183
- // #region *<
184
- {
185
- blankLine: "never",
186
- prev: [
187
- "block-like",
188
- "block",
189
- "break",
190
- "case",
191
- "cjs-export",
192
- "cjs-import",
193
- "class",
194
- "const",
195
- "continue",
196
- "debugger",
197
- "default",
198
- "directive",
199
- "do",
200
- "empty",
201
- "enum",
202
- "export",
203
- // "expression" /* aren't most of these expressions? */,
204
- "for",
205
- "function-overload",
206
- "function",
207
- "if",
208
- "iife",
209
- "import",
210
- "interface",
211
- "let",
212
- "return",
213
- "switch",
214
- "throw",
215
- "try",
216
- "type",
217
- "using",
218
- "var",
219
- "while",
220
- "with",
221
- ],
222
- next: "*",
223
- },
224
- // #endregion
225
- // #region <Block>
226
- {
227
- blankLine: "always",
228
- prev: [
229
- "block-like",
230
- "block",
231
- "class",
232
- "debugger",
233
- "directive",
234
- "do",
235
- "empty",
236
- "for",
237
- "function-overload",
238
- "function",
239
- "if",
240
- "interface",
241
- "switch",
242
- "try",
243
- "using",
244
- "while",
245
- "with",
246
- ],
247
- next: "*",
248
- },
249
- {
250
- blankLine: "always",
251
- prev: "*",
252
- next: [
253
- "block-like",
254
- "block",
255
- "class",
256
- "debugger",
257
- "directive",
258
- "do",
259
- "empty",
260
- "for",
261
- "function-overload",
262
- "function",
263
- "if",
264
- "interface",
265
- "switch",
266
- "try",
267
- "using",
268
- "while",
269
- "with",
270
- ],
271
- },
272
- // #endregion
273
- // #region Declaration>
274
- {
275
- blankLine: "never",
276
- prev: "interface",
277
- next: [
278
- "class",
279
- "function-overload",
280
- "function",
281
- ],
282
- },
283
- {
284
- blankLine: "never",
285
- prev: "function-overload",
286
- next: [
287
- "function-overload",
288
- "function",
289
- ],
290
- },
291
- // #endregion
292
- // #region <=[]
293
- {
294
- blankLine: "always",
295
- prev: [
296
- "const",
297
- "enum",
298
- "let",
299
- "type",
300
- "var",
301
- ],
302
- next: [
303
- "expression",
304
- "iife",
305
- ],
306
- },
307
- // #endregion
308
- // #region Import[]>
309
- {
310
- blankLine: "always",
311
- prev: [
312
- "cjs-import",
313
- "import",
314
- ],
315
- next: "*",
316
- },
317
- {
318
- blankLine: "never",
319
- prev: [
320
- "cjs-import",
321
- "import",
322
- ],
323
- next: [
324
- "cjs-import",
325
- "import",
326
- ],
327
- },
328
- // #endregion
329
- // #region <Export[]>
330
- {
331
- blankLine: "always",
332
- prev: [
333
- "cjs-export",
334
- "export",
335
- ],
336
- next: "*",
337
- },
338
- {
339
- blankLine: "always",
340
- prev: "*",
341
- next: [
342
- "cjs-export",
343
- "export",
344
- ],
345
- },
346
- {
347
- blankLine: "never",
348
- prev: [
349
- "cjs-export",
350
- "export",
351
- ],
352
- next: [
353
- "cjs-export",
354
- "export",
355
- ],
356
- },
357
- // #endregion
358
- // #region <Return>
359
- {
360
- blankLine: "always",
361
- prev: [
362
- "break",
363
- "continue",
364
- "return",
365
- "throw",
366
- ],
367
- next: "*",
368
- },
369
- {
370
- blankLine: "always",
371
- prev: "*",
372
- next: [
373
- "break",
374
- "continue",
375
- "return",
376
- "throw",
377
- ],
378
- },
379
- // #endregion
380
- ],
181
+ // "stylistic/padding-line-between-statements": State.OFF /* preference | BUG: when in editor, always removes too many lines and ends up crushing two lines into one statement, which then cannot be autofixed */,
381
182
  "stylistic/quote-props": [
382
183
  State.ON,
383
184
  "as-needed",
@@ -171,7 +171,13 @@ export default {
171
171
  allowString: false,
172
172
  },
173
173
  ], /* requires tsconfig: strictNullChecks */
174
- "ts/switch-exhaustiveness-check": State.ON,
174
+ "ts/switch-exhaustiveness-check": [
175
+ State.ON,
176
+ {
177
+ requireDefaultForNonUnion: true,
178
+ considerDefaultExhaustiveForUnions: true,
179
+ },
180
+ ],
175
181
  // "ts/triple-slash-reference": State.OFF /* preference */,
176
182
  // "ts/typedef": State.OFF /* tsconfig: { noImplicitAny, strictPropertyInitialization } */,
177
183
  "ts/unbound-method": State.ON,