@pawover/eslint-rules 0.0.0-alpha.3 → 0.0.0-alpha.5

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.js CHANGED
@@ -1,9 +1,15 @@
1
- import javascript from "./core.javascript.js";
2
- import typescript from "./core.typescript.js";
3
- import antfu from "./core.antfu.js";
4
- import react from "./core.react.js";
5
- import stylistic from "./core.stylistic.js";
6
- import vue from "./core.vue.js";
1
+ import javascriptRules from "./core.javascript.js";
2
+ import typescriptRules from "./core.typescript.js";
3
+ import antfuRules from "./core.antfu.js";
4
+ import reactRules from "./core.react.js";
5
+ import stylisticRules from "./core.stylistic.js";
6
+ import vueRules from "./core.vue.js";
7
+ const javascript = javascriptRules;
8
+ const typescript = typescriptRules;
9
+ const react = reactRules;
10
+ const vue = vueRules;
11
+ const stylistic = stylisticRules;
12
+ const antfu = antfuRules;
7
13
  export default {
8
14
  javascript,
9
15
  typescript,
@@ -1,708 +1,13 @@
1
+ export type SeverityLevel = 0 | 1 | 2;
2
+ export type SeverityName = "off" | "warn" | "error";
3
+ export type Severity = SeverityName | SeverityLevel;
4
+ export type RuleConfig<RuleOptions extends unknown[] = unknown[]> = Severity | [Severity, ...Partial<RuleOptions>];
1
5
  declare const _default: {
2
- javascript: {
3
- "array-callback-return": number;
4
- "constructor-super": number;
5
- "for-direction": number;
6
- "getter-return": number;
7
- "no-async-promise-executor": number;
8
- "no-await-in-loop": number;
9
- "no-class-assign": number;
10
- "no-compare-neg-zero": number;
11
- "no-cond-assign": number;
12
- "no-const-assign": number;
13
- "no-constant-binary-expression": number;
14
- "no-constant-condition": number;
15
- "no-constructor-return": number;
16
- "no-control-regex": number;
17
- "no-debugger": number;
18
- "no-dupe-args": number;
19
- "no-dupe-class-members": number;
20
- "no-dupe-else-if": number;
21
- "no-dupe-keys": number;
22
- "no-duplicate-case": number;
23
- "no-duplicate-imports": number;
24
- "no-empty-character-class": number;
25
- "no-empty-pattern": number;
26
- "no-ex-assign": number;
27
- "no-fallthrough": number;
28
- "no-func-assign": number;
29
- "no-import-assign": number;
30
- "no-inner-declarations": number;
31
- "no-invalid-regexp": number;
32
- "no-irregular-whitespace": (number | {
33
- skipStrings: boolean;
34
- skipComments: boolean;
35
- skipRegExps: boolean;
36
- skipTemplates: boolean;
37
- skipJSXText: boolean;
38
- })[];
39
- "no-loss-of-precision": number;
40
- "no-misleading-character-class": number;
41
- "no-new-native-nonconstructor": number;
42
- "no-obj-calls": number;
43
- "no-promise-executor-return": number;
44
- "no-prototype-builtins": number;
45
- "no-self-assign": number;
46
- "no-self-compare": number;
47
- "no-setter-return": number;
48
- "no-sparse-arrays": number;
49
- "no-template-curly-in-string": number;
50
- "no-this-before-super": number;
51
- "no-undef": number;
52
- "no-unexpected-multiline": number;
53
- "no-unmodified-loop-condition": number;
54
- "no-unreachable": number;
55
- "no-unreachable-loop": number;
56
- "no-unsafe-finally": number;
57
- "no-unsafe-negation": number;
58
- "no-unsafe-optional-chaining": number;
59
- "no-unused-private-class-members": number;
60
- "no-unused-vars": (number | {
61
- vars: string;
62
- args: string;
63
- caughtErrors: string;
64
- varsIgnorePattern: string;
65
- destructuredArrayIgnorePattern: string;
66
- })[];
67
- "no-use-before-define": (number | {
68
- functions: boolean;
69
- classes: boolean;
70
- variables: boolean;
71
- allowNamedExports: boolean;
72
- })[];
73
- "no-useless-assignment": number;
74
- "no-useless-backreference": number;
75
- "require-atomic-updates": (number | {
76
- allowProperties: boolean;
77
- })[];
78
- "use-isnan": number;
79
- "valid-typeof": number;
80
- "accessor-pairs": (number | {
81
- setWithoutGet: boolean;
82
- getWithoutSet: boolean;
83
- })[];
84
- "arrow-body-style": number;
85
- "block-scoped-var": number;
86
- camelcase: number;
87
- "capitalized-comments": number;
88
- "class-methods-use-this": number;
89
- complexity: number;
90
- "consistent-return": number;
91
- "consistent-this": number;
92
- curly: number;
93
- "default-case": number;
94
- "default-case-last": number;
95
- "default-param-last": number;
96
- "dot-notation": number;
97
- eqeqeq: number;
98
- "func-name-matching": number;
99
- "func-names": number;
100
- "func-style": number;
101
- "grouped-accessor-pairs": (string | number)[];
102
- "guard-for-in": number;
103
- "id-denylist": number;
104
- "id-length": number;
105
- "id-match": number;
106
- "init-declarations": number;
107
- "logical-assignment-operators": number;
108
- "max-classes-per-file": number;
109
- "max-depth": number[];
110
- "max-lines": number;
111
- "max-lines-per-function": number;
112
- "max-nested-callbacks": number;
113
- "max-params": number;
114
- "max-statements": number;
115
- "new-cap": (number | {
116
- capIsNew: boolean;
117
- })[];
118
- "no-alert": number;
119
- "no-array-constructor": number;
120
- "no-bitwise": number;
121
- "no-caller": number;
122
- "no-case-declarations": number;
123
- "no-console": number;
124
- "no-continue": number;
125
- "no-delete-var": number;
126
- "no-div-regex": number;
127
- "no-else-return": number;
128
- "no-empty": (number | {
129
- allowEmptyCatch: boolean;
130
- })[];
131
- "no-empty-function": number;
132
- "no-empty-static-block": number;
133
- "no-eq-null": number;
134
- "no-eval": number;
135
- "no-extend-native": number;
136
- "no-extra-bind": number;
137
- "no-extra-boolean-cast": number;
138
- "no-extra-label": number;
139
- "no-global-assign": number;
140
- "no-implicit-coercion": (number | {
141
- allow: string[];
142
- })[];
143
- "no-implicit-globals": number;
144
- "no-implied-eval": number;
145
- "no-inline-comments": number;
146
- "no-invalid-this": number;
147
- "no-iterator": number;
148
- "no-label-var": number;
149
- "no-labels": number;
150
- "no-lone-blocks": number;
151
- "no-lonely-if": number;
152
- "no-loop-func": number;
153
- "no-magic-numbers": number;
154
- "no-multi-assign": number;
155
- "no-multi-str": number;
156
- "no-negated-condition": number;
157
- "no-nested-ternary": number;
158
- "no-new": number;
159
- "no-new-func": number;
160
- "no-new-wrappers": number;
161
- "no-nonoctal-decimal-escape": number;
162
- "no-object-constructor": number;
163
- "no-octal": number;
164
- "no-octal-escape": number;
165
- "no-param-reassign": number;
166
- "no-plusplus": number;
167
- "no-proto": number;
168
- "no-redeclare": number;
169
- "no-regex-spaces": number;
170
- "no-restricted-exports": number;
171
- "no-restricted-globals": number;
172
- "no-restricted-imports": number;
173
- "no-restricted-properties": number;
174
- "no-restricted-syntax": number;
175
- "no-return-assign": (string | number)[];
176
- "no-script-url": number;
177
- "no-sequences": number;
178
- "no-shadow": number;
179
- "no-shadow-restricted-names": number;
180
- "no-ternary": number;
181
- "no-throw-literal": number;
182
- "no-undef-init": number;
183
- "no-undefined": number;
184
- "no-underscore-dangle": number;
185
- "no-unneeded-ternary": number;
186
- "no-unused-expressions": (number | {
187
- ignoreDirectives: boolean;
188
- allowShortCircuit: boolean;
189
- })[];
190
- "no-unused-labels": number;
191
- "no-useless-call": number;
192
- "no-useless-catch": number;
193
- "no-useless-computed-key": number;
194
- "no-useless-concat": number;
195
- "no-useless-constructor": number;
196
- "no-useless-escape": number;
197
- "no-useless-rename": number;
198
- "no-useless-return": number;
199
- "no-var": number;
200
- "no-void": number;
201
- "no-warning-comments": number;
202
- "no-with": number;
203
- "object-shorthand": number;
204
- "one-var": (string | number)[];
205
- "operator-assignment": number;
206
- "prefer-arrow-callback": number;
207
- "prefer-const": number;
208
- "prefer-destructuring": number;
209
- "prefer-exponentiation-operator": number;
210
- "prefer-named-capture-group": number;
211
- "prefer-numeric-literals": number;
212
- "prefer-object-has-own": number;
213
- "prefer-object-spread": number;
214
- "prefer-promise-reject-errors": number;
215
- "prefer-regex-literals": number;
216
- "prefer-rest-params": number;
217
- "prefer-spread": number;
218
- "prefer-template": number;
219
- radix: number;
220
- "require-await": number;
221
- "require-unicode-regexp": number;
222
- "require-yield": number;
223
- "sort-imports": number;
224
- "sort-keys": number;
225
- "sort-vars": number;
226
- strict: number;
227
- "symbol-description": number;
228
- "vars-on-top": number;
229
- yoda: (string | number | {
230
- onlyEquality: boolean;
231
- })[];
232
- };
233
- typescript: {
234
- "class-methods-use-this": number;
235
- "default-param-last": number;
236
- "dot-notation": number;
237
- "init-declarations": number;
238
- "max-params": number;
239
- "no-array-constructor": number;
240
- "no-dupe-class-members": number;
241
- "no-empty-function": number;
242
- "no-implied-eval": number;
243
- "no-loop-func": number;
244
- "no-magic-numbers": number;
245
- "no-redeclare": number;
246
- "no-restricted-imports": number;
247
- "no-shadow": number;
248
- "no-unused-expressions": number;
249
- "no-unused-vars": number;
250
- "no-use-before-define": number;
251
- "no-useless-constructor": number;
252
- "prefer-destructuring": number;
253
- "prefer-promise-reject-errors": number;
254
- "require-await": number;
255
- "ts/adjacent-overload-signatures": number;
256
- "ts/array-type": number;
257
- "ts/await-thenable": number;
258
- "ts/ban-ts-comment": number;
259
- "ts/ban-tslint-comment": number;
260
- "ts/class-literal-property-style": (string | number)[];
261
- "ts/class-methods-use-this": number;
262
- "ts/consistent-generic-constructors": number;
263
- "ts/consistent-indexed-object-style": number;
264
- "ts/consistent-type-assertions": (number | {
265
- assertionStyle: string;
266
- objectLiteralTypeAssertions: string;
267
- })[];
268
- "ts/consistent-type-definitions": (string | number)[];
269
- "ts/consistent-type-exports": number;
270
- "ts/consistent-type-imports": (number | {
271
- fixStyle: string;
272
- })[];
273
- "ts/default-param-last": number;
274
- "ts/dot-notation": number;
275
- "ts/explicit-function-return-type": number;
276
- "ts/explicit-member-accessibility": number;
277
- "ts/explicit-module-boundary-types": number;
278
- "ts/init-declarations": number;
279
- "ts/max-params": number;
280
- "ts/member-ordering": (number | {
281
- default: string[];
282
- })[];
283
- "ts/method-signature-style": number;
284
- "ts/naming-convention": number;
285
- "ts/no-array-constructor": number;
286
- "ts/no-array-delete": number;
287
- "ts/no-base-to-string": number;
288
- "ts/no-confusing-non-null-assertion": number;
289
- "ts/no-confusing-void-expression": (number | {
290
- ignoreArrowShorthand: boolean;
291
- ignoreVoidOperator: boolean;
292
- })[];
293
- "ts/no-deprecated": number;
294
- "ts/no-dupe-class-members": number;
295
- "ts/no-duplicate-enum-values": number;
296
- "ts/no-duplicate-type-constituents": number;
297
- "ts/no-dynamic-delete": number;
298
- "ts/no-empty-function": number;
299
- "ts/no-empty-object-type": (number | {
300
- allowInterfaces: string;
301
- })[];
302
- "ts/no-explicit-any": (number | {
303
- fixToUnknown: boolean;
304
- ignoreRestArgs: boolean;
305
- })[];
306
- "ts/no-extra-non-null-assertion": number;
307
- "ts/no-extraneous-class": number;
308
- "ts/no-floating-promises": number;
309
- "ts/no-for-in-array": number;
310
- "ts/no-implied-eval": number;
311
- "ts/no-import-type-side-effects": number;
312
- "ts/no-inferrable-types": number;
313
- "ts/no-invalid-void-type": number;
314
- "ts/no-loop-func": number;
315
- "ts/no-magic-numbers": number;
316
- "ts/no-meaningless-void-operator": number;
317
- "ts/no-misused-new": number;
318
- "ts/no-misused-promises": (number | {
319
- checksVoidReturn: boolean;
320
- })[];
321
- "ts/no-misused-spread": number;
322
- "ts/no-mixed-enums": number;
323
- "ts/no-namespace": (number | {
324
- allowDeclarations: boolean;
325
- allowDefinitionFiles: boolean;
326
- })[];
327
- "ts/no-non-null-asserted-nullish-coalescing": number;
328
- "ts/no-non-null-asserted-optional-chain": number;
329
- "ts/no-non-null-assertion": number;
330
- "ts/no-redeclare": number;
331
- "ts/no-redundant-type-constituents": number;
332
- "ts/no-require-imports": number;
333
- "ts/no-restricted-imports": number;
334
- "ts/no-restricted-types": number;
335
- "ts/no-shadow": number;
336
- "ts/no-this-alias": (number | {
337
- allowDestructuring: boolean;
338
- })[];
339
- "ts/no-unnecessary-boolean-literal-compare": number;
340
- "ts/no-unnecessary-condition": number;
341
- "ts/no-unnecessary-parameter-property-assignment": number;
342
- "ts/no-unnecessary-qualifier": number;
343
- "ts/no-unnecessary-template-expression": number;
344
- "ts/no-unnecessary-type-arguments": number;
345
- "ts/no-unnecessary-type-assertion": number;
346
- "ts/no-unnecessary-type-constraint": number;
347
- "ts/no-unnecessary-type-parameters": number;
348
- "ts/no-unsafe-argument": number;
349
- "ts/no-unsafe-assignment": number;
350
- "ts/no-unsafe-call": number;
351
- "ts/no-unsafe-declaration-merging": number;
352
- "ts/no-unsafe-enum-comparison": number;
353
- "ts/no-unsafe-function-type": number;
354
- "ts/no-unsafe-member-access": number;
355
- "ts/no-unsafe-return": number;
356
- "ts/no-unsafe-type-assertion": number;
357
- "ts/no-unsafe-unary-minus": number;
358
- "ts/no-unused-expressions": (number | {
359
- ignoreDirectives: boolean;
360
- allowShortCircuit: boolean;
361
- })[];
362
- "ts/no-unused-vars": (number | {
363
- vars: string;
364
- args: string;
365
- caughtErrors: string;
366
- varsIgnorePattern: string;
367
- destructuredArrayIgnorePattern: string;
368
- })[];
369
- "ts/no-use-before-define": (number | {
370
- functions: boolean;
371
- classes: boolean;
372
- variables: boolean;
373
- allowNamedExports: boolean;
374
- })[];
375
- "ts/no-useless-constructor": number;
376
- "ts/no-useless-empty-export": number;
377
- "ts/no-wrapper-object-types": number;
378
- "ts/non-nullable-type-assertion-style": number;
379
- "ts/only-throw-error": number;
380
- "ts/parameter-properties": number;
381
- "ts/prefer-as-const": number;
382
- "ts/prefer-destructuring": number;
383
- "ts/prefer-enum-initializers": number;
384
- "ts/prefer-find": number;
385
- "ts/prefer-for-of": number;
386
- "ts/prefer-function-type": number;
387
- "ts/prefer-includes": number;
388
- "ts/prefer-literal-enum-member": number;
389
- "ts/prefer-namespace-keyword": number;
390
- "ts/prefer-nullish-coalescing": number;
391
- "ts/prefer-optional-chain": number;
392
- "ts/prefer-promise-reject-errors": number;
393
- "ts/prefer-readonly": number;
394
- "ts/prefer-readonly-parameter-types": number;
395
- "ts/prefer-reduce-type-parameter": number;
396
- "ts/prefer-regexp-exec": number;
397
- "ts/prefer-return-this-type": number;
398
- "ts/prefer-string-starts-ends-with": number;
399
- "ts/promise-function-async": number;
400
- "ts/related-getter-setter-pairs": number;
401
- "ts/require-array-sort-compare": number;
402
- "ts/require-await": number;
403
- "ts/restrict-plus-operands": number;
404
- "ts/restrict-template-expressions": number;
405
- "ts/return-await": number;
406
- "ts/strict-boolean-expressions": number;
407
- "ts/switch-exhaustiveness-check": number;
408
- "ts/triple-slash-reference": (number | {
409
- path: string;
410
- types: string;
411
- lib: string;
412
- })[];
413
- "ts/typedef": (number | {
414
- arrayDestructuring: boolean;
415
- arrowParameter: boolean;
416
- memberVariableDeclaration: boolean;
417
- objectDestructuring: boolean;
418
- parameter: boolean;
419
- propertyDeclaration: boolean;
420
- variableDeclaration: boolean;
421
- })[];
422
- "ts/unbound-method": number;
423
- "ts/unified-signatures": number;
424
- "ts/use-unknown-in-catch-callback-variable": number;
425
- };
426
- react: {
427
- "react/jsx-key-before-spread": number;
428
- "react/jsx-no-comment-textnodes": number;
429
- "react/jsx-no-duplicate-props": number;
430
- "react/jsx-no-iife": number;
431
- "react/jsx-no-undef": number;
432
- "react/jsx-shorthand-boolean": number;
433
- "react/jsx-shorthand-fragment": number;
434
- "react/jsx-uses-react": number;
435
- "react/jsx-uses-vars": number;
436
- "react/no-access-state-in-setstate": number;
437
- "react/no-array-index-key": number;
438
- "react/no-children-count": number;
439
- "react/no-children-for-each": number;
440
- "react/no-children-map": number;
441
- "react/no-children-only": number;
442
- "react/no-children-prop": number;
443
- "react/no-children-to-array": number;
444
- "react/no-class-component": number;
445
- "react/no-clone-element": number;
446
- "react/no-component-will-mount": number;
447
- "react/no-component-will-receive-props": number;
448
- "react/no-component-will-update": number;
449
- "react/no-context-provider": number;
450
- "react/no-create-ref": number;
451
- "react/no-default-props": number;
452
- "react/no-direct-mutation-state": number;
453
- "react/no-duplicate-key": number;
454
- "react/no-forward-ref": number;
455
- "react/no-implicit-key": number;
456
- "react/no-leaked-conditional-rendering": number;
457
- "react/no-missing-component-display-name": number;
458
- "react/no-missing-context-display-name": number;
459
- "react/no-missing-key": number;
460
- "react/no-misused-capture-owner-stack": number;
461
- "react/no-nested-component-definitions": number;
462
- "react/no-nested-lazy-component-declarations": number;
463
- "react/no-prop-types": number;
464
- "react/no-redundant-should-component-update": number;
465
- "react/no-set-state-in-component-did-mount": number;
466
- "react/no-set-state-in-component-did-update": number;
467
- "react/no-set-state-in-component-will-update": number;
468
- "react/no-string-refs": number;
469
- "react/no-unnecessary-key": number;
470
- "react/no-unnecessary-use-callback": number;
471
- "react/no-unnecessary-use-memo": number;
472
- "react/no-unnecessary-use-prefix": number;
473
- "react/no-unsafe-component-will-mount": number;
474
- "react/no-unsafe-component-will-receive-props": number;
475
- "react/no-unsafe-component-will-update": number;
476
- "react/no-unstable-context-value": number;
477
- "react/no-unstable-default-props": number;
478
- "react/no-unused-class-component-members": number;
479
- "react/no-unused-props": number;
480
- "react/no-unused-state": number;
481
- "react/no-use-context": number;
482
- "react/no-useless-forward-ref": number;
483
- "react/no-useless-fragment": number;
484
- "react/prefer-destructuring-assignment": number;
485
- "react/prefer-namespace-import": number;
486
- "react/prefer-read-only-props": number;
487
- "react/prefer-use-state-lazy-initialization": number;
488
- "react-dom/no-dangerously-set-innerhtml": number;
489
- "react-dom/no-dangerously-set-innerhtml-with-children": number;
490
- "react-dom/no-find-dom-node": number;
491
- "react-dom/no-flush-sync": number;
492
- "react-dom/no-hydrate": number;
493
- "react-dom/no-missing-button-type": number;
494
- "react-dom/no-missing-iframe-sandbox": number;
495
- "react-dom/no-namespace": number;
496
- "react-dom/no-render": number;
497
- "react-dom/no-render-return-value": number;
498
- "react-dom/no-script-url": number;
499
- "react-dom/no-string-style-prop": number;
500
- "react-dom/no-unknown-property": number;
501
- "react-dom/no-unsafe-iframe-sandbox": number;
502
- "react-dom/no-unsafe-target-blank": number;
503
- "react-dom/no-use-form-state": number;
504
- "react-dom/no-void-elements-with-children": number;
505
- "react-dom/prefer-namespace-import": number;
506
- "react-web-api/no-leaked-event-listener": number;
507
- "react-web-api/no-leaked-interval": number;
508
- "react-web-api/no-leaked-resize-observer": number;
509
- "react-web-api/no-leaked-timeout": number;
510
- "react-hooks-extra/no-direct-set-state-in-use-effect": number;
511
- "react-naming-convention/component-name": number;
512
- "react-naming-convention/context-name": number;
513
- "react-naming-convention/filename": (string | number)[];
514
- "react-naming-convention/filename-extension": number;
515
- "react-naming-convention/use-state": number;
516
- };
517
- vue: {
518
- "vue/attribute-hyphenation": (string | number | {
519
- ignore: never[];
520
- })[];
521
- "vue/first-attribute-linebreak": (number | {
522
- singleline: string;
523
- multiline: string;
524
- })[];
525
- "vue/multi-word-component-names": number;
526
- "vue/html-self-closing": (number | {
527
- html: {
528
- void: string;
529
- normal: string;
530
- component: string;
531
- };
532
- svg: string;
533
- math: string;
534
- })[];
535
- "vue/script-indent": (number | {
536
- baseIndent: number;
537
- switchCase: number;
538
- ignores: never[];
539
- })[];
540
- "vue/block-order": (number | {
541
- order: string[];
542
- })[];
543
- "vue/component-name-in-template-casing": (string | number | {
544
- registeredComponentsOnly: boolean;
545
- })[];
546
- "vue/component-options-name-casing": (string | number)[];
547
- "vue/custom-event-name-casing": (string | number | {
548
- ignores: never[];
549
- })[];
550
- "vue/define-macros-order": (number | {
551
- order: string[];
552
- defineExposeLast: boolean;
553
- })[];
554
- "vue/v-on-event-hyphenation": (string | number | {
555
- autofix: boolean;
556
- })[];
557
- "vue/operator-linebreak": (string | number | {
558
- overrides: {
559
- "?": string;
560
- ":": string;
561
- };
562
- })[];
563
- };
564
- stylistic: {
565
- "stylistic/array-bracket-newline": (string | number)[];
566
- "stylistic/array-bracket-spacing": number;
567
- "stylistic/array-element-newline": (string | number)[];
568
- "stylistic/arrow-parens": number;
569
- "stylistic/arrow-spacing": number;
570
- "stylistic/block-spacing": number;
571
- "stylistic/brace-style": number;
572
- "stylistic/comma-dangle": (string | number)[];
573
- "stylistic/comma-spacing": number;
574
- "stylistic/comma-style": number;
575
- "stylistic/computed-property-spacing": number;
576
- "stylistic/curly-newline": number;
577
- "stylistic/dot-location": number;
578
- "stylistic/eol-last": number;
579
- "stylistic/function-call-argument-newline": (string | number)[];
580
- "stylistic/function-call-spacing": number;
581
- "stylistic/function-paren-newline": (string | number)[];
582
- "stylistic/generator-star-spacing": number;
583
- "stylistic/implicit-arrow-linebreak": number;
584
- "stylistic/indent": number[];
585
- "stylistic/indent-binary-ops": number[];
586
- "stylistic/jsx-child-element-spacing": number;
587
- "stylistic/jsx-closing-bracket-location": number;
588
- "stylistic/jsx-closing-tag-location": number;
589
- "stylistic/jsx-curly-brace-presence": number;
590
- "stylistic/jsx-curly-newline": number;
591
- "stylistic/jsx-curly-spacing": number;
592
- "stylistic/jsx-equals-spacing": number;
593
- "stylistic/jsx-first-prop-new-line": number;
594
- "stylistic/jsx-function-call-newline": number;
595
- "stylistic/jsx-indent-props": number[];
596
- "stylistic/jsx-max-props-per-line": number;
597
- "stylistic/jsx-newline": number;
598
- "stylistic/jsx-one-expression-per-line": (number | {
599
- allow: string;
600
- })[];
601
- "stylistic/jsx-pascal-case": (number | {
602
- allowNamespace: boolean;
603
- })[];
604
- "stylistic/jsx-quotes": number;
605
- "stylistic/jsx-self-closing-comp": number;
606
- "stylistic/jsx-sort-props": number;
607
- "stylistic/jsx-tag-spacing": (number | {
608
- beforeClosing: string;
609
- })[];
610
- "stylistic/jsx-wrap-multilines": (number | {
611
- declaration: string;
612
- assignment: string;
613
- return: string;
614
- arrow: string;
615
- condition: string;
616
- logical: string;
617
- prop: string;
618
- propertyValue: string;
619
- })[];
620
- "stylistic/key-spacing": number;
621
- "stylistic/keyword-spacing": number;
622
- "stylistic/line-comment-position": number;
623
- "stylistic/linebreak-style": number;
624
- "stylistic/lines-around-comment": number;
625
- "stylistic/lines-between-class-members": number;
626
- "stylistic/max-len": number;
627
- "stylistic/max-statements-per-line": number;
628
- "stylistic/member-delimiter-style": number;
629
- "stylistic/multiline-comment-style": number;
630
- "stylistic/multiline-ternary": (string | number)[];
631
- "stylistic/new-parens": number;
632
- "stylistic/newline-per-chained-call": number;
633
- "stylistic/no-confusing-arrow": number;
634
- "stylistic/no-extra-parens": number;
635
- "stylistic/no-extra-semi": number;
636
- "stylistic/no-floating-decimal": number;
637
- "stylistic/no-mixed-operators": number;
638
- "stylistic/no-mixed-spaces-and-tabs": number;
639
- "stylistic/no-multi-spaces": number;
640
- "stylistic/no-multiple-empty-lines": (number | {
641
- max: number;
642
- maxEOF: number;
643
- maxBOF: number;
644
- })[];
645
- "stylistic/no-tabs": number;
646
- "stylistic/no-trailing-spaces": number;
647
- "stylistic/no-whitespace-before-property": number;
648
- "stylistic/nonblock-statement-body-position": number;
649
- "stylistic/object-curly-newline": number;
650
- "stylistic/object-curly-spacing": (string | number)[];
651
- "stylistic/object-property-newline": (number | {
652
- allowAllPropertiesOnSameLine: boolean;
653
- })[];
654
- "stylistic/one-var-declaration-per-line": number;
655
- "stylistic/operator-linebreak": (string | number | {
656
- overrides: {
657
- "?": string;
658
- ":": string;
659
- };
660
- })[];
661
- "stylistic/padded-blocks": number;
662
- "stylistic/padding-line-between-statements": (number | {
663
- blankLine: string;
664
- prev: string;
665
- next: string;
666
- })[];
667
- "stylistic/quote-props": (string | number)[];
668
- "stylistic/quotes": number;
669
- "stylistic/rest-spread-spacing": number;
670
- "stylistic/semi": number;
671
- "stylistic/semi-spacing": number;
672
- "stylistic/semi-style": number;
673
- "stylistic/space-before-blocks": number;
674
- "stylistic/space-before-function-paren": (number | {
675
- anonymous: string;
676
- named: string;
677
- asyncArrow: string;
678
- catch: string;
679
- })[];
680
- "stylistic/space-in-parens": number;
681
- "stylistic/space-infix-ops": number;
682
- "stylistic/space-unary-ops": number;
683
- "stylistic/spaced-comment": number;
684
- "stylistic/switch-colon-spacing": number;
685
- "stylistic/template-curly-spacing": number;
686
- "stylistic/template-tag-spacing": number;
687
- "stylistic/type-annotation-spacing": number;
688
- "stylistic/type-generic-spacing": number;
689
- "stylistic/type-named-tuple-spacing": number;
690
- "stylistic/wrap-iife": number;
691
- "stylistic/wrap-regex": number;
692
- "stylistic/yield-star-spacing": number;
693
- };
694
- antfu: {
695
- "antfu/consistent-chaining": number;
696
- "antfu/consistent-list-newline": number;
697
- "antfu/curly": number;
698
- "antfu/if-newline": number;
699
- "antfu/import-dedupe": number;
700
- "antfu/indent-unindent": number;
701
- "antfu/no-import-dist": number;
702
- "antfu/no-import-node-modules-by-path": number;
703
- "antfu/no-top-level-await": number;
704
- "antfu/no-ts-export-equal": number;
705
- "antfu/top-level-function": number;
706
- };
6
+ javascript: Record<"array-callback-return" | "constructor-super" | "for-direction" | "getter-return" | "no-async-promise-executor" | "no-await-in-loop" | "no-class-assign" | "no-compare-neg-zero" | "no-cond-assign" | "no-const-assign" | "no-constant-binary-expression" | "no-constant-condition" | "no-constructor-return" | "no-control-regex" | "no-debugger" | "no-dupe-args" | "no-dupe-class-members" | "no-dupe-else-if" | "no-dupe-keys" | "no-duplicate-case" | "no-duplicate-imports" | "no-empty-character-class" | "no-empty-pattern" | "no-ex-assign" | "no-fallthrough" | "no-func-assign" | "no-import-assign" | "no-inner-declarations" | "no-invalid-regexp" | "no-irregular-whitespace" | "no-loss-of-precision" | "no-misleading-character-class" | "no-new-native-nonconstructor" | "no-obj-calls" | "no-promise-executor-return" | "no-prototype-builtins" | "no-self-assign" | "no-self-compare" | "no-setter-return" | "no-sparse-arrays" | "no-template-curly-in-string" | "no-this-before-super" | "no-undef" | "no-unexpected-multiline" | "no-unmodified-loop-condition" | "no-unreachable" | "no-unreachable-loop" | "no-unsafe-finally" | "no-unsafe-negation" | "no-unsafe-optional-chaining" | "no-unused-private-class-members" | "no-unused-vars" | "no-use-before-define" | "no-useless-assignment" | "no-useless-backreference" | "require-atomic-updates" | "use-isnan" | "valid-typeof" | "accessor-pairs" | "arrow-body-style" | "block-scoped-var" | "camelcase" | "capitalized-comments" | "class-methods-use-this" | "complexity" | "consistent-return" | "consistent-this" | "curly" | "default-case" | "default-case-last" | "default-param-last" | "dot-notation" | "eqeqeq" | "func-name-matching" | "func-names" | "func-style" | "grouped-accessor-pairs" | "guard-for-in" | "id-denylist" | "id-length" | "id-match" | "init-declarations" | "logical-assignment-operators" | "max-classes-per-file" | "max-depth" | "max-lines" | "max-lines-per-function" | "max-nested-callbacks" | "max-params" | "max-statements" | "new-cap" | "no-alert" | "no-array-constructor" | "no-bitwise" | "no-caller" | "no-case-declarations" | "no-console" | "no-continue" | "no-delete-var" | "no-div-regex" | "no-else-return" | "no-empty" | "no-empty-function" | "no-empty-static-block" | "no-eq-null" | "no-eval" | "no-extend-native" | "no-extra-bind" | "no-extra-boolean-cast" | "no-extra-label" | "no-global-assign" | "no-implicit-coercion" | "no-implicit-globals" | "no-implied-eval" | "no-inline-comments" | "no-invalid-this" | "no-iterator" | "no-label-var" | "no-labels" | "no-lone-blocks" | "no-lonely-if" | "no-loop-func" | "no-magic-numbers" | "no-multi-assign" | "no-multi-str" | "no-negated-condition" | "no-nested-ternary" | "no-new" | "no-new-func" | "no-new-wrappers" | "no-nonoctal-decimal-escape" | "no-object-constructor" | "no-octal" | "no-octal-escape" | "no-param-reassign" | "no-plusplus" | "no-proto" | "no-redeclare" | "no-regex-spaces" | "no-restricted-exports" | "no-restricted-globals" | "no-restricted-imports" | "no-restricted-properties" | "no-restricted-syntax" | "no-return-assign" | "no-script-url" | "no-sequences" | "no-shadow" | "no-shadow-restricted-names" | "no-ternary" | "no-throw-literal" | "no-undef-init" | "no-undefined" | "no-underscore-dangle" | "no-unneeded-ternary" | "no-unused-expressions" | "no-unused-labels" | "no-useless-call" | "no-useless-catch" | "no-useless-computed-key" | "no-useless-concat" | "no-useless-constructor" | "no-useless-escape" | "no-useless-rename" | "no-useless-return" | "no-var" | "no-void" | "no-warning-comments" | "no-with" | "object-shorthand" | "one-var" | "operator-assignment" | "prefer-arrow-callback" | "prefer-const" | "prefer-destructuring" | "prefer-exponentiation-operator" | "prefer-named-capture-group" | "prefer-numeric-literals" | "prefer-object-has-own" | "prefer-object-spread" | "prefer-promise-reject-errors" | "prefer-regex-literals" | "prefer-rest-params" | "prefer-spread" | "prefer-template" | "radix" | "require-await" | "require-unicode-regexp" | "require-yield" | "sort-imports" | "sort-keys" | "sort-vars" | "strict" | "symbol-description" | "vars-on-top" | "yoda", RuleConfig<unknown[]>>;
7
+ typescript: Record<"no-dupe-class-members" | "no-unused-vars" | "no-use-before-define" | "class-methods-use-this" | "default-param-last" | "dot-notation" | "init-declarations" | "max-params" | "no-array-constructor" | "no-empty-function" | "no-implied-eval" | "no-loop-func" | "no-magic-numbers" | "no-redeclare" | "no-restricted-imports" | "no-shadow" | "no-unused-expressions" | "no-useless-constructor" | "prefer-destructuring" | "prefer-promise-reject-errors" | "require-await" | "ts/adjacent-overload-signatures" | "ts/array-type" | "ts/await-thenable" | "ts/ban-ts-comment" | "ts/ban-tslint-comment" | "ts/class-literal-property-style" | "ts/class-methods-use-this" | "ts/consistent-generic-constructors" | "ts/consistent-indexed-object-style" | "ts/consistent-type-assertions" | "ts/consistent-type-definitions" | "ts/consistent-type-exports" | "ts/consistent-type-imports" | "ts/default-param-last" | "ts/dot-notation" | "ts/explicit-function-return-type" | "ts/explicit-member-accessibility" | "ts/explicit-module-boundary-types" | "ts/init-declarations" | "ts/max-params" | "ts/member-ordering" | "ts/method-signature-style" | "ts/naming-convention" | "ts/no-array-constructor" | "ts/no-array-delete" | "ts/no-base-to-string" | "ts/no-confusing-non-null-assertion" | "ts/no-confusing-void-expression" | "ts/no-deprecated" | "ts/no-dupe-class-members" | "ts/no-duplicate-enum-values" | "ts/no-duplicate-type-constituents" | "ts/no-dynamic-delete" | "ts/no-empty-function" | "ts/no-empty-object-type" | "ts/no-explicit-any" | "ts/no-extra-non-null-assertion" | "ts/no-extraneous-class" | "ts/no-floating-promises" | "ts/no-for-in-array" | "ts/no-implied-eval" | "ts/no-import-type-side-effects" | "ts/no-inferrable-types" | "ts/no-invalid-void-type" | "ts/no-loop-func" | "ts/no-magic-numbers" | "ts/no-meaningless-void-operator" | "ts/no-misused-new" | "ts/no-misused-promises" | "ts/no-misused-spread" | "ts/no-mixed-enums" | "ts/no-namespace" | "ts/no-non-null-asserted-nullish-coalescing" | "ts/no-non-null-asserted-optional-chain" | "ts/no-non-null-assertion" | "ts/no-redeclare" | "ts/no-redundant-type-constituents" | "ts/no-require-imports" | "ts/no-restricted-imports" | "ts/no-restricted-types" | "ts/no-shadow" | "ts/no-this-alias" | "ts/no-unnecessary-boolean-literal-compare" | "ts/no-unnecessary-condition" | "ts/no-unnecessary-parameter-property-assignment" | "ts/no-unnecessary-qualifier" | "ts/no-unnecessary-template-expression" | "ts/no-unnecessary-type-arguments" | "ts/no-unnecessary-type-assertion" | "ts/no-unnecessary-type-constraint" | "ts/no-unnecessary-type-parameters" | "ts/no-unsafe-argument" | "ts/no-unsafe-assignment" | "ts/no-unsafe-call" | "ts/no-unsafe-declaration-merging" | "ts/no-unsafe-enum-comparison" | "ts/no-unsafe-function-type" | "ts/no-unsafe-member-access" | "ts/no-unsafe-return" | "ts/no-unsafe-type-assertion" | "ts/no-unsafe-unary-minus" | "ts/no-unused-expressions" | "ts/no-unused-vars" | "ts/no-use-before-define" | "ts/no-useless-constructor" | "ts/no-useless-empty-export" | "ts/no-wrapper-object-types" | "ts/non-nullable-type-assertion-style" | "ts/only-throw-error" | "ts/parameter-properties" | "ts/prefer-as-const" | "ts/prefer-destructuring" | "ts/prefer-enum-initializers" | "ts/prefer-find" | "ts/prefer-for-of" | "ts/prefer-function-type" | "ts/prefer-includes" | "ts/prefer-literal-enum-member" | "ts/prefer-namespace-keyword" | "ts/prefer-nullish-coalescing" | "ts/prefer-optional-chain" | "ts/prefer-promise-reject-errors" | "ts/prefer-readonly" | "ts/prefer-readonly-parameter-types" | "ts/prefer-reduce-type-parameter" | "ts/prefer-regexp-exec" | "ts/prefer-return-this-type" | "ts/prefer-string-starts-ends-with" | "ts/promise-function-async" | "ts/related-getter-setter-pairs" | "ts/require-array-sort-compare" | "ts/require-await" | "ts/restrict-plus-operands" | "ts/restrict-template-expressions" | "ts/return-await" | "ts/strict-boolean-expressions" | "ts/switch-exhaustiveness-check" | "ts/triple-slash-reference" | "ts/typedef" | "ts/unbound-method" | "ts/unified-signatures" | "ts/use-unknown-in-catch-callback-variable", RuleConfig<unknown[]>>;
8
+ react: Record<"react/jsx-key-before-spread" | "react/jsx-no-comment-textnodes" | "react/jsx-no-duplicate-props" | "react/jsx-no-iife" | "react/jsx-no-undef" | "react/jsx-shorthand-boolean" | "react/jsx-shorthand-fragment" | "react/jsx-uses-react" | "react/jsx-uses-vars" | "react/no-access-state-in-setstate" | "react/no-array-index-key" | "react/no-children-count" | "react/no-children-for-each" | "react/no-children-map" | "react/no-children-only" | "react/no-children-prop" | "react/no-children-to-array" | "react/no-class-component" | "react/no-clone-element" | "react/no-component-will-mount" | "react/no-component-will-receive-props" | "react/no-component-will-update" | "react/no-context-provider" | "react/no-create-ref" | "react/no-default-props" | "react/no-direct-mutation-state" | "react/no-duplicate-key" | "react/no-forward-ref" | "react/no-implicit-key" | "react/no-leaked-conditional-rendering" | "react/no-missing-component-display-name" | "react/no-missing-context-display-name" | "react/no-missing-key" | "react/no-misused-capture-owner-stack" | "react/no-nested-component-definitions" | "react/no-nested-lazy-component-declarations" | "react/no-prop-types" | "react/no-redundant-should-component-update" | "react/no-set-state-in-component-did-mount" | "react/no-set-state-in-component-did-update" | "react/no-set-state-in-component-will-update" | "react/no-string-refs" | "react/no-unnecessary-key" | "react/no-unnecessary-use-callback" | "react/no-unnecessary-use-memo" | "react/no-unnecessary-use-prefix" | "react/no-unsafe-component-will-mount" | "react/no-unsafe-component-will-receive-props" | "react/no-unsafe-component-will-update" | "react/no-unstable-context-value" | "react/no-unstable-default-props" | "react/no-unused-class-component-members" | "react/no-unused-props" | "react/no-unused-state" | "react/no-use-context" | "react/no-useless-forward-ref" | "react/no-useless-fragment" | "react/prefer-destructuring-assignment" | "react/prefer-namespace-import" | "react/prefer-read-only-props" | "react/prefer-use-state-lazy-initialization" | "react-dom/no-dangerously-set-innerhtml" | "react-dom/no-dangerously-set-innerhtml-with-children" | "react-dom/no-find-dom-node" | "react-dom/no-flush-sync" | "react-dom/no-hydrate" | "react-dom/no-missing-button-type" | "react-dom/no-missing-iframe-sandbox" | "react-dom/no-namespace" | "react-dom/no-render" | "react-dom/no-render-return-value" | "react-dom/no-script-url" | "react-dom/no-string-style-prop" | "react-dom/no-unknown-property" | "react-dom/no-unsafe-iframe-sandbox" | "react-dom/no-unsafe-target-blank" | "react-dom/no-use-form-state" | "react-dom/no-void-elements-with-children" | "react-dom/prefer-namespace-import" | "react-web-api/no-leaked-event-listener" | "react-web-api/no-leaked-interval" | "react-web-api/no-leaked-resize-observer" | "react-web-api/no-leaked-timeout" | "react-hooks-extra/no-direct-set-state-in-use-effect" | "react-naming-convention/component-name" | "react-naming-convention/context-name" | "react-naming-convention/filename" | "react-naming-convention/filename-extension" | "react-naming-convention/use-state", RuleConfig<unknown[]>>;
9
+ vue: Record<"vue/attribute-hyphenation" | "vue/first-attribute-linebreak" | "vue/multi-word-component-names" | "vue/html-self-closing" | "vue/script-indent" | "vue/block-order" | "vue/component-name-in-template-casing" | "vue/component-options-name-casing" | "vue/custom-event-name-casing" | "vue/define-macros-order" | "vue/v-on-event-hyphenation" | "vue/operator-linebreak", RuleConfig<unknown[]>>;
10
+ stylistic: Record<"stylistic/array-bracket-newline" | "stylistic/array-bracket-spacing" | "stylistic/array-element-newline" | "stylistic/arrow-parens" | "stylistic/arrow-spacing" | "stylistic/block-spacing" | "stylistic/brace-style" | "stylistic/comma-dangle" | "stylistic/comma-spacing" | "stylistic/comma-style" | "stylistic/computed-property-spacing" | "stylistic/curly-newline" | "stylistic/dot-location" | "stylistic/eol-last" | "stylistic/function-call-argument-newline" | "stylistic/function-call-spacing" | "stylistic/function-paren-newline" | "stylistic/generator-star-spacing" | "stylistic/implicit-arrow-linebreak" | "stylistic/indent" | "stylistic/indent-binary-ops" | "stylistic/jsx-child-element-spacing" | "stylistic/jsx-closing-bracket-location" | "stylistic/jsx-closing-tag-location" | "stylistic/jsx-curly-brace-presence" | "stylistic/jsx-curly-newline" | "stylistic/jsx-curly-spacing" | "stylistic/jsx-equals-spacing" | "stylistic/jsx-first-prop-new-line" | "stylistic/jsx-function-call-newline" | "stylistic/jsx-indent-props" | "stylistic/jsx-max-props-per-line" | "stylistic/jsx-newline" | "stylistic/jsx-one-expression-per-line" | "stylistic/jsx-pascal-case" | "stylistic/jsx-quotes" | "stylistic/jsx-self-closing-comp" | "stylistic/jsx-sort-props" | "stylistic/jsx-tag-spacing" | "stylistic/jsx-wrap-multilines" | "stylistic/key-spacing" | "stylistic/keyword-spacing" | "stylistic/line-comment-position" | "stylistic/linebreak-style" | "stylistic/lines-around-comment" | "stylistic/lines-between-class-members" | "stylistic/max-len" | "stylistic/max-statements-per-line" | "stylistic/member-delimiter-style" | "stylistic/multiline-comment-style" | "stylistic/multiline-ternary" | "stylistic/new-parens" | "stylistic/newline-per-chained-call" | "stylistic/no-confusing-arrow" | "stylistic/no-extra-parens" | "stylistic/no-extra-semi" | "stylistic/no-floating-decimal" | "stylistic/no-mixed-operators" | "stylistic/no-mixed-spaces-and-tabs" | "stylistic/no-multi-spaces" | "stylistic/no-multiple-empty-lines" | "stylistic/no-tabs" | "stylistic/no-trailing-spaces" | "stylistic/no-whitespace-before-property" | "stylistic/nonblock-statement-body-position" | "stylistic/object-curly-newline" | "stylistic/object-curly-spacing" | "stylistic/object-property-newline" | "stylistic/one-var-declaration-per-line" | "stylistic/operator-linebreak" | "stylistic/padded-blocks" | "stylistic/padding-line-between-statements" | "stylistic/quote-props" | "stylistic/quotes" | "stylistic/rest-spread-spacing" | "stylistic/semi" | "stylistic/semi-spacing" | "stylistic/semi-style" | "stylistic/space-before-blocks" | "stylistic/space-before-function-paren" | "stylistic/space-in-parens" | "stylistic/space-infix-ops" | "stylistic/space-unary-ops" | "stylistic/spaced-comment" | "stylistic/switch-colon-spacing" | "stylistic/template-curly-spacing" | "stylistic/template-tag-spacing" | "stylistic/type-annotation-spacing" | "stylistic/type-generic-spacing" | "stylistic/type-named-tuple-spacing" | "stylistic/wrap-iife" | "stylistic/wrap-regex" | "stylistic/yield-star-spacing", RuleConfig<unknown[]>>;
11
+ antfu: Record<"antfu/consistent-chaining" | "antfu/consistent-list-newline" | "antfu/curly" | "antfu/if-newline" | "antfu/import-dedupe" | "antfu/indent-unindent" | "antfu/no-import-dist" | "antfu/no-import-node-modules-by-path" | "antfu/no-top-level-await" | "antfu/no-ts-export-equal" | "antfu/top-level-function", RuleConfig<unknown[]>>;
707
12
  };
708
13
  export default _default;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "description": "pawover's esLint rules",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
- "version": "0.0.0-alpha.3",
7
+ "version": "0.0.0-alpha.5",
8
8
  "packageManager": "pnpm@10.20.0",
9
9
  "engines": {
10
10
  "node": ">=22.20.0"
@@ -14,6 +14,11 @@
14
14
  "pawover-eslint",
15
15
  "pawover-eslint-rules"
16
16
  ],
17
+ "homepage": "https://github.com/pawover/pawover-eslint-rules#readme",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/pawover/pawover-eslint-rules.git"
21
+ },
17
22
  "main": "./dist/index.js",
18
23
  "module": "./dist/index.js",
19
24
  "types": "dist/types/index.d.ts",
@@ -34,14 +39,16 @@
34
39
  },
35
40
  "scripts": {
36
41
  "build": "tsc",
42
+ "public": "pnpm build && npm publish --access public",
37
43
  "check": "pnpm check:types & pnpm check:eslint & pnpm check:format",
38
44
  "check:types": "tsc --noEmit",
39
45
  "check:eslint": "eslint --fix \"**/*.{js,cjs,mjs,ts,cts,mts,jsx,tsx,vue}\" --cache-location=eslint.cache.json --cache",
40
46
  "check:format": "prettier --write \"**/*.{html,json}\" !.vscode/settings.json --cache-location=prettier.cache.json --cache",
41
- "clean": "pnpm clean:cache & pnpm clean:lib",
47
+ "check:pack": "attw --pack .",
48
+ "clean": "pnpm clean:cache & pnpm clean:lib & pnpm clean:output",
42
49
  "clean:cache": "rimraf -g **/*.cache.json **/auto-*.json **/auto-*.d.ts",
43
50
  "clean:lib": "rimraf -g **/node_modules",
44
- "clean:output": "rimraf -g dist",
51
+ "clean:output": "rimraf dist",
45
52
  "lib:up": "taze -I -r --exclude pnpm"
46
53
  },
47
54
  "devDependencies": {