@eslinted/defaults 19.0.0 → 19.0.2

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.
@@ -1,4 +1,4 @@
1
- declare const _default: {
1
+ declare const _default: ({
2
2
  rules: {
3
3
  readonly "array-callback-return": readonly [
4
4
  import("./state.js").State.ON,
@@ -286,6 +286,268 @@ declare const _default: {
286
286
  readonly yoda: import("./state.js").State.WARN;
287
287
  readonly "unicode-bom": import("./state.js").State.WARN;
288
288
  };
289
- }[];
289
+ } | {
290
+ rules: {
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
+ ];
301
+ readonly "stylistic/arrow-parens": readonly [
302
+ import("./state.js").State.WARN,
303
+ "as-needed"
304
+ ];
305
+ readonly "stylistic/arrow-spacing": import("./state.js").State.WARN;
306
+ readonly "stylistic/block-spacing": import("./state.js").State.WARN;
307
+ readonly "stylistic/brace-style": readonly [
308
+ import("./state.js").State.WARN,
309
+ "stroustrup",
310
+ {
311
+ readonly allowSingleLine: true;
312
+ }
313
+ ];
314
+ readonly "stylistic/comma-dangle": readonly [
315
+ import("./state.js").State.WARN,
316
+ "always-multiline"
317
+ ];
318
+ readonly "stylistic/comma-spacing": import("./state.js").State.WARN;
319
+ readonly "stylistic/comma-style": import("./state.js").State.WARN;
320
+ readonly "stylistic/computed-property-spacing": import("./state.js").State.WARN;
321
+ readonly "stylistic/curly-newline": import("./state.js").State.WARN;
322
+ readonly "stylistic/dot-location": readonly [
323
+ import("./state.js").State.WARN,
324
+ "property"
325
+ ];
326
+ readonly "stylistic/eol-last": import("./state.js").State.WARN;
327
+ readonly "stylistic/function-call-argument-newline": readonly [
328
+ import("./state.js").State.WARN,
329
+ "consistent"
330
+ ];
331
+ readonly "stylistic/function-call-spacing": import("./state.js").State.WARN;
332
+ readonly "stylistic/function-paren-newline": readonly [
333
+ import("./state.js").State.WARN,
334
+ "multiline-arguments"
335
+ ];
336
+ readonly "stylistic/generator-star-spacing": import("./state.js").State.WARN;
337
+ readonly "stylistic/implicit-arrow-linebreak": import("./state.js").State.WARN;
338
+ readonly "stylistic/indent": readonly [
339
+ import("./state.js").State.WARN,
340
+ 2,
341
+ {
342
+ readonly assignmentOperator: 0;
343
+ readonly VariableDeclarator: {
344
+ readonly var: 0;
345
+ readonly let: 0;
346
+ readonly const: 0;
347
+ };
348
+ readonly outerIIFEBody: 0;
349
+ readonly offsetTernaryExpressions: true;
350
+ }
351
+ ];
352
+ readonly "stylistic/indent-binary-ops": readonly [
353
+ import("./state.js").State.WARN,
354
+ 2
355
+ ];
356
+ readonly "stylistic/key-spacing": import("./state.js").State.WARN;
357
+ readonly "stylistic/keyword-spacing": import("./state.js").State.WARN;
358
+ readonly "stylistic/linebreak-style": import("./state.js").State.WARN;
359
+ readonly "stylistic/lines-between-class-members": readonly [
360
+ import("./state.js").State.WARN,
361
+ {
362
+ readonly enforce: readonly [
363
+ {
364
+ readonly prev: "field";
365
+ readonly next: "field";
366
+ readonly blankLine: "never";
367
+ },
368
+ {
369
+ readonly prev: "field";
370
+ readonly next: "method";
371
+ readonly blankLine: "always";
372
+ },
373
+ {
374
+ readonly prev: "method";
375
+ readonly next: "*";
376
+ readonly blankLine: "always";
377
+ }
378
+ ];
379
+ }
380
+ ];
381
+ readonly "stylistic/max-len": readonly [
382
+ import("./state.js").State.WARN,
383
+ {
384
+ readonly code: 300;
385
+ readonly ignoreComments: true;
386
+ readonly ignoreTrailingComments: true;
387
+ readonly ignoreUrls: true;
388
+ readonly ignoreStrings: true;
389
+ readonly ignoreTemplateLiterals: true;
390
+ readonly ignoreRegExpLiterals: true;
391
+ }
392
+ ];
393
+ readonly "stylistic/max-statements-per-line": import("./state.js").State.WARN;
394
+ readonly "stylistic/member-delimiter-style": import("./state.js").State.WARN;
395
+ readonly "stylistic/multiline-ternary": readonly [
396
+ import("./state.js").State.WARN,
397
+ "always-multiline"
398
+ ];
399
+ readonly "stylistic/newline-per-chained-call": import("./state.js").State.WARN;
400
+ readonly "stylistic/no-extra-parens": import("./state.js").State.WARN;
401
+ readonly "stylistic/no-extra-semi": import("./state.js").State.WARN;
402
+ readonly "stylistic/no-floating-decimal": import("./state.js").State.WARN;
403
+ readonly "stylistic/no-mixed-spaces-and-tabs": import("./state.js").State.WARN;
404
+ readonly "stylistic/no-multi-spaces": readonly [
405
+ import("./state.js").State.WARN,
406
+ {
407
+ readonly exceptions: {
408
+ readonly Property: false;
409
+ readonly ImportAttributes: false;
410
+ };
411
+ }
412
+ ];
413
+ readonly "stylistic/no-multiple-empty-lines": readonly [
414
+ import("./state.js").State.WARN,
415
+ {
416
+ readonly max: 1;
417
+ readonly maxBOF: 0;
418
+ readonly maxEOF: 0;
419
+ }
420
+ ];
421
+ readonly "stylistic/no-tabs": import("./state.js").State.WARN;
422
+ readonly "stylistic/no-trailing-spaces": import("./state.js").State.WARN;
423
+ readonly "stylistic/no-whitespace-before-property": import("./state.js").State.WARN;
424
+ readonly "stylistic/nonblock-statement-body-position": readonly [
425
+ import("./state.js").State.WARN,
426
+ "below"
427
+ ];
428
+ readonly "stylistic/object-curly-newline": readonly [
429
+ import("./state.js").State.WARN,
430
+ {
431
+ readonly consistent: true;
432
+ readonly multiline: true;
433
+ readonly minProperties: 3;
434
+ }
435
+ ];
436
+ readonly "stylistic/object-curly-spacing": readonly [
437
+ import("./state.js").State.WARN,
438
+ "always",
439
+ {
440
+ readonly emptyObjects: "never";
441
+ }
442
+ ];
443
+ readonly "stylistic/object-property-newline": import("./state.js").State.WARN;
444
+ readonly "stylistic/one-var-declaration-per-line": readonly [
445
+ import("./state.js").State.WARN,
446
+ "always"
447
+ ];
448
+ readonly "stylistic/operator-linebreak": readonly [
449
+ import("./state.js").State.WARN,
450
+ "before"
451
+ ];
452
+ readonly "stylistic/padded-blocks": readonly [
453
+ import("./state.js").State.WARN,
454
+ "never",
455
+ {
456
+ readonly allowSingleLineBlocks: true;
457
+ }
458
+ ];
459
+ readonly "stylistic/quote-props": readonly [
460
+ import("./state.js").State.WARN,
461
+ "as-needed",
462
+ {
463
+ readonly keywords: true;
464
+ }
465
+ ];
466
+ readonly "stylistic/quotes": readonly [
467
+ import("./state.js").State.WARN,
468
+ "double",
469
+ {
470
+ readonly avoidEscape: true;
471
+ readonly allowTemplateLiterals: "always";
472
+ }
473
+ ];
474
+ readonly "stylistic/rest-spread-spacing": import("./state.js").State.WARN;
475
+ readonly "stylistic/semi": import("./state.js").State.WARN;
476
+ readonly "stylistic/semi-spacing": import("./state.js").State.WARN;
477
+ readonly "stylistic/semi-style": import("./state.js").State.WARN;
478
+ readonly "stylistic/space-before-blocks": import("./state.js").State.WARN;
479
+ readonly "stylistic/space-before-function-paren": readonly [
480
+ import("./state.js").State.WARN,
481
+ {
482
+ readonly named: "never";
483
+ }
484
+ ];
485
+ readonly "stylistic/space-in-parens": import("./state.js").State.WARN;
486
+ readonly "stylistic/space-infix-ops": import("./state.js").State.WARN;
487
+ readonly "stylistic/space-unary-ops": import("./state.js").State.WARN;
488
+ readonly "stylistic/spaced-comment": readonly [
489
+ import("./state.js").State.WARN,
490
+ "always",
491
+ {
492
+ readonly line: {
493
+ readonly exceptions: readonly [
494
+ "/",
495
+ "-",
496
+ "+",
497
+ "="
498
+ ];
499
+ readonly markers: readonly [
500
+ "!",
501
+ "@",
502
+ "#",
503
+ "/",
504
+ "#region",
505
+ "#endregion",
506
+ "#part",
507
+ "/#region",
508
+ "/#endregion",
509
+ "/#part"
510
+ ];
511
+ };
512
+ readonly block: {
513
+ readonly exceptions: readonly [
514
+ "*"
515
+ ];
516
+ readonly markers: readonly [
517
+ "*"
518
+ ];
519
+ readonly balanced: true;
520
+ };
521
+ }
522
+ ];
523
+ readonly "stylistic/switch-colon-spacing": import("./state.js").State.WARN;
524
+ readonly "stylistic/template-curly-spacing": import("./state.js").State.WARN;
525
+ readonly "stylistic/template-tag-spacing": import("./state.js").State.WARN;
526
+ readonly "stylistic/type-annotation-spacing": readonly [
527
+ import("./state.js").State.WARN,
528
+ {
529
+ readonly before: true;
530
+ readonly after: true;
531
+ readonly overrides: {
532
+ readonly colon: {
533
+ readonly before: false;
534
+ readonly after: true;
535
+ };
536
+ };
537
+ }
538
+ ];
539
+ readonly "stylistic/type-generic-spacing": import("./state.js").State.WARN;
540
+ readonly "stylistic/type-named-tuple-spacing": import("./state.js").State.WARN;
541
+ readonly "stylistic/wrap-iife": readonly [
542
+ import("./state.js").State.WARN,
543
+ "inside",
544
+ {
545
+ readonly functionPrototypeMethods: true;
546
+ }
547
+ ];
548
+ readonly "stylistic/wrap-regex": import("./state.js").State.WARN;
549
+ readonly "stylistic/yield-star-spacing": import("./state.js").State.WARN;
550
+ };
551
+ })[];
290
552
  export default _default;
291
553
  //# sourceMappingURL=js.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../src/rules/js.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAAwB"}
1
+ {"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../src/rules/js.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
package/dist/rules/js.js CHANGED
@@ -1,3 +1,7 @@
1
1
  import eslint from "./js.eslint.js";
2
- export default [eslint];
2
+ import stylistic from "./js.stylistic.js";
3
+ export default [
4
+ eslint,
5
+ stylistic,
6
+ ];
3
7
  //# sourceMappingURL=js.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"js.js","sourceRoot":"","sources":["../../src/rules/js.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,eAAe,CAAC,MAAM,CAAC,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"}
@@ -0,0 +1,266 @@
1
+ import { State } from "./state.js";
2
+ declare const _default: {
3
+ rules: {
4
+ readonly "stylistic/array-bracket-newline": State.WARN;
5
+ readonly "stylistic/array-bracket-spacing": State.WARN;
6
+ readonly "stylistic/array-element-newline": readonly [
7
+ State.WARN,
8
+ {
9
+ readonly consistent: true;
10
+ readonly multiline: true;
11
+ readonly minItems: 3;
12
+ }
13
+ ];
14
+ readonly "stylistic/arrow-parens": readonly [
15
+ State.WARN,
16
+ "as-needed"
17
+ ];
18
+ readonly "stylistic/arrow-spacing": State.WARN;
19
+ readonly "stylistic/block-spacing": State.WARN;
20
+ readonly "stylistic/brace-style": readonly [
21
+ State.WARN,
22
+ "stroustrup",
23
+ {
24
+ readonly allowSingleLine: true;
25
+ }
26
+ ];
27
+ readonly "stylistic/comma-dangle": readonly [
28
+ State.WARN,
29
+ "always-multiline"
30
+ ];
31
+ readonly "stylistic/comma-spacing": State.WARN;
32
+ readonly "stylistic/comma-style": State.WARN;
33
+ readonly "stylistic/computed-property-spacing": State.WARN;
34
+ readonly "stylistic/curly-newline": State.WARN;
35
+ readonly "stylistic/dot-location": readonly [
36
+ State.WARN,
37
+ "property"
38
+ ];
39
+ readonly "stylistic/eol-last": State.WARN;
40
+ readonly "stylistic/function-call-argument-newline": readonly [
41
+ State.WARN,
42
+ "consistent"
43
+ ];
44
+ readonly "stylistic/function-call-spacing": State.WARN;
45
+ readonly "stylistic/function-paren-newline": readonly [
46
+ State.WARN,
47
+ "multiline-arguments"
48
+ ];
49
+ readonly "stylistic/generator-star-spacing": State.WARN;
50
+ readonly "stylistic/implicit-arrow-linebreak": State.WARN;
51
+ readonly "stylistic/indent": readonly [
52
+ State.WARN,
53
+ 2,
54
+ {
55
+ readonly assignmentOperator: 0;
56
+ readonly VariableDeclarator: {
57
+ readonly var: 0;
58
+ readonly let: 0;
59
+ readonly const: 0;
60
+ };
61
+ readonly outerIIFEBody: 0;
62
+ readonly offsetTernaryExpressions: true;
63
+ }
64
+ ];
65
+ readonly "stylistic/indent-binary-ops": readonly [
66
+ State.WARN,
67
+ 2
68
+ ];
69
+ readonly "stylistic/key-spacing": State.WARN;
70
+ readonly "stylistic/keyword-spacing": State.WARN;
71
+ readonly "stylistic/linebreak-style": State.WARN;
72
+ readonly "stylistic/lines-between-class-members": readonly [
73
+ State.WARN,
74
+ {
75
+ readonly enforce: readonly [
76
+ {
77
+ readonly prev: "field";
78
+ readonly next: "field";
79
+ readonly blankLine: "never";
80
+ },
81
+ {
82
+ readonly prev: "field";
83
+ readonly next: "method";
84
+ readonly blankLine: "always";
85
+ },
86
+ {
87
+ readonly prev: "method";
88
+ readonly next: "*";
89
+ readonly blankLine: "always";
90
+ }
91
+ ];
92
+ }
93
+ ];
94
+ readonly "stylistic/max-len": readonly [
95
+ State.WARN,
96
+ {
97
+ readonly code: 300;
98
+ readonly ignoreComments: true;
99
+ readonly ignoreTrailingComments: true;
100
+ readonly ignoreUrls: true;
101
+ readonly ignoreStrings: true;
102
+ readonly ignoreTemplateLiterals: true;
103
+ readonly ignoreRegExpLiterals: true;
104
+ }
105
+ ];
106
+ readonly "stylistic/max-statements-per-line": State.WARN;
107
+ readonly "stylistic/member-delimiter-style": State.WARN;
108
+ readonly "stylistic/multiline-ternary": readonly [
109
+ State.WARN,
110
+ "always-multiline"
111
+ ];
112
+ readonly "stylistic/newline-per-chained-call": State.WARN;
113
+ readonly "stylistic/no-extra-parens": State.WARN;
114
+ readonly "stylistic/no-extra-semi": State.WARN;
115
+ readonly "stylistic/no-floating-decimal": State.WARN;
116
+ readonly "stylistic/no-mixed-spaces-and-tabs": State.WARN;
117
+ readonly "stylistic/no-multi-spaces": readonly [
118
+ State.WARN,
119
+ {
120
+ readonly exceptions: {
121
+ readonly Property: false;
122
+ readonly ImportAttributes: false;
123
+ };
124
+ }
125
+ ];
126
+ readonly "stylistic/no-multiple-empty-lines": readonly [
127
+ State.WARN,
128
+ {
129
+ readonly max: 1;
130
+ readonly maxBOF: 0;
131
+ readonly maxEOF: 0;
132
+ }
133
+ ];
134
+ readonly "stylistic/no-tabs": State.WARN;
135
+ readonly "stylistic/no-trailing-spaces": State.WARN;
136
+ readonly "stylistic/no-whitespace-before-property": State.WARN;
137
+ readonly "stylistic/nonblock-statement-body-position": readonly [
138
+ State.WARN,
139
+ "below"
140
+ ];
141
+ readonly "stylistic/object-curly-newline": readonly [
142
+ State.WARN,
143
+ {
144
+ readonly consistent: true;
145
+ readonly multiline: true;
146
+ readonly minProperties: 3;
147
+ }
148
+ ];
149
+ readonly "stylistic/object-curly-spacing": readonly [
150
+ State.WARN,
151
+ "always",
152
+ {
153
+ readonly emptyObjects: "never";
154
+ }
155
+ ];
156
+ readonly "stylistic/object-property-newline": State.WARN;
157
+ readonly "stylistic/one-var-declaration-per-line": readonly [
158
+ State.WARN,
159
+ "always"
160
+ ];
161
+ readonly "stylistic/operator-linebreak": readonly [
162
+ State.WARN,
163
+ "before"
164
+ ];
165
+ readonly "stylistic/padded-blocks": readonly [
166
+ State.WARN,
167
+ "never",
168
+ {
169
+ readonly allowSingleLineBlocks: true;
170
+ }
171
+ ];
172
+ readonly "stylistic/quote-props": readonly [
173
+ State.WARN,
174
+ "as-needed",
175
+ {
176
+ readonly keywords: true;
177
+ }
178
+ ];
179
+ readonly "stylistic/quotes": readonly [
180
+ State.WARN,
181
+ "double",
182
+ {
183
+ readonly avoidEscape: true;
184
+ readonly allowTemplateLiterals: "always";
185
+ }
186
+ ];
187
+ readonly "stylistic/rest-spread-spacing": State.WARN;
188
+ readonly "stylistic/semi": State.WARN;
189
+ readonly "stylistic/semi-spacing": State.WARN;
190
+ readonly "stylistic/semi-style": State.WARN;
191
+ readonly "stylistic/space-before-blocks": State.WARN;
192
+ readonly "stylistic/space-before-function-paren": readonly [
193
+ State.WARN,
194
+ {
195
+ readonly named: "never";
196
+ }
197
+ ];
198
+ readonly "stylistic/space-in-parens": State.WARN;
199
+ readonly "stylistic/space-infix-ops": State.WARN;
200
+ readonly "stylistic/space-unary-ops": State.WARN;
201
+ readonly "stylistic/spaced-comment": readonly [
202
+ State.WARN,
203
+ "always",
204
+ {
205
+ readonly line: {
206
+ readonly exceptions: readonly [
207
+ "/",
208
+ "-",
209
+ "+",
210
+ "="
211
+ ];
212
+ readonly markers: readonly [
213
+ "!",
214
+ "@",
215
+ "#",
216
+ "/",
217
+ "#region",
218
+ "#endregion",
219
+ "#part",
220
+ "/#region",
221
+ "/#endregion",
222
+ "/#part"
223
+ ];
224
+ };
225
+ readonly block: {
226
+ readonly exceptions: readonly [
227
+ "*"
228
+ ];
229
+ readonly markers: readonly [
230
+ "*"
231
+ ];
232
+ readonly balanced: true;
233
+ };
234
+ }
235
+ ];
236
+ readonly "stylistic/switch-colon-spacing": State.WARN;
237
+ readonly "stylistic/template-curly-spacing": State.WARN;
238
+ readonly "stylistic/template-tag-spacing": State.WARN;
239
+ readonly "stylistic/type-annotation-spacing": readonly [
240
+ State.WARN,
241
+ {
242
+ readonly before: true;
243
+ readonly after: true;
244
+ readonly overrides: {
245
+ readonly colon: {
246
+ readonly before: false;
247
+ readonly after: true;
248
+ };
249
+ };
250
+ }
251
+ ];
252
+ readonly "stylistic/type-generic-spacing": State.WARN;
253
+ readonly "stylistic/type-named-tuple-spacing": State.WARN;
254
+ readonly "stylistic/wrap-iife": readonly [
255
+ State.WARN,
256
+ "inside",
257
+ {
258
+ readonly functionPrototypeMethods: true;
259
+ }
260
+ ];
261
+ readonly "stylistic/wrap-regex": State.WARN;
262
+ readonly "stylistic/yield-star-spacing": State.WARN;
263
+ };
264
+ };
265
+ export default _default;
266
+ //# sourceMappingURL=js.stylistic.d.ts.map
@@ -0,0 +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,wBAyQE"}