@eslinted/defaults 20.4.0-rc.4 → 20.4.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 CHANGED
@@ -15,48 +15,6 @@ declare const _default: {
15
15
  };
16
16
  rules: {
17
17
  js: ({
18
- rules: {
19
- readonly "stylistic/eol-last": import("./rules/state.js").State.WARN;
20
- readonly "stylistic/linebreak-style": import("./rules/state.js").State.WARN;
21
- readonly "stylistic/exp-list-style": readonly [
22
- import("./rules/state.js").State.WARN,
23
- {
24
- readonly singleLine: {
25
- readonly maxItems: 2;
26
- };
27
- readonly overrides: {
28
- readonly ExportNamedDeclaration: {
29
- readonly singleLine: {
30
- readonly maxItems: 1;
31
- };
32
- };
33
- readonly TSInterfaceBody: {
34
- readonly singleLine: {
35
- readonly maxItems: 0;
36
- readonly spacing: "never";
37
- };
38
- };
39
- readonly TSEnumBody: {
40
- readonly singleLine: {
41
- readonly maxItems: 0;
42
- readonly spacing: "never";
43
- };
44
- };
45
- readonly TSTupleType: {
46
- readonly singleLine: {
47
- readonly maxItems: 3;
48
- };
49
- };
50
- readonly TSTypeParameterDeclaration: {
51
- readonly singleLine: {
52
- readonly maxItems: 1;
53
- };
54
- };
55
- };
56
- }
57
- ];
58
- };
59
- } | {
60
18
  rules: {
61
19
  readonly "array-callback-return": readonly [
62
20
  import("./rules/state.js").State.ON,
@@ -343,6 +301,18 @@ declare const _default: {
343
301
  };
344
302
  } | {
345
303
  rules: {
304
+ readonly "stylistic/eol-last": import("./rules/state.js").State.WARN;
305
+ readonly "stylistic/linebreak-style": import("./rules/state.js").State.WARN;
306
+ readonly "stylistic/array-bracket-newline": import("./rules/state.js").State.WARN;
307
+ readonly "stylistic/array-bracket-spacing": import("./rules/state.js").State.WARN;
308
+ readonly "stylistic/array-element-newline": readonly [
309
+ import("./rules/state.js").State.WARN,
310
+ {
311
+ readonly consistent: true;
312
+ readonly multiline: true;
313
+ readonly minItems: 3;
314
+ }
315
+ ];
346
316
  readonly "stylistic/arrow-parens": readonly [
347
317
  import("./rules/state.js").State.WARN,
348
318
  "as-needed"
@@ -368,7 +338,15 @@ declare const _default: {
368
338
  import("./rules/state.js").State.WARN,
369
339
  "property"
370
340
  ];
341
+ readonly "stylistic/function-call-argument-newline": readonly [
342
+ import("./rules/state.js").State.WARN,
343
+ "consistent"
344
+ ];
371
345
  readonly "stylistic/function-call-spacing": import("./rules/state.js").State.WARN;
346
+ readonly "stylistic/function-paren-newline": readonly [
347
+ import("./rules/state.js").State.WARN,
348
+ "multiline-arguments"
349
+ ];
372
350
  readonly "stylistic/generator-star-spacing": import("./rules/state.js").State.WARN;
373
351
  readonly "stylistic/implicit-arrow-linebreak": import("./rules/state.js").State.WARN;
374
352
  readonly "stylistic/indent": readonly [
@@ -431,7 +409,12 @@ declare const _default: {
431
409
  import("./rules/state.js").State.WARN,
432
410
  "always-multiline"
433
411
  ];
434
- readonly "stylistic/newline-per-chained-call": import("./rules/state.js").State.WARN;
412
+ readonly "stylistic/newline-per-chained-call": readonly [
413
+ import("./rules/state.js").State.WARN,
414
+ {
415
+ readonly ignoreChainWithDepth: 1;
416
+ }
417
+ ];
435
418
  readonly "stylistic/no-extra-parens": import("./rules/state.js").State.WARN;
436
419
  readonly "stylistic/no-extra-semi": import("./rules/state.js").State.WARN;
437
420
  readonly "stylistic/no-floating-decimal": import("./rules/state.js").State.WARN;
@@ -460,6 +443,22 @@ declare const _default: {
460
443
  import("./rules/state.js").State.WARN,
461
444
  "below"
462
445
  ];
446
+ readonly "stylistic/object-curly-newline": readonly [
447
+ import("./rules/state.js").State.WARN,
448
+ {
449
+ readonly consistent: true;
450
+ readonly multiline: true;
451
+ readonly minProperties: 3;
452
+ }
453
+ ];
454
+ readonly "stylistic/object-curly-spacing": readonly [
455
+ import("./rules/state.js").State.WARN,
456
+ "always",
457
+ {
458
+ readonly emptyObjects: "never";
459
+ }
460
+ ];
461
+ readonly "stylistic/object-property-newline": import("./rules/state.js").State.WARN;
463
462
  readonly "stylistic/one-var-declaration-per-line": readonly [
464
463
  import("./rules/state.js").State.WARN,
465
464
  "always"
@@ -501,6 +500,7 @@ declare const _default: {
501
500
  readonly named: "never";
502
501
  }
503
502
  ];
503
+ readonly "stylistic/space-in-parens": import("./rules/state.js").State.WARN;
504
504
  readonly "stylistic/space-infix-ops": import("./rules/state.js").State.WARN;
505
505
  readonly "stylistic/space-unary-ops": import("./rules/state.js").State.WARN;
506
506
  readonly "stylistic/spaced-comment": readonly [
@@ -1004,21 +1004,6 @@ declare const _default: {
1004
1004
  readonly skipComments: true;
1005
1005
  }
1006
1006
  ];
1007
- readonly "jsonc/object-curly-newline": readonly [
1008
- import("./rules/state.js").State.WARN,
1009
- {
1010
- readonly consistent: true;
1011
- readonly multiline: true;
1012
- readonly minProperties: 2;
1013
- }
1014
- ];
1015
- readonly "jsonc/object-curly-spacing": readonly [
1016
- import("./rules/state.js").State.WARN,
1017
- "always",
1018
- {
1019
- readonly emptyObjects: "never";
1020
- }
1021
- ];
1022
1007
  readonly "jsonc/object-property-newline": import("./rules/state.js").State.WARN;
1023
1008
  };
1024
1009
  })[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
@@ -1,47 +1,5 @@
1
1
  declare const _default: {
2
2
  js: ({
3
- rules: {
4
- readonly "stylistic/eol-last": import("./state.js").State.WARN;
5
- readonly "stylistic/linebreak-style": import("./state.js").State.WARN;
6
- readonly "stylistic/exp-list-style": readonly [
7
- import("./state.js").State.WARN,
8
- {
9
- readonly singleLine: {
10
- readonly maxItems: 2;
11
- };
12
- readonly overrides: {
13
- readonly ExportNamedDeclaration: {
14
- readonly singleLine: {
15
- readonly maxItems: 1;
16
- };
17
- };
18
- readonly TSInterfaceBody: {
19
- readonly singleLine: {
20
- readonly maxItems: 0;
21
- readonly spacing: "never";
22
- };
23
- };
24
- readonly TSEnumBody: {
25
- readonly singleLine: {
26
- readonly maxItems: 0;
27
- readonly spacing: "never";
28
- };
29
- };
30
- readonly TSTupleType: {
31
- readonly singleLine: {
32
- readonly maxItems: 3;
33
- };
34
- };
35
- readonly TSTypeParameterDeclaration: {
36
- readonly singleLine: {
37
- readonly maxItems: 1;
38
- };
39
- };
40
- };
41
- }
42
- ];
43
- };
44
- } | {
45
3
  rules: {
46
4
  readonly "array-callback-return": readonly [
47
5
  import("./state.js").State.ON,
@@ -328,6 +286,18 @@ declare const _default: {
328
286
  };
329
287
  } | {
330
288
  rules: {
289
+ readonly "stylistic/eol-last": import("./state.js").State.WARN;
290
+ readonly "stylistic/linebreak-style": import("./state.js").State.WARN;
291
+ readonly "stylistic/array-bracket-newline": import("./state.js").State.WARN;
292
+ readonly "stylistic/array-bracket-spacing": import("./state.js").State.WARN;
293
+ readonly "stylistic/array-element-newline": readonly [
294
+ import("./state.js").State.WARN,
295
+ {
296
+ readonly consistent: true;
297
+ readonly multiline: true;
298
+ readonly minItems: 3;
299
+ }
300
+ ];
331
301
  readonly "stylistic/arrow-parens": readonly [
332
302
  import("./state.js").State.WARN,
333
303
  "as-needed"
@@ -353,7 +323,15 @@ declare const _default: {
353
323
  import("./state.js").State.WARN,
354
324
  "property"
355
325
  ];
326
+ readonly "stylistic/function-call-argument-newline": readonly [
327
+ import("./state.js").State.WARN,
328
+ "consistent"
329
+ ];
356
330
  readonly "stylistic/function-call-spacing": import("./state.js").State.WARN;
331
+ readonly "stylistic/function-paren-newline": readonly [
332
+ import("./state.js").State.WARN,
333
+ "multiline-arguments"
334
+ ];
357
335
  readonly "stylistic/generator-star-spacing": import("./state.js").State.WARN;
358
336
  readonly "stylistic/implicit-arrow-linebreak": import("./state.js").State.WARN;
359
337
  readonly "stylistic/indent": readonly [
@@ -416,7 +394,12 @@ declare const _default: {
416
394
  import("./state.js").State.WARN,
417
395
  "always-multiline"
418
396
  ];
419
- readonly "stylistic/newline-per-chained-call": import("./state.js").State.WARN;
397
+ readonly "stylistic/newline-per-chained-call": readonly [
398
+ import("./state.js").State.WARN,
399
+ {
400
+ readonly ignoreChainWithDepth: 1;
401
+ }
402
+ ];
420
403
  readonly "stylistic/no-extra-parens": import("./state.js").State.WARN;
421
404
  readonly "stylistic/no-extra-semi": import("./state.js").State.WARN;
422
405
  readonly "stylistic/no-floating-decimal": import("./state.js").State.WARN;
@@ -445,6 +428,22 @@ declare const _default: {
445
428
  import("./state.js").State.WARN,
446
429
  "below"
447
430
  ];
431
+ readonly "stylistic/object-curly-newline": readonly [
432
+ import("./state.js").State.WARN,
433
+ {
434
+ readonly consistent: true;
435
+ readonly multiline: true;
436
+ readonly minProperties: 3;
437
+ }
438
+ ];
439
+ readonly "stylistic/object-curly-spacing": readonly [
440
+ import("./state.js").State.WARN,
441
+ "always",
442
+ {
443
+ readonly emptyObjects: "never";
444
+ }
445
+ ];
446
+ readonly "stylistic/object-property-newline": import("./state.js").State.WARN;
448
447
  readonly "stylistic/one-var-declaration-per-line": readonly [
449
448
  import("./state.js").State.WARN,
450
449
  "always"
@@ -486,6 +485,7 @@ declare const _default: {
486
485
  readonly named: "never";
487
486
  }
488
487
  ];
488
+ readonly "stylistic/space-in-parens": import("./state.js").State.WARN;
489
489
  readonly "stylistic/space-infix-ops": import("./state.js").State.WARN;
490
490
  readonly "stylistic/space-unary-ops": import("./state.js").State.WARN;
491
491
  readonly "stylistic/spaced-comment": readonly [
@@ -989,21 +989,6 @@ declare const _default: {
989
989
  readonly skipComments: true;
990
990
  }
991
991
  ];
992
- readonly "jsonc/object-curly-newline": readonly [
993
- import("./state.js").State.WARN,
994
- {
995
- readonly consistent: true;
996
- readonly multiline: true;
997
- readonly minProperties: 2;
998
- }
999
- ];
1000
- readonly "jsonc/object-curly-spacing": readonly [
1001
- import("./state.js").State.WARN,
1002
- "always",
1003
- {
1004
- readonly emptyObjects: "never";
1005
- }
1006
- ];
1007
992
  readonly "jsonc/object-property-newline": import("./state.js").State.WARN;
1008
993
  };
1009
994
  })[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBASE"}
@@ -1,46 +1,4 @@
1
1
  declare const _default: ({
2
- rules: {
3
- readonly "stylistic/eol-last": import("./state.js").State.WARN;
4
- readonly "stylistic/linebreak-style": import("./state.js").State.WARN;
5
- readonly "stylistic/exp-list-style": readonly [
6
- import("./state.js").State.WARN,
7
- {
8
- readonly singleLine: {
9
- readonly maxItems: 2;
10
- };
11
- readonly overrides: {
12
- readonly ExportNamedDeclaration: {
13
- readonly singleLine: {
14
- readonly maxItems: 1;
15
- };
16
- };
17
- readonly TSInterfaceBody: {
18
- readonly singleLine: {
19
- readonly maxItems: 0;
20
- readonly spacing: "never";
21
- };
22
- };
23
- readonly TSEnumBody: {
24
- readonly singleLine: {
25
- readonly maxItems: 0;
26
- readonly spacing: "never";
27
- };
28
- };
29
- readonly TSTupleType: {
30
- readonly singleLine: {
31
- readonly maxItems: 3;
32
- };
33
- };
34
- readonly TSTypeParameterDeclaration: {
35
- readonly singleLine: {
36
- readonly maxItems: 1;
37
- };
38
- };
39
- };
40
- }
41
- ];
42
- };
43
- } | {
44
2
  rules: {
45
3
  readonly "array-callback-return": readonly [
46
4
  import("./state.js").State.ON,
@@ -327,6 +285,18 @@ declare const _default: ({
327
285
  };
328
286
  } | {
329
287
  rules: {
288
+ readonly "stylistic/eol-last": import("./state.js").State.WARN;
289
+ readonly "stylistic/linebreak-style": import("./state.js").State.WARN;
290
+ readonly "stylistic/array-bracket-newline": import("./state.js").State.WARN;
291
+ readonly "stylistic/array-bracket-spacing": import("./state.js").State.WARN;
292
+ readonly "stylistic/array-element-newline": readonly [
293
+ import("./state.js").State.WARN,
294
+ {
295
+ readonly consistent: true;
296
+ readonly multiline: true;
297
+ readonly minItems: 3;
298
+ }
299
+ ];
330
300
  readonly "stylistic/arrow-parens": readonly [
331
301
  import("./state.js").State.WARN,
332
302
  "as-needed"
@@ -352,7 +322,15 @@ declare const _default: ({
352
322
  import("./state.js").State.WARN,
353
323
  "property"
354
324
  ];
325
+ readonly "stylistic/function-call-argument-newline": readonly [
326
+ import("./state.js").State.WARN,
327
+ "consistent"
328
+ ];
355
329
  readonly "stylistic/function-call-spacing": import("./state.js").State.WARN;
330
+ readonly "stylistic/function-paren-newline": readonly [
331
+ import("./state.js").State.WARN,
332
+ "multiline-arguments"
333
+ ];
356
334
  readonly "stylistic/generator-star-spacing": import("./state.js").State.WARN;
357
335
  readonly "stylistic/implicit-arrow-linebreak": import("./state.js").State.WARN;
358
336
  readonly "stylistic/indent": readonly [
@@ -415,7 +393,12 @@ declare const _default: ({
415
393
  import("./state.js").State.WARN,
416
394
  "always-multiline"
417
395
  ];
418
- readonly "stylistic/newline-per-chained-call": import("./state.js").State.WARN;
396
+ readonly "stylistic/newline-per-chained-call": readonly [
397
+ import("./state.js").State.WARN,
398
+ {
399
+ readonly ignoreChainWithDepth: 1;
400
+ }
401
+ ];
419
402
  readonly "stylistic/no-extra-parens": import("./state.js").State.WARN;
420
403
  readonly "stylistic/no-extra-semi": import("./state.js").State.WARN;
421
404
  readonly "stylistic/no-floating-decimal": import("./state.js").State.WARN;
@@ -444,6 +427,22 @@ declare const _default: ({
444
427
  import("./state.js").State.WARN,
445
428
  "below"
446
429
  ];
430
+ readonly "stylistic/object-curly-newline": readonly [
431
+ import("./state.js").State.WARN,
432
+ {
433
+ readonly consistent: true;
434
+ readonly multiline: true;
435
+ readonly minProperties: 3;
436
+ }
437
+ ];
438
+ readonly "stylistic/object-curly-spacing": readonly [
439
+ import("./state.js").State.WARN,
440
+ "always",
441
+ {
442
+ readonly emptyObjects: "never";
443
+ }
444
+ ];
445
+ readonly "stylistic/object-property-newline": import("./state.js").State.WARN;
447
446
  readonly "stylistic/one-var-declaration-per-line": readonly [
448
447
  import("./state.js").State.WARN,
449
448
  "always"
@@ -485,6 +484,7 @@ declare const _default: ({
485
484
  readonly named: "never";
486
485
  }
487
486
  ];
487
+ readonly "stylistic/space-in-parens": import("./state.js").State.WARN;
488
488
  readonly "stylistic/space-infix-ops": import("./state.js").State.WARN;
489
489
  readonly "stylistic/space-unary-ops": import("./state.js").State.WARN;
490
490
  readonly "stylistic/spaced-comment": readonly [
@@ -1 +1 @@
1
- {"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../src/rules/js.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
1
+ {"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../src/rules/js.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
package/dist/rules/js.js CHANGED
@@ -1,8 +1,6 @@
1
- import global from "./global.js";
2
1
  import eslint from "./js.eslint.js";
3
2
  import stylistic from "./js.stylistic.js";
4
3
  export default [
5
- global,
6
4
  eslint,
7
5
  stylistic,
8
6
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"js.js","sourceRoot":"","sources":["../../src/rules/js.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,SAAS,MAAM,gBAAgB,CAAC;AAEvC,eAAe;IACb,MAAM;IACN,MAAM;IACN,SAAS;CACV,CAAC"}
1
+ {"version":3,"file":"js.js","sourceRoot":"","sources":["../../src/rules/js.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,SAAS,MAAM,gBAAgB,CAAC;AAEvC,eAAe;IACb,MAAM;IACN,SAAS;CACV,CAAC"}
@@ -1,6 +1,18 @@
1
1
  import { State } from "./state.js";
2
2
  declare const _default: {
3
3
  rules: {
4
+ readonly "stylistic/eol-last": State.WARN;
5
+ readonly "stylistic/linebreak-style": State.WARN;
6
+ readonly "stylistic/array-bracket-newline": State.WARN;
7
+ readonly "stylistic/array-bracket-spacing": State.WARN;
8
+ readonly "stylistic/array-element-newline": readonly [
9
+ State.WARN,
10
+ {
11
+ readonly consistent: true;
12
+ readonly multiline: true;
13
+ readonly minItems: 3;
14
+ }
15
+ ];
4
16
  readonly "stylistic/arrow-parens": readonly [
5
17
  State.WARN,
6
18
  "as-needed"
@@ -26,7 +38,15 @@ declare const _default: {
26
38
  State.WARN,
27
39
  "property"
28
40
  ];
41
+ readonly "stylistic/function-call-argument-newline": readonly [
42
+ State.WARN,
43
+ "consistent"
44
+ ];
29
45
  readonly "stylistic/function-call-spacing": State.WARN;
46
+ readonly "stylistic/function-paren-newline": readonly [
47
+ State.WARN,
48
+ "multiline-arguments"
49
+ ];
30
50
  readonly "stylistic/generator-star-spacing": State.WARN;
31
51
  readonly "stylistic/implicit-arrow-linebreak": State.WARN;
32
52
  readonly "stylistic/indent": readonly [
@@ -89,7 +109,12 @@ declare const _default: {
89
109
  State.WARN,
90
110
  "always-multiline"
91
111
  ];
92
- readonly "stylistic/newline-per-chained-call": State.WARN;
112
+ readonly "stylistic/newline-per-chained-call": readonly [
113
+ State.WARN,
114
+ {
115
+ readonly ignoreChainWithDepth: 1;
116
+ }
117
+ ];
93
118
  readonly "stylistic/no-extra-parens": State.WARN;
94
119
  readonly "stylistic/no-extra-semi": State.WARN;
95
120
  readonly "stylistic/no-floating-decimal": State.WARN;
@@ -118,6 +143,22 @@ declare const _default: {
118
143
  State.WARN,
119
144
  "below"
120
145
  ];
146
+ readonly "stylistic/object-curly-newline": readonly [
147
+ State.WARN,
148
+ {
149
+ readonly consistent: true;
150
+ readonly multiline: true;
151
+ readonly minProperties: 3;
152
+ }
153
+ ];
154
+ readonly "stylistic/object-curly-spacing": readonly [
155
+ State.WARN,
156
+ "always",
157
+ {
158
+ readonly emptyObjects: "never";
159
+ }
160
+ ];
161
+ readonly "stylistic/object-property-newline": State.WARN;
121
162
  readonly "stylistic/one-var-declaration-per-line": readonly [
122
163
  State.WARN,
123
164
  "always"
@@ -159,6 +200,7 @@ declare const _default: {
159
200
  readonly named: "never";
160
201
  }
161
202
  ];
203
+ readonly "stylistic/space-in-parens": State.WARN;
162
204
  readonly "stylistic/space-infix-ops": State.WARN;
163
205
  readonly "stylistic/space-unary-ops": State.WARN;
164
206
  readonly "stylistic/spaced-comment": readonly [
@@ -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,wBA+OE"}
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,wBAmRE"}
@@ -1,5 +1,17 @@
1
1
  export default {
2
2
  rules: {
3
+ "stylistic/eol-last": 1,
4
+ "stylistic/linebreak-style": 1,
5
+ "stylistic/array-bracket-newline": 1,
6
+ "stylistic/array-bracket-spacing": 1,
7
+ "stylistic/array-element-newline": [
8
+ 1,
9
+ {
10
+ consistent: true,
11
+ multiline: true,
12
+ minItems: 3,
13
+ },
14
+ ],
3
15
  "stylistic/arrow-parens": [
4
16
  1,
5
17
  "as-needed",
@@ -25,7 +37,15 @@ export default {
25
37
  1,
26
38
  "property",
27
39
  ],
40
+ "stylistic/function-call-argument-newline": [
41
+ 1,
42
+ "consistent",
43
+ ],
28
44
  "stylistic/function-call-spacing": 1,
45
+ "stylistic/function-paren-newline": [
46
+ 1,
47
+ "multiline-arguments",
48
+ ],
29
49
  "stylistic/generator-star-spacing": 1,
30
50
  "stylistic/implicit-arrow-linebreak": 1,
31
51
  "stylistic/indent": [
@@ -88,7 +108,12 @@ export default {
88
108
  1,
89
109
  "always-multiline",
90
110
  ],
91
- "stylistic/newline-per-chained-call": 1,
111
+ "stylistic/newline-per-chained-call": [
112
+ 1,
113
+ {
114
+ ignoreChainWithDepth: 1,
115
+ },
116
+ ],
92
117
  "stylistic/no-extra-parens": 1,
93
118
  "stylistic/no-extra-semi": 1,
94
119
  "stylistic/no-floating-decimal": 1,
@@ -117,6 +142,22 @@ export default {
117
142
  1,
118
143
  "below",
119
144
  ],
145
+ "stylistic/object-curly-newline": [
146
+ 1,
147
+ {
148
+ consistent: true,
149
+ multiline: true,
150
+ minProperties: 3,
151
+ },
152
+ ],
153
+ "stylistic/object-curly-spacing": [
154
+ 1,
155
+ "always",
156
+ {
157
+ emptyObjects: "never",
158
+ },
159
+ ],
160
+ "stylistic/object-property-newline": 1,
120
161
  "stylistic/one-var-declaration-per-line": [
121
162
  1,
122
163
  "always",
@@ -158,6 +199,7 @@ export default {
158
199
  named: "never",
159
200
  },
160
201
  ],
202
+ "stylistic/space-in-parens": 1,
161
203
  "stylistic/space-infix-ops": 1,
162
204
  "stylistic/space-unary-ops": 1,
163
205
  "stylistic/spaced-comment": [
@@ -1 +1 @@
1
- {"version":3,"file":"js.stylistic.js","sourceRoot":"","sources":["../../src/rules/js.stylistic.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAIL,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,yBAAyB,GAAY;QACrC,uBAAuB,GAAY;QACnC,qCAAqC,GAAY;QACjD,yBAAyB,GAAY;QACrC,wBAAwB,EAAE;;YAExB,UAAU;SACX;QAGD,iCAAiC,GAAY;QAE7C,kCAAkC,GAAY;QAC9C,oCAAoC,GAAY;QAChD,kBAAkB,EAAE;;YAElB,CAAC;YACD;gBACE,kBAAkB,EAAE,CAAC;gBACrB,kBAAkB,EAAE;oBAClB,KAAK,EAAE,CAAC;oBACR,GAAG,EAAE,CAAC;oBACN,OAAO,EAAE,CAAC;iBACX;gBACD,aAAa,EAAE,CAAC;gBAChB,wBA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wBAAwB,EAAE,IAAI;aAC/B;SACF;QACD,sBAAsB,GAAY;QAClC,8BAA8B,GAAY;KAClC;CACX,CAAC"}
1
+ {"version":3,"file":"js.stylistic.js","sourceRoot":"","sources":["../../src/rules/js.stylistic.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAEL,oBAAoB,GAAY;QAChC,2BAA2B,GAAY;QAGvC,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,yBAAyB,GAAY;QACrC,uBAAuB,GAAY;QACnC,qCAAqC,GAAY;QACjD,yBAAyB,GAAY;QACrC,wBAAwB,EAAE;;YAExB,UAAU;SACX;QAED,0CAA0C,EAAE;;YAE1C,YAAY;SACb;QACD,iCAAiC,GAAY;QAC7C,kCAAkC,EAAE;;YAElC,qBAAqB;SACtB;QACD,kCAAkC,GAAY;QAC9C,oCAAoC,GAAY;QAChD,kBAAkB,EAAE;;YAElB,CAAC;YACD;gBACE,kBAAkB,EAAE,CAAC;gBACrB,kBAAkB,EAAE;oBAClB,KAAK,EAAE,CAAC;oBACR,GAAG,EAAE,CAAC;oBACN,OAAO,EAAE,CAAC;iBACX;gBACD,aAAa,EAAE,CAAC;gBAChB,wBAAwB,EAAE,IAAI;aAC/B;SACF;QACD,6BAA6B,EAAE;;YAE7B,CAAC;SACF;QACD,uBAAuB,GAAY;QACnC,2BAA2B,GAAY;QAIvC,uCAAuC,EAAE;;YAEvC;gBACE,OAAO,EAAE;oBACP;wBACE,IAAI,EAA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ACF;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"}
@@ -26,21 +26,6 @@ declare const _default: ({
26
26
  readonly skipComments: true;
27
27
  }
28
28
  ];
29
- readonly "jsonc/object-curly-newline": readonly [
30
- import("../state.js").State.WARN,
31
- {
32
- readonly consistent: true;
33
- readonly multiline: true;
34
- readonly minProperties: 2;
35
- }
36
- ];
37
- readonly "jsonc/object-curly-spacing": readonly [
38
- import("../state.js").State.WARN,
39
- "always",
40
- {
41
- readonly emptyObjects: "never";
42
- }
43
- ];
44
29
  readonly "jsonc/object-property-newline": import("../state.js").State.WARN;
45
30
  };
46
31
  })[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/json/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
@@ -22,21 +22,6 @@ declare const _default: {
22
22
  readonly skipComments: true;
23
23
  }
24
24
  ];
25
- readonly "jsonc/object-curly-newline": readonly [
26
- State.WARN,
27
- {
28
- readonly consistent: true;
29
- readonly multiline: true;
30
- readonly minProperties: 2;
31
- }
32
- ];
33
- readonly "jsonc/object-curly-spacing": readonly [
34
- State.WARN,
35
- "always",
36
- {
37
- readonly emptyObjects: "never";
38
- }
39
- ];
40
25
  readonly "jsonc/object-property-newline": State.WARN;
41
26
  };
42
27
  };
@@ -1 +1 @@
1
- {"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../src/rules/json/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;AAGjC,wBAwEE"}
1
+ {"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../src/rules/json/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;AAGjC,wBA2DE"}
@@ -21,21 +21,6 @@ export default {
21
21
  skipComments: true,
22
22
  },
23
23
  ],
24
- "jsonc/object-curly-newline": [
25
- 1,
26
- {
27
- consistent: true,
28
- multiline: true,
29
- minProperties: 2,
30
- },
31
- ],
32
- "jsonc/object-curly-spacing": [
33
- 1,
34
- "always",
35
- {
36
- emptyObjects: "never",
37
- },
38
- ],
39
24
  "jsonc/object-property-newline": 1,
40
25
  },
41
26
  };
@@ -1 +1 @@
1
- {"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../src/rules/json/jsonc.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAML,mBAAmB,GAAU;QAmB7B,6BAA6B,GAAY;QACzC,6BAA6B,EAAE;;YAE7B,YAAY;SACb;QACD,oBAAoB,GAAU;QAC9B,mBAAmB,GAAY;QAC/B,cAAc,EAAE;;YAEd,CAAC;SACF;QACD,mBAAmB,GAAY;QAC/B,oBAAoB,GAAU;QAE9B,+BAA+B,EAAE;;YAE/B;gBACE,WAAW,EAAE,IAAI;gBACjB,YAAY,EAAE,IAAI;aACnB;SACF;QAMD,4BAA4B,EAAE;;YAE5B;gBACE,UAAU,EAAE,IAAI;gBAChB,SAAS,EAAE,IAAI;gBACf,aAAa,EAAE,CAAC;aACjB;SACF;QACD,4BAA4B,EAAE;;YAE5B,QAAQ;YACR;gBACE,YAAY,EAAE,OAAO;aACtB;SACF;QACD,+BAA+B,GAAY;KAInC;CACX,CAAC"}
1
+ {"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../src/rules/json/jsonc.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAML,mBAAmB,GAAU;QAmB7B,6BAA6B,GAAY;QACzC,6BAA6B,EAAE;;YAE7B,YAAY;SACb;QACD,oBAAoB,GAAU;QAC9B,mBAAmB,GAAY;QAC/B,cAAc,EAAE;;YAEd,CAAC;SACF;QACD,mBAAmB,GAAY;QAC/B,oBAAoB,GAAU;QAE9B,+BAA+B,EAAE;;YAE/B;gBACE,WAAW,EAAE,IAAI;gBACjB,YAAY,EAAE,IAAI;aACnB;SACF;QAQD,+BAA+B,GAAY;KAInC;CACX,CAAC"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "$schema": "https://json.schemastore.org/package",
4
4
  "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
5
5
  "name": "@eslinted/defaults",
6
- "version": "20.4.0-rc.4",
6
+ "version": "20.4.0",
7
7
  "repository": "github:jimmy-zhening-luo/linted-defaults",
8
8
  "description": "Default scopes for `linted`",
9
9
  "keywords": [],
@@ -3,9 +3,21 @@ import { State } from "./state";
3
3
  // DOC: https://eslint.style/rules
4
4
  export default {
5
5
  rules: {
6
- // "stylistic/array-bracket-newline": State.OFF /* @global stylistic/list-style */,
7
- // "stylistic/array-bracket-spacing": State.OFF /* @global stylistic/list-style */,
8
- // "stylistic/array-element-newline": State.OFF /* @global stylistic/list-style */,
6
+ // "global"
7
+ "stylistic/eol-last": State.WARN,
8
+ "stylistic/linebreak-style": State.WARN,
9
+ // end
10
+
11
+ "stylistic/array-bracket-newline": State.WARN,
12
+ "stylistic/array-bracket-spacing": State.WARN,
13
+ "stylistic/array-element-newline": [
14
+ State.WARN,
15
+ {
16
+ consistent: true,
17
+ multiline: true,
18
+ minItems: 3,
19
+ },
20
+ ],
9
21
  "stylistic/arrow-parens": [
10
22
  State.WARN,
11
23
  "as-needed",
@@ -32,9 +44,15 @@ export default {
32
44
  "property",
33
45
  ],
34
46
  // "stylistic/eol-last": State.OFF /* @global */,
35
- // "stylistic/function-call-argument-newline": State.OFF /* @global stylistic/list-style */,
47
+ "stylistic/function-call-argument-newline": [
48
+ State.WARN,
49
+ "consistent",
50
+ ],
36
51
  "stylistic/function-call-spacing": State.WARN,
37
- // "stylistic/function-paren-newline": State.OFF /* @global stylistic/list-style | BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290 */,
52
+ "stylistic/function-paren-newline": [
53
+ State.WARN,
54
+ "multiline-arguments",
55
+ ] /* BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290 */,
38
56
  "stylistic/generator-star-spacing": State.WARN,
39
57
  "stylistic/implicit-arrow-linebreak": State.WARN,
40
58
  "stylistic/indent": [
@@ -102,7 +120,12 @@ export default {
102
120
  "always-multiline",
103
121
  ],
104
122
  // "stylistic/new-parens": State.OFF,
105
- "stylistic/newline-per-chained-call": State.WARN,
123
+ "stylistic/newline-per-chained-call": [
124
+ State.WARN,
125
+ {
126
+ ignoreChainWithDepth: 1,
127
+ },
128
+ ],
106
129
  // "stylistic/no-confusing-arrow": State.OFF,
107
130
  "stylistic/no-extra-parens": State.WARN,
108
131
  "stylistic/no-extra-semi": State.WARN,
@@ -133,9 +156,22 @@ export default {
133
156
  State.WARN,
134
157
  "below",
135
158
  ],
136
- // "stylistic/object-curly-newline": State.OFF /* @global stylistic/list-style */,
137
- // "stylistic/object-curly-spacing": State.OFF /* @global stylistic/list-style */,
138
- // "stylistic/object-property-newline": State.OFF /* @global stylistic/list-style */,
159
+ "stylistic/object-curly-newline": [
160
+ State.WARN,
161
+ {
162
+ consistent: true,
163
+ multiline: true,
164
+ minProperties: 3,
165
+ },
166
+ ],
167
+ "stylistic/object-curly-spacing": [
168
+ State.WARN,
169
+ "always",
170
+ {
171
+ emptyObjects: "never",
172
+ },
173
+ ],
174
+ "stylistic/object-property-newline": State.WARN,
139
175
  "stylistic/one-var-declaration-per-line": [
140
176
  State.WARN,
141
177
  "always",
@@ -178,7 +214,7 @@ export default {
178
214
  named: "never",
179
215
  },
180
216
  ],
181
- // "stylistic/space-in-parens": State.OFF /* @global stylistic/list-style */,
217
+ "stylistic/space-in-parens": State.WARN,
182
218
  "stylistic/space-infix-ops": State.WARN,
183
219
  "stylistic/space-unary-ops": State.WARN,
184
220
  "stylistic/spaced-comment": [
package/src/rules/js.ts CHANGED
@@ -1,9 +1,7 @@
1
- import global from "./global";
2
1
  import eslint from "./js.eslint";
3
2
  import stylistic from "./js.stylistic";
4
3
 
5
4
  export default [
6
- global,
7
5
  eslint,
8
6
  stylistic,
9
7
  ];
@@ -53,21 +53,8 @@ export default {
53
53
  // "jsonc/no-octal": State.OFF,
54
54
  // "jsonc/no-sparse-arrays": State.OFF,
55
55
  // "jsonc/no-useless-escape": State.OFF,
56
- "jsonc/object-curly-newline": [
57
- State.WARN,
58
- {
59
- consistent: true,
60
- multiline: true,
61
- minProperties: 2,
62
- },
63
- ],
64
- "jsonc/object-curly-spacing": [
65
- State.WARN,
66
- "always",
67
- {
68
- emptyObjects: "never",
69
- },
70
- ],
56
+ // "jsonc/object-curly-newline": State.OFF /* buggy */,
57
+ // "jsonc/object-curly-spacing": State.OFF /* buggy */,
71
58
  "jsonc/object-property-newline": State.WARN,
72
59
  // "jsonc/quote-props": State.OFF,
73
60
  // "jsonc/quotes": State.OFF,
@@ -1,46 +0,0 @@
1
- import { State } from "./state.js";
2
- declare const _default: {
3
- rules: {
4
- readonly "stylistic/eol-last": State.WARN;
5
- readonly "stylistic/linebreak-style": State.WARN;
6
- readonly "stylistic/exp-list-style": readonly [
7
- State.WARN,
8
- {
9
- readonly singleLine: {
10
- readonly maxItems: 2;
11
- };
12
- readonly overrides: {
13
- readonly ExportNamedDeclaration: {
14
- readonly singleLine: {
15
- readonly maxItems: 1;
16
- };
17
- };
18
- readonly TSInterfaceBody: {
19
- readonly singleLine: {
20
- readonly maxItems: 0;
21
- readonly spacing: "never";
22
- };
23
- };
24
- readonly TSEnumBody: {
25
- readonly singleLine: {
26
- readonly maxItems: 0;
27
- readonly spacing: "never";
28
- };
29
- };
30
- readonly TSTupleType: {
31
- readonly singleLine: {
32
- readonly maxItems: 3;
33
- };
34
- };
35
- readonly TSTypeParameterDeclaration: {
36
- readonly singleLine: {
37
- readonly maxItems: 1;
38
- };
39
- };
40
- };
41
- }
42
- ];
43
- };
44
- };
45
- export default _default;
46
- //# sourceMappingURL=global.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/rules/global.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhC,wBA0CE"}
@@ -1,44 +0,0 @@
1
- export default {
2
- rules: {
3
- "stylistic/eol-last": 1,
4
- "stylistic/linebreak-style": 1,
5
- "stylistic/exp-list-style": [
6
- 1,
7
- {
8
- singleLine: {
9
- maxItems: 2,
10
- },
11
- overrides: {
12
- ExportNamedDeclaration: {
13
- singleLine: {
14
- maxItems: 1,
15
- },
16
- },
17
- TSInterfaceBody: {
18
- singleLine: {
19
- maxItems: 0,
20
- spacing: "never",
21
- },
22
- },
23
- TSEnumBody: {
24
- singleLine: {
25
- maxItems: 0,
26
- spacing: "never",
27
- },
28
- },
29
- TSTupleType: {
30
- singleLine: {
31
- maxItems: 3,
32
- },
33
- },
34
- TSTypeParameterDeclaration: {
35
- singleLine: {
36
- maxItems: 1,
37
- },
38
- },
39
- },
40
- },
41
- ],
42
- },
43
- };
44
- //# sourceMappingURL=global.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/rules/global.ts"],"names":[],"mappings":"AAEA,eAAe;IACb,KAAK,EAAE;QACL,oBAAoB,GAAY;QAChC,2BAA2B,GAAY;QACvC,0BAA0B,EAAE;;YAE1B;gBACE,UAAU,EAAE;oBACV,QAAQ,EAAE,CAAC;iBACZ;gBACD,SAAS,EAAE;oBACT,sBAAsB,EAAE;wBACtB,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;yBACZ;qBACF;oBACD,eAAe,EAAE;wBACf,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;4BACX,OAAO,EAAE,OAAO;yBACjB;qBACF;oBACD,UAAU,EAAE;wBACV,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;4BACX,OAAO,EAAE,OAAO;yBACjB;qBACF;oBACD,WAAW,EAAE;wBACX,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;yBACZ;qBACF;oBACD,0BAA0B,EAAE;wBAC1B,UAAU,EAAE;4BACV,QAAQ,EAAE,CAAC;yBACZ;qBACF;iBACF;aACF;SACF;KACO;CACX,CAAC"}
@@ -1,45 +0,0 @@
1
- import { State } from "./state";
2
-
3
- export default {
4
- rules: {
5
- "stylistic/eol-last": State.WARN,
6
- "stylistic/linebreak-style": State.WARN,
7
- "stylistic/exp-list-style": [
8
- State.WARN,
9
- {
10
- singleLine: {
11
- maxItems: 2,
12
- },
13
- overrides: {
14
- ExportNamedDeclaration: {
15
- singleLine: {
16
- maxItems: 1,
17
- },
18
- },
19
- TSInterfaceBody: {
20
- singleLine: {
21
- maxItems: 0,
22
- spacing: "never",
23
- },
24
- },
25
- TSEnumBody: {
26
- singleLine: {
27
- maxItems: 0,
28
- spacing: "never",
29
- },
30
- },
31
- TSTupleType: {
32
- singleLine: {
33
- maxItems: 3,
34
- },
35
- },
36
- TSTypeParameterDeclaration: {
37
- singleLine: {
38
- maxItems: 1,
39
- },
40
- },
41
- },
42
- },
43
- ],
44
- } as const,
45
- };