@comment-labs/oxlint-config 1.0.0-beta.14 → 1.0.0-beta.15
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.mjs +257 -232
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -146,6 +146,106 @@ const baseRules = {
|
|
|
146
146
|
"unicorn-js/prefer-switch": "warn",
|
|
147
147
|
"unicorn-js/switch-case-break-position": "warn",
|
|
148
148
|
"unicorn-js/prefer-single-call": "warn",
|
|
149
|
+
"jsdoc-js/check-alignment": "warn",
|
|
150
|
+
"jsdoc-js/check-indentation": "warn",
|
|
151
|
+
"jsdoc-js/check-line-alignment": "warn",
|
|
152
|
+
"jsdoc-js/check-param-names": "warn",
|
|
153
|
+
"jsdoc-js/check-types": "warn",
|
|
154
|
+
"jsdoc-js/check-values": "warn",
|
|
155
|
+
"jsdoc-js/multiline-blocks": "warn",
|
|
156
|
+
"jsdoc-js/no-multi-asterisks": "warn",
|
|
157
|
+
"jsdoc-js/no-undefined-types": "warn",
|
|
158
|
+
"jsdoc-js/require-returns-check": "warn",
|
|
159
|
+
"jsdoc-js/require-yields-check": "warn",
|
|
160
|
+
"jsdoc-js/tag-lines": "warn",
|
|
161
|
+
"jsdoc-js/valid-types": "warn",
|
|
162
|
+
"e18e-js/prefer-array-at": "error",
|
|
163
|
+
"e18e-js/prefer-array-fill": "error",
|
|
164
|
+
"e18e-js/prefer-includes": "error",
|
|
165
|
+
"e18e-js/prefer-array-to-reversed": "error",
|
|
166
|
+
"e18e-js/prefer-array-to-sorted": "error",
|
|
167
|
+
"e18e-js/prefer-array-to-spliced": "error",
|
|
168
|
+
"e18e-js/prefer-nullish-coalescing": "error",
|
|
169
|
+
"e18e-js/prefer-object-has-own": "error",
|
|
170
|
+
"e18e-js/prefer-spread-syntax": "error",
|
|
171
|
+
"e18e-js/prefer-url-canparse": "error",
|
|
172
|
+
"e18e-js/ban-dependencies": "error",
|
|
173
|
+
"e18e-js/prefer-array-from-map": "error",
|
|
174
|
+
"e18e-js/prefer-timer-args": "error",
|
|
175
|
+
"e18e-js/prefer-date-now": "error",
|
|
176
|
+
"e18e-js/prefer-regex-test": "error",
|
|
177
|
+
"e18e-js/prefer-array-some": "error",
|
|
178
|
+
"e18e-js/prefer-static-regex": "error",
|
|
179
|
+
"no-control-regex": "error",
|
|
180
|
+
"no-misleading-character-class": "error",
|
|
181
|
+
"no-regex-spaces": "error",
|
|
182
|
+
"no-invalid-regexp": "off",
|
|
183
|
+
"no-useless-backreference": "off",
|
|
184
|
+
"no-empty-character-class": "off",
|
|
185
|
+
"regexp-js/confusing-quantifier": "warn",
|
|
186
|
+
"regexp-js/control-character-escape": "error",
|
|
187
|
+
"regexp-js/match-any": "error",
|
|
188
|
+
"regexp-js/negation": "error",
|
|
189
|
+
"regexp-js/no-contradiction-with-assertion": "error",
|
|
190
|
+
"regexp-js/no-dupe-characters-character-class": "error",
|
|
191
|
+
"regexp-js/no-dupe-disjunctions": "error",
|
|
192
|
+
"regexp-js/no-empty-alternative": "warn",
|
|
193
|
+
"regexp-js/no-empty-capturing-group": "error",
|
|
194
|
+
"regexp-js/no-empty-character-class": "error",
|
|
195
|
+
"regexp-js/no-empty-group": "error",
|
|
196
|
+
"regexp-js/no-empty-lookarounds-assertion": "error",
|
|
197
|
+
"regexp-js/no-empty-string-literal": "error",
|
|
198
|
+
"regexp-js/no-escape-backspace": "error",
|
|
199
|
+
"regexp-js/no-extra-lookaround-assertions": "error",
|
|
200
|
+
"regexp-js/no-invalid-regexp": "error",
|
|
201
|
+
"regexp-js/no-invisible-character": "error",
|
|
202
|
+
"regexp-js/no-lazy-ends": "warn",
|
|
203
|
+
"regexp-js/no-legacy-features": "error",
|
|
204
|
+
"regexp-js/no-misleading-capturing-group": "error",
|
|
205
|
+
"regexp-js/no-misleading-unicode-character": "error",
|
|
206
|
+
"regexp-js/no-missing-g-flag": "error",
|
|
207
|
+
"regexp-js/no-non-standard-flag": "error",
|
|
208
|
+
"regexp-js/no-obscure-range": "error",
|
|
209
|
+
"regexp-js/no-optional-assertion": "error",
|
|
210
|
+
"regexp-js/no-potentially-useless-backreference": "warn",
|
|
211
|
+
"regexp-js/no-super-linear-backtracking": "error",
|
|
212
|
+
"regexp-js/no-trivially-nested-assertion": "error",
|
|
213
|
+
"regexp-js/no-trivially-nested-quantifier": "error",
|
|
214
|
+
"regexp-js/no-unused-capturing-group": "error",
|
|
215
|
+
"regexp-js/no-useless-assertions": "error",
|
|
216
|
+
"regexp-js/no-useless-backreference": "error",
|
|
217
|
+
"regexp-js/no-useless-character-class": "error",
|
|
218
|
+
"regexp-js/no-useless-dollar-replacements": "error",
|
|
219
|
+
"regexp-js/no-useless-escape": "error",
|
|
220
|
+
"regexp-js/no-useless-flag": "warn",
|
|
221
|
+
"regexp-js/no-useless-lazy": "error",
|
|
222
|
+
"regexp-js/no-useless-non-capturing-group": "error",
|
|
223
|
+
"regexp-js/no-useless-quantifier": "error",
|
|
224
|
+
"regexp-js/no-useless-range": "error",
|
|
225
|
+
"regexp-js/no-useless-set-operand": "error",
|
|
226
|
+
"regexp-js/no-useless-string-literal": "error",
|
|
227
|
+
"regexp-js/no-useless-two-nums-quantifier": "error",
|
|
228
|
+
"regexp-js/no-zero-quantifier": "error",
|
|
229
|
+
"regexp-js/optimal-lookaround-quantifier": "warn",
|
|
230
|
+
"regexp-js/optimal-quantifier-concatenation": "error",
|
|
231
|
+
"regexp-js/prefer-character-class": "error",
|
|
232
|
+
"regexp-js/prefer-d": "error",
|
|
233
|
+
"regexp-js/prefer-plus-quantifier": "error",
|
|
234
|
+
"regexp-js/prefer-predefined-assertion": "error",
|
|
235
|
+
"regexp-js/prefer-question-quantifier": "error",
|
|
236
|
+
"regexp-js/prefer-range": "error",
|
|
237
|
+
"regexp-js/prefer-set-operation": "error",
|
|
238
|
+
"regexp-js/prefer-star-quantifier": "error",
|
|
239
|
+
"regexp-js/prefer-unicode-codepoint-escapes": "error",
|
|
240
|
+
"regexp-js/prefer-w": "error",
|
|
241
|
+
"regexp-js/simplify-set-operations": "error",
|
|
242
|
+
"regexp-js/sort-flags": "error",
|
|
243
|
+
"regexp-js/strict": "error",
|
|
244
|
+
"regexp-js/use-ignore-case": "error"
|
|
245
|
+
};
|
|
246
|
+
//#endregion
|
|
247
|
+
//#region src/stylistic-rules.ts
|
|
248
|
+
const stylisticRules = {
|
|
149
249
|
"stylistic-js/type-generic-spacing": "warn",
|
|
150
250
|
"stylistic-js/type-named-tuple-spacing": "warn",
|
|
151
251
|
"stylistic-js/function-call-spacing": ["warn", "never"],
|
|
@@ -390,103 +490,7 @@ const baseRules = {
|
|
|
390
490
|
prev: "multiline-block-like",
|
|
391
491
|
next: "*"
|
|
392
492
|
}
|
|
393
|
-
]
|
|
394
|
-
"jsdoc-js/check-alignment": "warn",
|
|
395
|
-
"jsdoc-js/check-indentation": "warn",
|
|
396
|
-
"jsdoc-js/check-line-alignment": "warn",
|
|
397
|
-
"jsdoc-js/check-param-names": "warn",
|
|
398
|
-
"jsdoc-js/check-types": "warn",
|
|
399
|
-
"jsdoc-js/check-values": "warn",
|
|
400
|
-
"jsdoc-js/multiline-blocks": "warn",
|
|
401
|
-
"jsdoc-js/no-multi-asterisks": "warn",
|
|
402
|
-
"jsdoc-js/no-undefined-types": "warn",
|
|
403
|
-
"jsdoc-js/require-returns-check": "warn",
|
|
404
|
-
"jsdoc-js/require-yields-check": "warn",
|
|
405
|
-
"jsdoc-js/tag-lines": "warn",
|
|
406
|
-
"jsdoc-js/valid-types": "warn",
|
|
407
|
-
"e18e-js/prefer-array-at": "error",
|
|
408
|
-
"e18e-js/prefer-array-fill": "error",
|
|
409
|
-
"e18e-js/prefer-includes": "error",
|
|
410
|
-
"e18e-js/prefer-array-to-reversed": "error",
|
|
411
|
-
"e18e-js/prefer-array-to-sorted": "error",
|
|
412
|
-
"e18e-js/prefer-array-to-spliced": "error",
|
|
413
|
-
"e18e-js/prefer-nullish-coalescing": "error",
|
|
414
|
-
"e18e-js/prefer-object-has-own": "error",
|
|
415
|
-
"e18e-js/prefer-spread-syntax": "error",
|
|
416
|
-
"e18e-js/prefer-url-canparse": "error",
|
|
417
|
-
"e18e-js/ban-dependencies": "error",
|
|
418
|
-
"e18e-js/prefer-array-from-map": "error",
|
|
419
|
-
"e18e-js/prefer-timer-args": "error",
|
|
420
|
-
"e18e-js/prefer-date-now": "error",
|
|
421
|
-
"e18e-js/prefer-regex-test": "error",
|
|
422
|
-
"e18e-js/prefer-array-some": "error",
|
|
423
|
-
"e18e-js/prefer-static-regex": "error",
|
|
424
|
-
"no-control-regex": "error",
|
|
425
|
-
"no-misleading-character-class": "error",
|
|
426
|
-
"no-regex-spaces": "error",
|
|
427
|
-
"no-invalid-regexp": "off",
|
|
428
|
-
"no-useless-backreference": "off",
|
|
429
|
-
"no-empty-character-class": "off",
|
|
430
|
-
"regexp-js/confusing-quantifier": "warn",
|
|
431
|
-
"regexp-js/control-character-escape": "error",
|
|
432
|
-
"regexp-js/match-any": "error",
|
|
433
|
-
"regexp-js/negation": "error",
|
|
434
|
-
"regexp-js/no-contradiction-with-assertion": "error",
|
|
435
|
-
"regexp-js/no-dupe-characters-character-class": "error",
|
|
436
|
-
"regexp-js/no-dupe-disjunctions": "error",
|
|
437
|
-
"regexp-js/no-empty-alternative": "warn",
|
|
438
|
-
"regexp-js/no-empty-capturing-group": "error",
|
|
439
|
-
"regexp-js/no-empty-character-class": "error",
|
|
440
|
-
"regexp-js/no-empty-group": "error",
|
|
441
|
-
"regexp-js/no-empty-lookarounds-assertion": "error",
|
|
442
|
-
"regexp-js/no-empty-string-literal": "error",
|
|
443
|
-
"regexp-js/no-escape-backspace": "error",
|
|
444
|
-
"regexp-js/no-extra-lookaround-assertions": "error",
|
|
445
|
-
"regexp-js/no-invalid-regexp": "error",
|
|
446
|
-
"regexp-js/no-invisible-character": "error",
|
|
447
|
-
"regexp-js/no-lazy-ends": "warn",
|
|
448
|
-
"regexp-js/no-legacy-features": "error",
|
|
449
|
-
"regexp-js/no-misleading-capturing-group": "error",
|
|
450
|
-
"regexp-js/no-misleading-unicode-character": "error",
|
|
451
|
-
"regexp-js/no-missing-g-flag": "error",
|
|
452
|
-
"regexp-js/no-non-standard-flag": "error",
|
|
453
|
-
"regexp-js/no-obscure-range": "error",
|
|
454
|
-
"regexp-js/no-optional-assertion": "error",
|
|
455
|
-
"regexp-js/no-potentially-useless-backreference": "warn",
|
|
456
|
-
"regexp-js/no-super-linear-backtracking": "error",
|
|
457
|
-
"regexp-js/no-trivially-nested-assertion": "error",
|
|
458
|
-
"regexp-js/no-trivially-nested-quantifier": "error",
|
|
459
|
-
"regexp-js/no-unused-capturing-group": "error",
|
|
460
|
-
"regexp-js/no-useless-assertions": "error",
|
|
461
|
-
"regexp-js/no-useless-backreference": "error",
|
|
462
|
-
"regexp-js/no-useless-character-class": "error",
|
|
463
|
-
"regexp-js/no-useless-dollar-replacements": "error",
|
|
464
|
-
"regexp-js/no-useless-escape": "error",
|
|
465
|
-
"regexp-js/no-useless-flag": "warn",
|
|
466
|
-
"regexp-js/no-useless-lazy": "error",
|
|
467
|
-
"regexp-js/no-useless-non-capturing-group": "error",
|
|
468
|
-
"regexp-js/no-useless-quantifier": "error",
|
|
469
|
-
"regexp-js/no-useless-range": "error",
|
|
470
|
-
"regexp-js/no-useless-set-operand": "error",
|
|
471
|
-
"regexp-js/no-useless-string-literal": "error",
|
|
472
|
-
"regexp-js/no-useless-two-nums-quantifier": "error",
|
|
473
|
-
"regexp-js/no-zero-quantifier": "error",
|
|
474
|
-
"regexp-js/optimal-lookaround-quantifier": "warn",
|
|
475
|
-
"regexp-js/optimal-quantifier-concatenation": "error",
|
|
476
|
-
"regexp-js/prefer-character-class": "error",
|
|
477
|
-
"regexp-js/prefer-d": "error",
|
|
478
|
-
"regexp-js/prefer-plus-quantifier": "error",
|
|
479
|
-
"regexp-js/prefer-predefined-assertion": "error",
|
|
480
|
-
"regexp-js/prefer-question-quantifier": "error",
|
|
481
|
-
"regexp-js/prefer-range": "error",
|
|
482
|
-
"regexp-js/prefer-set-operation": "error",
|
|
483
|
-
"regexp-js/prefer-star-quantifier": "error",
|
|
484
|
-
"regexp-js/prefer-unicode-codepoint-escapes": "error",
|
|
485
|
-
"regexp-js/prefer-w": "error",
|
|
486
|
-
"regexp-js/simplify-set-operations": "error",
|
|
487
|
-
"regexp-js/sort-flags": "error",
|
|
488
|
-
"regexp-js/strict": "error",
|
|
489
|
-
"regexp-js/use-ignore-case": "error"
|
|
493
|
+
]
|
|
490
494
|
};
|
|
491
495
|
//#endregion
|
|
492
496
|
//#region src/plugins.ts
|
|
@@ -557,6 +561,150 @@ async function getGlobals() {
|
|
|
557
561
|
], ["@cloudflare/workers-types", "wrangler"])) return cloudflare;
|
|
558
562
|
return base;
|
|
559
563
|
}
|
|
564
|
+
const globals = await getGlobals();
|
|
565
|
+
//#endregion
|
|
566
|
+
//#region src/js-plugins.ts
|
|
567
|
+
const jsPlugins = [
|
|
568
|
+
{
|
|
569
|
+
name: "comment-labs-js",
|
|
570
|
+
specifier: "@comment-labs/oxlint-config/plugins/labs"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
name: "brettz9-js",
|
|
574
|
+
specifier: "@comment-labs/oxlint-config/plugins/brettz9"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
name: "i18next-js",
|
|
578
|
+
specifier: "@comment-labs/oxlint-config/plugins/i18next"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
name: "import-zod-js",
|
|
582
|
+
specifier: "@comment-labs/oxlint-config/plugins/import-zod"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
name: "playwright-js",
|
|
586
|
+
specifier: "@comment-labs/oxlint-config/plugins/playwright"
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
name: "react-hooks-js",
|
|
590
|
+
specifier: "@comment-labs/oxlint-config/plugins/react-hooks"
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
name: "react-native-js",
|
|
594
|
+
specifier: "@comment-labs/oxlint-config/plugins/react-native"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
name: "react-refresh-js",
|
|
598
|
+
specifier: "@comment-labs/oxlint-config/plugins/react-refresh"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
name: "security-js",
|
|
602
|
+
specifier: "@comment-labs/oxlint-config/plugins/security"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
name: "unicorn-js",
|
|
606
|
+
specifier: "@comment-labs/oxlint-config/plugins/unicorn"
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
name: "stylistic-js",
|
|
610
|
+
specifier: "@comment-labs/oxlint-config/plugins/stylistic"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
name: "jsdoc-js",
|
|
614
|
+
specifier: "@comment-labs/oxlint-config/plugins/jsdoc"
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
name: "e18e-js",
|
|
618
|
+
specifier: "@comment-labs/oxlint-config/plugins/e18e"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
name: "regexp-js",
|
|
622
|
+
specifier: "@comment-labs/oxlint-config/plugins/regexp"
|
|
623
|
+
}
|
|
624
|
+
];
|
|
625
|
+
const i18nextOverrides = {
|
|
626
|
+
files: [await enableMode([], ["i18next"]) ? "**/*" : "___disabled"],
|
|
627
|
+
rules: { "i18next-js/no-literal-string": "warn" }
|
|
628
|
+
};
|
|
629
|
+
//#endregion
|
|
630
|
+
//#region src/overrides/playwright.ts
|
|
631
|
+
const playwrightOverrides = {
|
|
632
|
+
files: ["**/e2e/**/*"],
|
|
633
|
+
rules: {
|
|
634
|
+
"playwright-js/consistent-spacing-between-blocks": "warn",
|
|
635
|
+
"playwright-js/expect-expect": "warn",
|
|
636
|
+
"playwright-js/max-nested-describe": "warn",
|
|
637
|
+
"playwright-js/missing-playwright-await": "error",
|
|
638
|
+
"playwright-js/no-conditional-expect": "warn",
|
|
639
|
+
"playwright-js/no-conditional-in-test": "warn",
|
|
640
|
+
"playwright-js/no-duplicate-hooks": "warn",
|
|
641
|
+
"playwright-js/no-duplicate-slow": "warn",
|
|
642
|
+
"playwright-js/no-element-handle": "warn",
|
|
643
|
+
"playwright-js/no-eval": "warn",
|
|
644
|
+
"playwright-js/no-focused-test": "error",
|
|
645
|
+
"playwright-js/no-force-option": "warn",
|
|
646
|
+
"playwright-js/no-nested-step": "warn",
|
|
647
|
+
"playwright-js/no-networkidle": "error",
|
|
648
|
+
"playwright-js/no-page-pause": "warn",
|
|
649
|
+
"playwright-js/no-skipped-test": "warn",
|
|
650
|
+
"playwright-js/no-standalone-expect": "error",
|
|
651
|
+
"playwright-js/no-unsafe-references": "error",
|
|
652
|
+
"playwright-js/no-unused-locators": "error",
|
|
653
|
+
"playwright-js/no-useless-await": "warn",
|
|
654
|
+
"playwright-js/no-useless-not": "warn",
|
|
655
|
+
"playwright-js/no-wait-for-navigation": "error",
|
|
656
|
+
"playwright-js/no-wait-for-selector": "warn",
|
|
657
|
+
"playwright-js/no-wait-for-timeout": "warn",
|
|
658
|
+
"playwright-js/prefer-hooks-in-order": "warn",
|
|
659
|
+
"playwright-js/prefer-hooks-on-top": "warn",
|
|
660
|
+
"playwright-js/prefer-locator": "warn",
|
|
661
|
+
"playwright-js/prefer-to-have-count": "warn",
|
|
662
|
+
"playwright-js/prefer-to-have-length": "warn",
|
|
663
|
+
"playwright-js/prefer-web-first-assertions": "error",
|
|
664
|
+
"playwright-js/valid-describe-callback": "error",
|
|
665
|
+
"playwright-js/valid-expect": "error",
|
|
666
|
+
"playwright-js/valid-expect-in-promise": "error",
|
|
667
|
+
"playwright-js/valid-test-tags": "error",
|
|
668
|
+
"playwright-js/valid-title": "error"
|
|
669
|
+
}
|
|
670
|
+
};
|
|
671
|
+
//#endregion
|
|
672
|
+
//#region src/overrides/react.ts
|
|
673
|
+
const reactOverrides = {
|
|
674
|
+
files: ["**/*.?(c|m)@(j|t)sx"],
|
|
675
|
+
rules: {
|
|
676
|
+
"react-hooks-js/exhaustive-deps": "error",
|
|
677
|
+
"react-hooks-js/rules-of-hooks": "warn",
|
|
678
|
+
"react-refresh-js/only-export-components": "warn"
|
|
679
|
+
}
|
|
680
|
+
};
|
|
681
|
+
const reactNativeOverrides = {
|
|
682
|
+
files: [await enableMode([], ["react-native"]) ? "**/*.?(m)@(j|t)sx" : "___disabled"],
|
|
683
|
+
rules: {
|
|
684
|
+
"react-native-js/no-color-literals": "warn",
|
|
685
|
+
"react-native-js/no-inline-styles": "warn",
|
|
686
|
+
"react-native-js/no-raw-text": "off",
|
|
687
|
+
"react-native-js/no-single-element-style-arrays": "warn",
|
|
688
|
+
"react-native-js/no-unused-styles": "warn",
|
|
689
|
+
"react-native-js/sort-styles": "off",
|
|
690
|
+
"react-native-js/split-platform-components": "error"
|
|
691
|
+
}
|
|
692
|
+
};
|
|
693
|
+
//#endregion
|
|
694
|
+
//#region src/overrides/scripts.ts
|
|
695
|
+
const scriptsOverrides = {
|
|
696
|
+
files: ["scripts/**/*.?(m)@(j|t)s"],
|
|
697
|
+
rules: { "unicorn/no-process-exit": "warn" }
|
|
698
|
+
};
|
|
699
|
+
//#endregion
|
|
700
|
+
//#region src/overrides/declarations.ts
|
|
701
|
+
const declarationsOverrides = {
|
|
702
|
+
files: ["**/*.d.ts"],
|
|
703
|
+
rules: {
|
|
704
|
+
"typescript/no-empty-interface": "off",
|
|
705
|
+
"typescript/no-empty-object-type": "off"
|
|
706
|
+
}
|
|
707
|
+
};
|
|
560
708
|
//#endregion
|
|
561
709
|
//#region src/index.ts
|
|
562
710
|
const config = {
|
|
@@ -566,144 +714,21 @@ const config = {
|
|
|
566
714
|
typeCheck: true
|
|
567
715
|
},
|
|
568
716
|
plugins,
|
|
569
|
-
jsPlugins
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
name: "brettz9-js",
|
|
576
|
-
specifier: "@comment-labs/oxlint-config/plugins/brettz9"
|
|
577
|
-
},
|
|
578
|
-
{
|
|
579
|
-
name: "i18next-js",
|
|
580
|
-
specifier: "@comment-labs/oxlint-config/plugins/i18next"
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
name: "import-zod-js",
|
|
584
|
-
specifier: "@comment-labs/oxlint-config/plugins/import-zod"
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
name: "playwright-js",
|
|
588
|
-
specifier: "@comment-labs/oxlint-config/plugins/playwright"
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
name: "react-hooks-js",
|
|
592
|
-
specifier: "@comment-labs/oxlint-config/plugins/react-hooks"
|
|
593
|
-
},
|
|
594
|
-
{
|
|
595
|
-
name: "react-native-js",
|
|
596
|
-
specifier: "@comment-labs/oxlint-config/plugins/react-native"
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
name: "react-refresh-js",
|
|
600
|
-
specifier: "@comment-labs/oxlint-config/plugins/react-refresh"
|
|
601
|
-
},
|
|
602
|
-
{
|
|
603
|
-
name: "security-js",
|
|
604
|
-
specifier: "@comment-labs/oxlint-config/plugins/security"
|
|
605
|
-
},
|
|
606
|
-
{
|
|
607
|
-
name: "unicorn-js",
|
|
608
|
-
specifier: "@comment-labs/oxlint-config/plugins/unicorn"
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
name: "stylistic-js",
|
|
612
|
-
specifier: "@comment-labs/oxlint-config/plugins/stylistic"
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
name: "jsdoc-js",
|
|
616
|
-
specifier: "@comment-labs/oxlint-config/plugins/jsdoc"
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
name: "e18e-js",
|
|
620
|
-
specifier: "@comment-labs/oxlint-config/plugins/e18e"
|
|
621
|
-
},
|
|
622
|
-
{
|
|
623
|
-
name: "regexp-js",
|
|
624
|
-
specifier: "@comment-labs/oxlint-config/plugins/regexp"
|
|
625
|
-
}
|
|
626
|
-
],
|
|
627
|
-
rules: baseRules,
|
|
628
|
-
globals: await getGlobals(),
|
|
717
|
+
jsPlugins,
|
|
718
|
+
rules: {
|
|
719
|
+
...baseRules,
|
|
720
|
+
...stylisticRules
|
|
721
|
+
},
|
|
722
|
+
globals,
|
|
629
723
|
categories,
|
|
630
724
|
settings: { vitest: { typecheck: true } },
|
|
631
725
|
overrides: [
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
files: [await enableMode([], ["i18next"]) ? "**/*" : "___disabled"],
|
|
641
|
-
rules: { "i18next-js/no-literal-string": "warn" }
|
|
642
|
-
},
|
|
643
|
-
{
|
|
644
|
-
files: ["**/e2e/**/*"],
|
|
645
|
-
rules: {
|
|
646
|
-
"playwright-js/consistent-spacing-between-blocks": "warn",
|
|
647
|
-
"playwright-js/expect-expect": "warn",
|
|
648
|
-
"playwright-js/max-nested-describe": "warn",
|
|
649
|
-
"playwright-js/missing-playwright-await": "error",
|
|
650
|
-
"playwright-js/no-conditional-expect": "warn",
|
|
651
|
-
"playwright-js/no-conditional-in-test": "warn",
|
|
652
|
-
"playwright-js/no-duplicate-hooks": "warn",
|
|
653
|
-
"playwright-js/no-duplicate-slow": "warn",
|
|
654
|
-
"playwright-js/no-element-handle": "warn",
|
|
655
|
-
"playwright-js/no-eval": "warn",
|
|
656
|
-
"playwright-js/no-focused-test": "error",
|
|
657
|
-
"playwright-js/no-force-option": "warn",
|
|
658
|
-
"playwright-js/no-nested-step": "warn",
|
|
659
|
-
"playwright-js/no-networkidle": "error",
|
|
660
|
-
"playwright-js/no-page-pause": "warn",
|
|
661
|
-
"playwright-js/no-skipped-test": "warn",
|
|
662
|
-
"playwright-js/no-standalone-expect": "error",
|
|
663
|
-
"playwright-js/no-unsafe-references": "error",
|
|
664
|
-
"playwright-js/no-unused-locators": "error",
|
|
665
|
-
"playwright-js/no-useless-await": "warn",
|
|
666
|
-
"playwright-js/no-useless-not": "warn",
|
|
667
|
-
"playwright-js/no-wait-for-navigation": "error",
|
|
668
|
-
"playwright-js/no-wait-for-selector": "warn",
|
|
669
|
-
"playwright-js/no-wait-for-timeout": "warn",
|
|
670
|
-
"playwright-js/prefer-hooks-in-order": "warn",
|
|
671
|
-
"playwright-js/prefer-hooks-on-top": "warn",
|
|
672
|
-
"playwright-js/prefer-locator": "warn",
|
|
673
|
-
"playwright-js/prefer-to-have-count": "warn",
|
|
674
|
-
"playwright-js/prefer-to-have-length": "warn",
|
|
675
|
-
"playwright-js/prefer-web-first-assertions": "error",
|
|
676
|
-
"playwright-js/valid-describe-callback": "error",
|
|
677
|
-
"playwright-js/valid-expect": "error",
|
|
678
|
-
"playwright-js/valid-expect-in-promise": "error",
|
|
679
|
-
"playwright-js/valid-test-tags": "error",
|
|
680
|
-
"playwright-js/valid-title": "error"
|
|
681
|
-
}
|
|
682
|
-
},
|
|
683
|
-
{
|
|
684
|
-
files: ["**/*.?(c|m)@(j|t)sx"],
|
|
685
|
-
rules: {
|
|
686
|
-
"react-hooks-js/exhaustive-deps": "error",
|
|
687
|
-
"react-hooks-js/rules-of-hooks": "warn",
|
|
688
|
-
"react-refresh-js/only-export-components": "warn"
|
|
689
|
-
}
|
|
690
|
-
},
|
|
691
|
-
{
|
|
692
|
-
files: [await enableMode([], ["react-native"]) ? "**/*.?(m)@(j|t)sx" : "___disabled"],
|
|
693
|
-
rules: {
|
|
694
|
-
"react-native-js/no-color-literals": "warn",
|
|
695
|
-
"react-native-js/no-inline-styles": "warn",
|
|
696
|
-
"react-native-js/no-raw-text": "off",
|
|
697
|
-
"react-native-js/no-single-element-style-arrays": "warn",
|
|
698
|
-
"react-native-js/no-unused-styles": "warn",
|
|
699
|
-
"react-native-js/sort-styles": "off",
|
|
700
|
-
"react-native-js/split-platform-components": "error"
|
|
701
|
-
}
|
|
702
|
-
},
|
|
703
|
-
{
|
|
704
|
-
files: ["scripts/**/*.?(m)@(j|t)s"],
|
|
705
|
-
rules: { "unicorn/no-process-exit": "warn" }
|
|
706
|
-
}
|
|
726
|
+
declarationsOverrides,
|
|
727
|
+
i18nextOverrides,
|
|
728
|
+
playwrightOverrides,
|
|
729
|
+
reactOverrides,
|
|
730
|
+
reactNativeOverrides,
|
|
731
|
+
scriptsOverrides
|
|
707
732
|
],
|
|
708
733
|
ignorePatterns: [
|
|
709
734
|
"coverage/**",
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/categories.ts","../src/base-rules.ts","../src/plugins.ts","../src/utils.ts","../src/globals.ts","../src/js-plugins.ts","../src/overrides/i18next.ts","../src/overrides/playwright.ts","../src/overrides/react.ts","../src/overrides/react-native.ts","../src/overrides/scripts.ts","../src/overrides/declarations.ts","../src/index.ts"],"sourcesContent":["import type { RuleCategories } from 'oxlint'\n\n\nexport const categories: RuleCategories = {\n correctness: 'error',\n nursery: 'warn',\n pedantic: 'warn',\n perf: 'warn',\n restriction: 'warn',\n style: 'warn',\n suspicious: 'error'\n}\n","import type { DummyRuleMap } from 'oxlint'\n\n\nexport const baseRules: DummyRuleMap = {\n 'array-type': 'off',\n 'capitalized-comments': 'off',\n 'class-methods-use-this': 'off',\n 'consistent-indexed-object-style': 'off',\n 'consistent-type-definitions': 'off',\n 'complexity': [ 'warn', { max: 50 }],\n 'default-case': 'off',\n 'exports-last': 'off',\n 'explicit-function-return-type': 'off',\n 'explicit-module-boundary-types': 'off',\n 'func-style': 'off',\n 'group-exports': 'off',\n 'id-length': 'off',\n 'init-declarations': 'off',\n 'max-dependencies': 'off',\n 'max-depth': [ 'warn', 7 ],\n 'max-lines': [\n 'warn',\n {\n max: 500,\n skipBlankLines: true,\n skipComments: true\n }\n ],\n 'max-lines-per-function': [\n 'warn',\n {\n max: 300,\n skipBlankLines: true,\n skipComments: true\n }\n ],\n 'max-params': 'off',\n 'max-statements': [ 'warn', { max: 50 }],\n 'no-array-for-each': 'off',\n 'no-array-method-this-argument': 'off',\n 'no-array-reduce': 'off',\n 'no-array-sort': 'off',\n 'no-async-await': 'off',\n 'no-await-expression-member': 'off',\n 'no-await-in-loop': 'off',\n 'no-bitwise': 'off',\n 'new-cap': 'off',\n 'no-console': 'off',\n 'no-continue': 'off',\n 'no-default-export': 'off',\n 'no-extraneous-class': 'off',\n 'no-inline-comments': 'off',\n 'no-magic-numbers': 'off',\n 'no-map-spread': 'off',\n 'no-named-export': 'off',\n 'no-namespace': 'off',\n 'no-nested-ternary': 'off',\n 'no-null': 'off',\n 'no-negated-condition': 'off',\n 'no-optional-chaining': 'off',\n 'no-plusplus': 'off',\n 'no-relative-parent-imports': 'off',\n 'no-rest-spread-properties': 'off',\n 'no-shadow': 'warn',\n 'no-ternary': 'off',\n 'no-undefined': 'off',\n 'no-unassigned-import': 'off',\n 'no-use-before-define': [ 'warn', { functions: false }],\n 'no-warning-comments': 'off',\n 'prefer-default-export': 'off',\n 'prefer-destructuring': 'off',\n 'require-await': 'off',\n 'sort-imports': 'off',\n 'sort-keys': 'off',\n\n 'typescript/consistent-type-imports': [\n 'warn',\n {\n disallowTypeAnnotations: false,\n fixStyle: 'inline-type-imports'\n }\n ],\n 'typescript/no-import-type-side-effects': 'error',\n 'typescript/parameter-properties': [ 'warn', { prefer: 'parameter-property' }],\n 'typescript/prefer-readonly-parameter-types': 'off',\n 'typescript/require-await': 'warn',\n 'typescript/non-nullable-type-assertion-style': 'warn',\n 'typescript/explicit-member-accessibility': 'off',\n 'typescript/return-await': [ 'warn', 'always' ],\n 'typescript/no-confusing-void-expression': [ 'warn', { ignoreArrowShorthand: true }],\n\n 'import/no-unassigned-import': 'warn',\n 'import/consistent-type-specifier-style': 'off',\n 'import/no-anonymous-default-export': 'off',\n 'import/no-cycle': 'off',\n 'import/no-nodejs-modules': 'off',\n 'import/unambiguous': 'off',\n\n 'react/react-in-jsx-scope': 'off',\n\n // TODO enable jest rules for vitest\n 'jest/require-hook': 'off',\n 'jest/no-conditional-in-test': 'off',\n\n 'vitest/prefer-strict-boolean-matchers': 'off',\n 'vitest/require-test-timeout': 'off',\n\n 'jsdoc/require-param-type': 'off',\n 'jsdoc/require-returns': 'off',\n 'jsdoc/require-param': 'off',\n\n 'unicorn/no-nested-ternary': 'off',\n 'unicorn/switch-case-braces': [ 'warn', 'avoid' ],\n 'unicorn/no-array-method-this-argument': 'warn',\n 'unicorn/no-await-expression-member': 'warn',\n 'unicorn/no-invalid-fetch-options': 'off',\n\n 'vitest/no-importing-vitest-globals': 'off',\n\n // custom rules\n 'comment-labs-js/no-self-assign': 'error',\n\n // js plugin rules\n 'brettz9-js/arrow-parens': 'off',\n 'brettz9-js/block-scoped-var': 'off',\n 'brettz9-js/no-instanceof-wrapper': 'error',\n 'brettz9-js/no-literal-call': 'error',\n 'brettz9-js/no-this-in-static': 'error',\n 'brettz9-js/no-use-ignored-vars': 'warn',\n 'brettz9-js/no-useless-rest-spread': 'warn',\n 'brettz9-js/prefer-for-of': 'off',\n\n 'import-zod-js/prefer-zod-namespace': 'warn',\n\n 'security-js/detect-unsafe-regex': 'error',\n 'security-js/detect-non-literal-regexp': 'error',\n 'security-js/detect-non-literal-require': 'off',\n 'security-js/detect-non-literal-fs-filename': 'off',\n 'security-js/detect-eval-with-expression': 'error',\n 'security-js/detect-pseudoRandomBytes': 'error',\n 'security-js/detect-possible-timing-attacks': 'error',\n 'security-js/detect-no-csrf-before-method-override': 'error',\n 'security-js/detect-buffer-noassert': 'error',\n 'security-js/detect-child-process': 'error',\n 'security-js/detect-disable-mustache-escape': 'error',\n 'security-js/detect-object-injection': 'off',\n 'security-js/detect-new-buffer': 'error',\n 'security-js/detect-bidi-characters': 'error',\n\n 'unicorn-js/better-regex': 'warn',\n 'unicorn-js/consistent-destructuring': 'warn',\n 'unicorn-js/consistent-template-literal-escape': 'warn',\n 'unicorn-js/no-for-loop': 'warn',\n 'unicorn-js/no-useless-iterator-to-array': 'warn',\n 'unicorn-js/prefer-export-from': 'warn',\n 'unicorn-js/prefer-simple-condition-first': 'warn',\n 'unicorn-js/prefer-switch': 'warn',\n 'unicorn-js/switch-case-break-position': 'warn',\n 'unicorn-js/prefer-single-call': 'warn',\n\n 'stylistic-js/type-generic-spacing': 'warn',\n 'stylistic-js/type-named-tuple-spacing': 'warn',\n 'stylistic-js/function-call-spacing': [\n 'warn',\n 'never'\n ],\n 'stylistic-js/semi': [\n 'warn',\n 'never'\n ],\n 'stylistic-js/space-before-blocks': 'warn',\n 'stylistic-js/space-before-function-paren': [\n 'warn',\n {\n 'anonymous': 'never',\n 'asyncArrow': 'always',\n 'named': 'never'\n }\n ],\n 'stylistic-js/space-infix-ops': [ 'warn', { int32Hint: false }],\n 'stylistic-js/semi-spacing': 'warn',\n 'stylistic-js/type-annotation-spacing': [\n 'warn', {\n after: true, before: true,\n overrides: { colon: { after: true, before: false } }\n }\n ],\n 'stylistic-js/member-delimiter-style': [\n 'warn', {\n multiline: { delimiter: 'none', requireLast: true },\n singleline: { delimiter: 'semi', requireLast: false }\n }\n ],\n 'stylistic-js/quotes': [ 'warn', 'single' ],\n 'stylistic-js/rest-spread-spacing': 'warn',\n 'stylistic-js/space-in-parens': [\n 'warn',\n 'never'\n ],\n 'stylistic-js/spaced-comment': [\n 'warn',\n 'always',\n {\n 'line': {\n 'markers': [ '/' ]\n },\n 'block': {\n 'markers': [ '!', '*' ],\n 'balanced': true\n }\n }\n ],\n 'stylistic-js/template-curly-spacing': [\n 'warn',\n 'never'\n ],\n 'stylistic-js/template-tag-spacing': 'warn',\n 'stylistic-js/array-bracket-newline': [\n 'warn',\n {\n 'multiline': true\n }\n ],\n 'stylistic-js/array-bracket-spacing': [\n 'warn',\n 'always',\n {\n 'arraysInArrays': false,\n 'objectsInArrays': false\n }\n ],\n 'stylistic-js/arrow-parens': [\n 'warn',\n 'as-needed'\n ],\n 'stylistic-js/arrow-spacing': 'warn',\n 'stylistic-js/block-spacing': [\n 'warn',\n 'always'\n ],\n 'stylistic-js/brace-style': [\n 'warn',\n '1tbs'\n ],\n 'stylistic-js/comma-dangle': [\n 'warn',\n 'never'\n ],\n 'stylistic-js/comma-spacing': [\n 'warn',\n {\n 'after': true,\n 'before': false\n }\n ],\n 'stylistic-js/comma-style': [\n 'warn',\n 'last'\n ],\n 'stylistic-js/dot-location': [\n 'warn',\n 'property'\n ],\n 'stylistic-js/eol-last': [\n 'warn',\n 'always'\n ],\n 'stylistic-js/function-call-argument-newline': [\n 'warn',\n 'consistent'\n ],\n 'stylistic-js/function-paren-newline': [\n 'warn',\n 'multiline-arguments'\n ],\n 'stylistic-js/indent': [\n 'warn',\n 2,\n {\n 'SwitchCase': 1\n }\n ],\n 'stylistic-js/key-spacing': [\n 'warn',\n {\n 'afterColon': true,\n 'beforeColon': false,\n 'mode': 'strict'\n }\n ],\n 'stylistic-js/keyword-spacing': [\n 'warn',\n {\n 'after': true,\n 'before': true\n }\n ],\n 'stylistic-js/linebreak-style': [\n 'error',\n 'unix'\n ],\n 'stylistic-js/lines-between-class-members': [\n 'warn',\n 'always',\n {\n 'exceptAfterSingleLine': true\n }\n ],\n 'stylistic-js/max-len': [\n 'warn',\n {\n 'code': 120,\n 'comments': 180,\n 'ignoreRegExpLiterals': true,\n 'ignoreStrings': true,\n 'ignoreTemplateLiterals': true,\n 'ignoreTrailingComments': true,\n 'ignoreUrls': true\n }\n ],\n 'stylistic-js/max-statements-per-line': 'warn',\n 'stylistic-js/new-parens': 'warn',\n 'stylistic-js/no-confusing-arrow': 'off',\n 'stylistic-js/no-extra-parens': [\n 'warn',\n 'functions'\n ],\n 'stylistic-js/no-extra-semi': 'warn',\n 'stylistic-js/no-floating-decimal': 'warn',\n 'stylistic-js/no-mixed-operators': [\n 'warn', {\n 'groups': [\n [ '&', '|', '^', '~', '<<', '>>', '>>>' ],\n [ '==', '!=', '===', '!==', '>', '>=', '<', '<=' ],\n [ '&&', '||' ],\n [ 'in', 'instanceof' ]\n ]\n }\n ],\n 'stylistic-js/no-mixed-spaces-and-tabs': 'warn',\n 'stylistic-js/no-multi-spaces': 'warn',\n 'stylistic-js/no-multiple-empty-lines': [\n 'warn',\n {\n 'max': 2,\n 'maxEOF': 0\n }\n ],\n 'stylistic-js/no-tabs': 'warn',\n 'stylistic-js/no-trailing-spaces': 'warn',\n 'stylistic-js/no-whitespace-before-property': 'warn',\n 'stylistic-js/object-curly-newline': [\n 'warn',\n {\n 'ExportDeclaration': {\n 'multiline': true\n },\n 'ImportDeclaration': {\n 'multiline': true\n }\n }\n ],\n 'stylistic-js/object-curly-spacing': [\n 'warn',\n 'always'\n ],\n 'stylistic-js/operator-linebreak': [\n 'warn',\n 'before'\n ],\n 'stylistic-js/padding-line-between-statements': [\n 'warn',\n { blankLine: 'always', prev: '*', next: 'return' },\n { blankLine: 'always', prev: '*', next: 'function' },\n { blankLine: 'always', prev: '*', next: 'iife' },\n { blankLine: 'always', prev: '*', next: 'class' },\n { blankLine: 'always', prev: '*', next: 'do' },\n { blankLine: 'always', prev: '*', next: 'for' },\n { blankLine: 'always', prev: '*', next: 'throw' },\n { blankLine: 'always', prev: '*', next: 'try' },\n { blankLine: 'always', prev: '*', next: 'while' },\n { blankLine: 'always', prev: '*', next: 'switch' },\n\n { blankLine: 'always', prev: '*', next: 'const' },\n { blankLine: 'any', prev: 'const', next: 'const' },\n { blankLine: 'any', prev: 'let', next: 'const' },\n { blankLine: 'always', prev: '*', next: 'let' },\n { blankLine: 'any', prev: 'let', next: 'let' },\n { blankLine: 'any', prev: 'const', next: 'let' },\n\n { blankLine: 'always', prev: '*', next: 'export' },\n { blankLine: 'any', prev: 'export', next: 'export' },\n { blankLine: 'always', prev: 'block-like', next: '*' },\n { blankLine: 'always', prev: 'multiline-block-like', next: '*' }\n ],\n\n 'jsdoc-js/check-alignment': 'warn',\n 'jsdoc-js/check-indentation': 'warn',\n 'jsdoc-js/check-line-alignment': 'warn',\n 'jsdoc-js/check-param-names': 'warn',\n 'jsdoc-js/check-types': 'warn',\n 'jsdoc-js/check-values': 'warn',\n 'jsdoc-js/multiline-blocks': 'warn',\n 'jsdoc-js/no-multi-asterisks': 'warn',\n 'jsdoc-js/no-undefined-types': 'warn',\n 'jsdoc-js/require-returns-check': 'warn',\n 'jsdoc-js/require-yields-check': 'warn',\n 'jsdoc-js/tag-lines': 'warn',\n 'jsdoc-js/valid-types': 'warn',\n\n 'e18e-js/prefer-array-at': 'error',\n 'e18e-js/prefer-array-fill': 'error',\n 'e18e-js/prefer-includes': 'error',\n 'e18e-js/prefer-array-to-reversed': 'error',\n 'e18e-js/prefer-array-to-sorted': 'error',\n 'e18e-js/prefer-array-to-spliced': 'error',\n 'e18e-js/prefer-nullish-coalescing': 'error',\n 'e18e-js/prefer-object-has-own': 'error',\n 'e18e-js/prefer-spread-syntax': 'error',\n 'e18e-js/prefer-url-canparse': 'error',\n 'e18e-js/ban-dependencies': 'error',\n 'e18e-js/prefer-array-from-map': 'error',\n 'e18e-js/prefer-timer-args': 'error',\n 'e18e-js/prefer-date-now': 'error',\n 'e18e-js/prefer-regex-test': 'error',\n 'e18e-js/prefer-array-some': 'error',\n 'e18e-js/prefer-static-regex': 'error',\n\n 'no-control-regex': 'error',\n 'no-misleading-character-class': 'error',\n 'no-regex-spaces': 'error',\n // TODO add when supported\n // 'prefer-regex-literals': 'error',\n 'no-invalid-regexp': 'off',\n 'no-useless-backreference': 'off',\n 'no-empty-character-class': 'off',\n\n 'regexp-js/confusing-quantifier': 'warn',\n 'regexp-js/control-character-escape': 'error',\n 'regexp-js/match-any': 'error',\n 'regexp-js/negation': 'error',\n 'regexp-js/no-contradiction-with-assertion': 'error',\n 'regexp-js/no-dupe-characters-character-class': 'error',\n 'regexp-js/no-dupe-disjunctions': 'error',\n 'regexp-js/no-empty-alternative': 'warn',\n 'regexp-js/no-empty-capturing-group': 'error',\n 'regexp-js/no-empty-character-class': 'error',\n 'regexp-js/no-empty-group': 'error',\n 'regexp-js/no-empty-lookarounds-assertion': 'error',\n 'regexp-js/no-empty-string-literal': 'error',\n 'regexp-js/no-escape-backspace': 'error',\n 'regexp-js/no-extra-lookaround-assertions': 'error',\n 'regexp-js/no-invalid-regexp': 'error',\n 'regexp-js/no-invisible-character': 'error',\n 'regexp-js/no-lazy-ends': 'warn',\n 'regexp-js/no-legacy-features': 'error',\n 'regexp-js/no-misleading-capturing-group': 'error',\n 'regexp-js/no-misleading-unicode-character': 'error',\n 'regexp-js/no-missing-g-flag': 'error',\n 'regexp-js/no-non-standard-flag': 'error',\n 'regexp-js/no-obscure-range': 'error',\n 'regexp-js/no-optional-assertion': 'error',\n 'regexp-js/no-potentially-useless-backreference': 'warn',\n 'regexp-js/no-super-linear-backtracking': 'error',\n 'regexp-js/no-trivially-nested-assertion': 'error',\n 'regexp-js/no-trivially-nested-quantifier': 'error',\n 'regexp-js/no-unused-capturing-group': 'error',\n 'regexp-js/no-useless-assertions': 'error',\n 'regexp-js/no-useless-backreference': 'error',\n 'regexp-js/no-useless-character-class': 'error',\n 'regexp-js/no-useless-dollar-replacements': 'error',\n 'regexp-js/no-useless-escape': 'error',\n 'regexp-js/no-useless-flag': 'warn',\n 'regexp-js/no-useless-lazy': 'error',\n 'regexp-js/no-useless-non-capturing-group': 'error',\n 'regexp-js/no-useless-quantifier': 'error',\n 'regexp-js/no-useless-range': 'error',\n 'regexp-js/no-useless-set-operand': 'error',\n 'regexp-js/no-useless-string-literal': 'error',\n 'regexp-js/no-useless-two-nums-quantifier': 'error',\n 'regexp-js/no-zero-quantifier': 'error',\n 'regexp-js/optimal-lookaround-quantifier': 'warn',\n 'regexp-js/optimal-quantifier-concatenation': 'error',\n 'regexp-js/prefer-character-class': 'error',\n 'regexp-js/prefer-d': 'error',\n 'regexp-js/prefer-plus-quantifier': 'error',\n 'regexp-js/prefer-predefined-assertion': 'error',\n 'regexp-js/prefer-question-quantifier': 'error',\n 'regexp-js/prefer-range': 'error',\n 'regexp-js/prefer-set-operation': 'error',\n 'regexp-js/prefer-star-quantifier': 'error',\n 'regexp-js/prefer-unicode-codepoint-escapes': 'error',\n 'regexp-js/prefer-w': 'error',\n 'regexp-js/simplify-set-operations': 'error',\n 'regexp-js/sort-flags': 'error',\n 'regexp-js/strict': 'error',\n 'regexp-js/use-ignore-case': 'error'\n}\n","import type { OxlintConfig } from 'oxlint'\n\n\nexport const plugins: NonNullable<OxlintConfig['plugins']> = [\n 'eslint',\n 'oxc',\n 'typescript',\n 'unicorn',\n 'import',\n 'jsdoc',\n 'react',\n 'react-perf',\n 'vitest',\n 'jsx-a11y',\n 'promise',\n 'node',\n 'vue'\n]\n","import { access, readFile } from 'node:fs/promises'\nimport { join } from 'node:path'\nimport { cwd } from 'node:process'\nimport { up } from 'empathic/find'\n\n\nexport async function enableMode(configFiles: string[], dependencies?: string[]): Promise<boolean> {\n\n const hasConfigFile = await Promise.all(configFiles.map(async file => await access(join(cwd(), file))\n .then(() => true)\n .catch(() => false)))\n\n if (hasConfigFile.some(Boolean)) {\n return true\n }\n\n const packageJson = up('package.json', { cwd: cwd() })\n if (typeof packageJson === 'string') {\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n const json = JSON.parse(await readFile(packageJson, 'utf8')) as { dependencies?: Record<string, string>; devDependencies?: Record<string, string> }\n\n return dependencies?.some(dependency =>\n json.dependencies?.[dependency] !== undefined || json.devDependencies?.[dependency] !== undefined) ?? false\n }\n\n return false\n}\n","import globalsPkg from 'globals'\nimport type { OxlintGlobals } from 'oxlint'\nimport { enableMode } from './utils'\n\n\nconst convertGlobals = (input: Record<string, boolean>): OxlintGlobals => {\n const result: Record<string, 'readonly' | 'writable'> = {}\n\n for (const [ key, value ] of Object.entries(input)) {\n result[key] = value ? 'writable' : 'readonly'\n }\n\n return result as OxlintGlobals\n}\n\nconst base: OxlintGlobals = convertGlobals(globalsPkg['shared-node-browser'])\n\nconst cloudflareSpecificGlobals: OxlintGlobals = {\n Cloudflare: 'readonly',\n URLPattern: 'readonly',\n FixedLengthStream: 'readonly',\n IdentityTransformStream: 'readonly',\n HTMLRewriter: 'readonly',\n WebSocketPair: 'readonly',\n WebSocketRequestResponsePair: 'readonly',\n scheduler: 'readonly',\n caches: 'readonly'\n}\n\nconst cloudflare: OxlintGlobals = {\n ...base,\n ...cloudflareSpecificGlobals\n}\n\nconst { Cloudflare: _, ...cloudflareWithoutCF } = cloudflare\nconst astro: OxlintGlobals = {\n ...cloudflareWithoutCF,\n Astro: 'readonly'\n}\n\nasync function getGlobals(): Promise<OxlintGlobals> {\n const isAstro = await enableMode(\n [ 'astro.config.ts', 'astro.config.mjs', 'astro.config.js' ],\n [ 'astro' ]\n )\n\n if (isAstro) {\n return astro\n }\n\n const isCloudflare = await enableMode(\n [ 'wrangler.toml', 'wrangler.json', 'wrangler.jsonc' ],\n [ '@cloudflare/workers-types', 'wrangler' ]\n )\n\n if (isCloudflare) {\n return cloudflare\n }\n\n return base\n}\n\nexport const globals = await getGlobals()\n","export const jsPlugins = [\n { name: 'comment-labs-js', specifier: '@comment-labs/oxlint-config/plugins/labs' },\n { name: 'brettz9-js', specifier: '@comment-labs/oxlint-config/plugins/brettz9' },\n { name: 'i18next-js', specifier: '@comment-labs/oxlint-config/plugins/i18next' },\n { name: 'import-zod-js', specifier: '@comment-labs/oxlint-config/plugins/import-zod' },\n { name: 'playwright-js', specifier: '@comment-labs/oxlint-config/plugins/playwright' },\n { name: 'react-hooks-js', specifier: '@comment-labs/oxlint-config/plugins/react-hooks' },\n { name: 'react-native-js', specifier: '@comment-labs/oxlint-config/plugins/react-native' },\n { name: 'react-refresh-js', specifier: '@comment-labs/oxlint-config/plugins/react-refresh' },\n { name: 'security-js', specifier: '@comment-labs/oxlint-config/plugins/security' },\n { name: 'unicorn-js', specifier: '@comment-labs/oxlint-config/plugins/unicorn' },\n { name: 'stylistic-js', specifier: '@comment-labs/oxlint-config/plugins/stylistic' },\n { name: 'jsdoc-js', specifier: '@comment-labs/oxlint-config/plugins/jsdoc' },\n { name: 'e18e-js', specifier: '@comment-labs/oxlint-config/plugins/e18e' },\n { name: 'regexp-js', specifier: '@comment-labs/oxlint-config/plugins/regexp' }\n]\n","import { enableMode } from '#/utils'\nimport type { OxlintOverride } from 'oxlint'\n\n\nconst i18next = await enableMode([], [ 'i18next' ])\n\nexport const i18nextOverrides: OxlintOverride = {\n files: [ i18next ? '**/*' : '___disabled' ],\n rules: {\n 'i18next-js/no-literal-string': 'warn'\n }\n}\n","import type { OxlintOverride } from 'oxlint'\n\n\nexport const playwrightOverrides: OxlintOverride = {\n files: [ '**/e2e/**/*' ],\n rules: {\n 'playwright-js/consistent-spacing-between-blocks': 'warn',\n 'playwright-js/expect-expect': 'warn',\n 'playwright-js/max-nested-describe': 'warn',\n 'playwright-js/missing-playwright-await': 'error',\n 'playwright-js/no-conditional-expect': 'warn',\n 'playwright-js/no-conditional-in-test': 'warn',\n 'playwright-js/no-duplicate-hooks': 'warn',\n 'playwright-js/no-duplicate-slow': 'warn',\n 'playwright-js/no-element-handle': 'warn',\n 'playwright-js/no-eval': 'warn',\n 'playwright-js/no-focused-test': 'error',\n 'playwright-js/no-force-option': 'warn',\n 'playwright-js/no-nested-step': 'warn',\n 'playwright-js/no-networkidle': 'error',\n 'playwright-js/no-page-pause': 'warn',\n 'playwright-js/no-skipped-test': 'warn',\n 'playwright-js/no-standalone-expect': 'error',\n 'playwright-js/no-unsafe-references': 'error',\n 'playwright-js/no-unused-locators': 'error',\n 'playwright-js/no-useless-await': 'warn',\n 'playwright-js/no-useless-not': 'warn',\n 'playwright-js/no-wait-for-navigation': 'error',\n 'playwright-js/no-wait-for-selector': 'warn',\n 'playwright-js/no-wait-for-timeout': 'warn',\n 'playwright-js/prefer-hooks-in-order': 'warn',\n 'playwright-js/prefer-hooks-on-top': 'warn',\n 'playwright-js/prefer-locator': 'warn',\n 'playwright-js/prefer-to-have-count': 'warn',\n 'playwright-js/prefer-to-have-length': 'warn',\n 'playwright-js/prefer-web-first-assertions': 'error',\n 'playwright-js/valid-describe-callback': 'error',\n 'playwright-js/valid-expect': 'error',\n 'playwright-js/valid-expect-in-promise': 'error',\n 'playwright-js/valid-test-tags': 'error',\n 'playwright-js/valid-title': 'error'\n }\n}\n","import type { OxlintOverride } from 'oxlint'\n\n\nexport const reactOverrides: OxlintOverride = {\n files: [ '**/*.?(c|m)@(j|t)sx' ],\n rules: {\n 'react-hooks-js/exhaustive-deps': 'error',\n 'react-hooks-js/rules-of-hooks': 'warn',\n\n 'react-refresh-js/only-export-components': 'warn'\n }\n}\n","import { enableMode } from '#/utils'\nimport type { OxlintOverride } from 'oxlint'\n\n\nconst reactNative = await enableMode([], [ 'react-native' ])\n\nexport const reactNativeOverrides: OxlintOverride = {\n files: [ reactNative ? '**/*.?(m)@(j|t)sx' : '___disabled' ],\n rules: {\n 'react-native-js/no-color-literals': 'warn',\n 'react-native-js/no-inline-styles': 'warn',\n 'react-native-js/no-raw-text': 'off',\n 'react-native-js/no-single-element-style-arrays': 'warn',\n 'react-native-js/no-unused-styles': 'warn',\n 'react-native-js/sort-styles': 'off',\n 'react-native-js/split-platform-components': 'error'\n }\n}\n","import type { OxlintOverride } from 'oxlint'\n\n\nexport const scriptsOverrides: OxlintOverride = {\n files: [ 'scripts/**/*.?(m)@(j|t)s' ],\n rules: {\n 'unicorn/no-process-exit': 'warn'\n }\n}\n","import type { OxlintOverride } from 'oxlint'\n\n\nexport const declarationsOverrides: OxlintOverride = {\n files: [ '**/*.d.ts' ],\n rules: {\n 'typescript/no-empty-interface': 'off',\n 'typescript/no-empty-object-type': 'off'\n }\n}\n","import type { OxlintConfig } from 'oxlint'\nimport { categories } from './categories'\nimport { baseRules } from './base-rules'\nimport { plugins } from './plugins'\nimport { globals } from './globals'\nimport { jsPlugins } from './js-plugins'\nimport { i18nextOverrides } from './overrides/i18next'\nimport { playwrightOverrides } from './overrides/playwright'\nimport { reactOverrides } from './overrides/react'\nimport { reactNativeOverrides } from './overrides/react-native'\nimport { scriptsOverrides } from './overrides/scripts'\nimport { declarationsOverrides } from './overrides/declarations'\n\n\nexport const config: OxlintConfig = {\n options: {\n reportUnusedDisableDirectives: 'warn',\n typeAware: true,\n typeCheck: true\n },\n plugins,\n jsPlugins,\n rules: baseRules,\n globals,\n categories,\n settings: {\n vitest: {\n typecheck: true\n }\n },\n overrides: [\n declarationsOverrides,\n i18nextOverrides,\n playwrightOverrides,\n reactOverrides,\n reactNativeOverrides,\n scriptsOverrides\n ],\n ignorePatterns: [ 'coverage/**', 'public/**', '.expo/**', '.output/**', '**/dist/**', '**/*wasm-bindgen/**' ]\n}\n"],"mappings":";;;;;;AAGA,MAAa,aAA6B;CACxC,aAAa;CACb,SAAS;CACT,UAAU;CACV,MAAM;CACN,aAAa;CACb,OAAO;CACP,YAAY;CACb;;;ACRD,MAAa,YAA0B;CACrC,cAAc;CACd,wBAAwB;CACxB,0BAA0B;CAC1B,mCAAmC;CACnC,+BAA+B;CAC/B,cAAc,CAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;CACpC,gBAAgB;CAChB,gBAAgB;CAChB,iCAAiC;CACjC,kCAAkC;CAClC,cAAc;CACd,iBAAiB;CACjB,aAAa;CACb,qBAAqB;CACrB,oBAAoB;CACpB,aAAa,CAAE,QAAQ,EAAG;CAC1B,aAAa,CACX,QACA;EACE,KAAK;EACL,gBAAgB;EAChB,cAAc;EACf,CACF;CACD,0BAA0B,CACxB,QACA;EACE,KAAK;EACL,gBAAgB;EAChB,cAAc;EACf,CACF;CACD,cAAc;CACd,kBAAkB,CAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;CACxC,qBAAqB;CACrB,iCAAiC;CACjC,mBAAmB;CACnB,iBAAiB;CACjB,kBAAkB;CAClB,8BAA8B;CAC9B,oBAAoB;CACpB,cAAc;CACd,WAAW;CACX,cAAc;CACd,eAAe;CACf,qBAAqB;CACrB,uBAAuB;CACvB,sBAAsB;CACtB,oBAAoB;CACpB,iBAAiB;CACjB,mBAAmB;CACnB,gBAAgB;CAChB,qBAAqB;CACrB,WAAW;CACX,wBAAwB;CACxB,wBAAwB;CACxB,eAAe;CAC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;IACtC,uCAAuC;IACvC,6CAA6C;IAC7C,yCAAyC;IACzC,8BAA8B;IAC9B,yCAAyC;IACzC,iCAAiC;IACjC,6BAA6B;IAC9B;GKRC;EACA;GJ9BF,OAAO,CAAE,sBAAuB;GAChC,OAAO;IACL,kCAAkC;IAClC,iCAAiC;IAEjC,2CAA2C;IAC5C;GIwBC;EACA;GH5BF,OAAO,CAAE,MAHe,WAAW,EAAE,EAAE,CAAE,eAAgB,CAAC,GAGnC,sBAAsB,cAAe;GAC5D,OAAO;IACL,qCAAqC;IACrC,oCAAoC;IACpC,+BAA+B;IAC/B,kDAAkD;IAClD,oCAAoC;IACpC,+BAA+B;IAC/B,6CAA6C;IAC9C;GGmBC;EACA;GFhCF,OAAO,CAAE,2BAA4B;GACrC,OAAO,EACL,2BAA2B,QAC5B;GE6BC;EACD;CACD,gBAAgB;EAAE;EAAe;EAAa;EAAY;EAAc;EAAc;EAAuB;CAC9G"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/categories.ts","../src/base-rules.ts","../src/stylistic-rules.ts","../src/plugins.ts","../src/utils.ts","../src/globals.ts","../src/js-plugins.ts","../src/overrides/i18next.ts","../src/overrides/playwright.ts","../src/overrides/react.ts","../src/overrides/react-native.ts","../src/overrides/scripts.ts","../src/overrides/declarations.ts","../src/index.ts"],"sourcesContent":["import type { RuleCategories } from 'oxlint'\n\n\nexport const categories: RuleCategories = {\n correctness: 'error',\n nursery: 'warn',\n pedantic: 'warn',\n perf: 'warn',\n restriction: 'warn',\n style: 'warn',\n suspicious: 'error'\n}\n","import type { DummyRuleMap } from 'oxlint'\n\n\nexport const baseRules: DummyRuleMap = {\n 'array-type': 'off',\n 'capitalized-comments': 'off',\n 'class-methods-use-this': 'off',\n 'consistent-indexed-object-style': 'off',\n 'consistent-type-definitions': 'off',\n 'complexity': [ 'warn', { max: 50 }],\n 'default-case': 'off',\n 'exports-last': 'off',\n 'explicit-function-return-type': 'off',\n 'explicit-module-boundary-types': 'off',\n 'func-style': 'off',\n 'group-exports': 'off',\n 'id-length': 'off',\n 'init-declarations': 'off',\n 'max-dependencies': 'off',\n 'max-depth': [ 'warn', 7 ],\n 'max-lines': [\n 'warn',\n {\n max: 500,\n skipBlankLines: true,\n skipComments: true\n }\n ],\n 'max-lines-per-function': [\n 'warn',\n {\n max: 300,\n skipBlankLines: true,\n skipComments: true\n }\n ],\n 'max-params': 'off',\n 'max-statements': [ 'warn', { max: 50 }],\n 'no-array-for-each': 'off',\n 'no-array-method-this-argument': 'off',\n 'no-array-reduce': 'off',\n 'no-array-sort': 'off',\n 'no-async-await': 'off',\n 'no-await-expression-member': 'off',\n 'no-await-in-loop': 'off',\n 'no-bitwise': 'off',\n 'new-cap': 'off',\n 'no-console': 'off',\n 'no-continue': 'off',\n 'no-default-export': 'off',\n 'no-extraneous-class': 'off',\n 'no-inline-comments': 'off',\n 'no-magic-numbers': 'off',\n 'no-map-spread': 'off',\n 'no-named-export': 'off',\n 'no-namespace': 'off',\n 'no-nested-ternary': 'off',\n 'no-null': 'off',\n 'no-negated-condition': 'off',\n 'no-optional-chaining': 'off',\n 'no-plusplus': 'off',\n 'no-relative-parent-imports': 'off',\n 'no-rest-spread-properties': 'off',\n 'no-shadow': 'warn',\n 'no-ternary': 'off',\n 'no-undefined': 'off',\n 'no-unassigned-import': 'off',\n 'no-use-before-define': [ 'warn', { functions: false }],\n 'no-warning-comments': 'off',\n 'prefer-default-export': 'off',\n 'prefer-destructuring': 'off',\n 'require-await': 'off',\n 'sort-imports': 'off',\n 'sort-keys': 'off',\n\n 'typescript/consistent-type-imports': [\n 'warn',\n {\n disallowTypeAnnotations: false,\n fixStyle: 'inline-type-imports'\n }\n ],\n 'typescript/no-import-type-side-effects': 'error',\n 'typescript/parameter-properties': [ 'warn', { prefer: 'parameter-property' }],\n 'typescript/prefer-readonly-parameter-types': 'off',\n 'typescript/require-await': 'warn',\n 'typescript/non-nullable-type-assertion-style': 'warn',\n 'typescript/explicit-member-accessibility': 'off',\n 'typescript/return-await': [ 'warn', 'always' ],\n 'typescript/no-confusing-void-expression': [ 'warn', { ignoreArrowShorthand: true }],\n\n 'import/no-unassigned-import': 'warn',\n 'import/consistent-type-specifier-style': 'off',\n 'import/no-anonymous-default-export': 'off',\n 'import/no-cycle': 'off',\n 'import/no-nodejs-modules': 'off',\n 'import/unambiguous': 'off',\n\n 'react/react-in-jsx-scope': 'off',\n\n // TODO enable jest rules for vitest\n 'jest/require-hook': 'off',\n 'jest/no-conditional-in-test': 'off',\n\n 'vitest/prefer-strict-boolean-matchers': 'off',\n 'vitest/require-test-timeout': 'off',\n\n 'jsdoc/require-param-type': 'off',\n 'jsdoc/require-returns': 'off',\n 'jsdoc/require-param': 'off',\n\n 'unicorn/no-nested-ternary': 'off',\n 'unicorn/switch-case-braces': [ 'warn', 'avoid' ],\n 'unicorn/no-array-method-this-argument': 'warn',\n 'unicorn/no-await-expression-member': 'warn',\n 'unicorn/no-invalid-fetch-options': 'off',\n\n 'vitest/no-importing-vitest-globals': 'off',\n\n // custom rules\n 'comment-labs-js/no-self-assign': 'error',\n\n // js plugin rules\n 'brettz9-js/arrow-parens': 'off',\n 'brettz9-js/block-scoped-var': 'off',\n 'brettz9-js/no-instanceof-wrapper': 'error',\n 'brettz9-js/no-literal-call': 'error',\n 'brettz9-js/no-this-in-static': 'error',\n 'brettz9-js/no-use-ignored-vars': 'warn',\n 'brettz9-js/no-useless-rest-spread': 'warn',\n 'brettz9-js/prefer-for-of': 'off',\n\n 'import-zod-js/prefer-zod-namespace': 'warn',\n\n 'security-js/detect-unsafe-regex': 'error',\n 'security-js/detect-non-literal-regexp': 'error',\n 'security-js/detect-non-literal-require': 'off',\n 'security-js/detect-non-literal-fs-filename': 'off',\n 'security-js/detect-eval-with-expression': 'error',\n 'security-js/detect-pseudoRandomBytes': 'error',\n 'security-js/detect-possible-timing-attacks': 'error',\n 'security-js/detect-no-csrf-before-method-override': 'error',\n 'security-js/detect-buffer-noassert': 'error',\n 'security-js/detect-child-process': 'error',\n 'security-js/detect-disable-mustache-escape': 'error',\n 'security-js/detect-object-injection': 'off',\n 'security-js/detect-new-buffer': 'error',\n 'security-js/detect-bidi-characters': 'error',\n\n 'unicorn-js/better-regex': 'warn',\n 'unicorn-js/consistent-destructuring': 'warn',\n 'unicorn-js/consistent-template-literal-escape': 'warn',\n 'unicorn-js/no-for-loop': 'warn',\n 'unicorn-js/no-useless-iterator-to-array': 'warn',\n 'unicorn-js/prefer-export-from': 'warn',\n 'unicorn-js/prefer-simple-condition-first': 'warn',\n 'unicorn-js/prefer-switch': 'warn',\n 'unicorn-js/switch-case-break-position': 'warn',\n 'unicorn-js/prefer-single-call': 'warn',\n\n 'jsdoc-js/check-alignment': 'warn',\n 'jsdoc-js/check-indentation': 'warn',\n 'jsdoc-js/check-line-alignment': 'warn',\n 'jsdoc-js/check-param-names': 'warn',\n 'jsdoc-js/check-types': 'warn',\n 'jsdoc-js/check-values': 'warn',\n 'jsdoc-js/multiline-blocks': 'warn',\n 'jsdoc-js/no-multi-asterisks': 'warn',\n 'jsdoc-js/no-undefined-types': 'warn',\n 'jsdoc-js/require-returns-check': 'warn',\n 'jsdoc-js/require-yields-check': 'warn',\n 'jsdoc-js/tag-lines': 'warn',\n 'jsdoc-js/valid-types': 'warn',\n\n 'e18e-js/prefer-array-at': 'error',\n 'e18e-js/prefer-array-fill': 'error',\n 'e18e-js/prefer-includes': 'error',\n 'e18e-js/prefer-array-to-reversed': 'error',\n 'e18e-js/prefer-array-to-sorted': 'error',\n 'e18e-js/prefer-array-to-spliced': 'error',\n 'e18e-js/prefer-nullish-coalescing': 'error',\n 'e18e-js/prefer-object-has-own': 'error',\n 'e18e-js/prefer-spread-syntax': 'error',\n 'e18e-js/prefer-url-canparse': 'error',\n 'e18e-js/ban-dependencies': 'error',\n 'e18e-js/prefer-array-from-map': 'error',\n 'e18e-js/prefer-timer-args': 'error',\n 'e18e-js/prefer-date-now': 'error',\n 'e18e-js/prefer-regex-test': 'error',\n 'e18e-js/prefer-array-some': 'error',\n 'e18e-js/prefer-static-regex': 'error',\n\n 'no-control-regex': 'error',\n 'no-misleading-character-class': 'error',\n 'no-regex-spaces': 'error',\n // TODO add when supported\n // 'prefer-regex-literals': 'error',\n 'no-invalid-regexp': 'off',\n 'no-useless-backreference': 'off',\n 'no-empty-character-class': 'off',\n\n 'regexp-js/confusing-quantifier': 'warn',\n 'regexp-js/control-character-escape': 'error',\n 'regexp-js/match-any': 'error',\n 'regexp-js/negation': 'error',\n 'regexp-js/no-contradiction-with-assertion': 'error',\n 'regexp-js/no-dupe-characters-character-class': 'error',\n 'regexp-js/no-dupe-disjunctions': 'error',\n 'regexp-js/no-empty-alternative': 'warn',\n 'regexp-js/no-empty-capturing-group': 'error',\n 'regexp-js/no-empty-character-class': 'error',\n 'regexp-js/no-empty-group': 'error',\n 'regexp-js/no-empty-lookarounds-assertion': 'error',\n 'regexp-js/no-empty-string-literal': 'error',\n 'regexp-js/no-escape-backspace': 'error',\n 'regexp-js/no-extra-lookaround-assertions': 'error',\n 'regexp-js/no-invalid-regexp': 'error',\n 'regexp-js/no-invisible-character': 'error',\n 'regexp-js/no-lazy-ends': 'warn',\n 'regexp-js/no-legacy-features': 'error',\n 'regexp-js/no-misleading-capturing-group': 'error',\n 'regexp-js/no-misleading-unicode-character': 'error',\n 'regexp-js/no-missing-g-flag': 'error',\n 'regexp-js/no-non-standard-flag': 'error',\n 'regexp-js/no-obscure-range': 'error',\n 'regexp-js/no-optional-assertion': 'error',\n 'regexp-js/no-potentially-useless-backreference': 'warn',\n 'regexp-js/no-super-linear-backtracking': 'error',\n 'regexp-js/no-trivially-nested-assertion': 'error',\n 'regexp-js/no-trivially-nested-quantifier': 'error',\n 'regexp-js/no-unused-capturing-group': 'error',\n 'regexp-js/no-useless-assertions': 'error',\n 'regexp-js/no-useless-backreference': 'error',\n 'regexp-js/no-useless-character-class': 'error',\n 'regexp-js/no-useless-dollar-replacements': 'error',\n 'regexp-js/no-useless-escape': 'error',\n 'regexp-js/no-useless-flag': 'warn',\n 'regexp-js/no-useless-lazy': 'error',\n 'regexp-js/no-useless-non-capturing-group': 'error',\n 'regexp-js/no-useless-quantifier': 'error',\n 'regexp-js/no-useless-range': 'error',\n 'regexp-js/no-useless-set-operand': 'error',\n 'regexp-js/no-useless-string-literal': 'error',\n 'regexp-js/no-useless-two-nums-quantifier': 'error',\n 'regexp-js/no-zero-quantifier': 'error',\n 'regexp-js/optimal-lookaround-quantifier': 'warn',\n 'regexp-js/optimal-quantifier-concatenation': 'error',\n 'regexp-js/prefer-character-class': 'error',\n 'regexp-js/prefer-d': 'error',\n 'regexp-js/prefer-plus-quantifier': 'error',\n 'regexp-js/prefer-predefined-assertion': 'error',\n 'regexp-js/prefer-question-quantifier': 'error',\n 'regexp-js/prefer-range': 'error',\n 'regexp-js/prefer-set-operation': 'error',\n 'regexp-js/prefer-star-quantifier': 'error',\n 'regexp-js/prefer-unicode-codepoint-escapes': 'error',\n 'regexp-js/prefer-w': 'error',\n 'regexp-js/simplify-set-operations': 'error',\n 'regexp-js/sort-flags': 'error',\n 'regexp-js/strict': 'error',\n 'regexp-js/use-ignore-case': 'error'\n}\n","import type { DummyRuleMap } from 'oxlint'\n\n\nexport const stylisticRules: DummyRuleMap = {\n 'stylistic-js/type-generic-spacing': 'warn',\n 'stylistic-js/type-named-tuple-spacing': 'warn',\n 'stylistic-js/function-call-spacing': [\n 'warn',\n 'never'\n ],\n 'stylistic-js/semi': [\n 'warn',\n 'never'\n ],\n 'stylistic-js/space-before-blocks': 'warn',\n 'stylistic-js/space-before-function-paren': [\n 'warn',\n {\n 'anonymous': 'never',\n 'asyncArrow': 'always',\n 'named': 'never'\n }\n ],\n 'stylistic-js/space-infix-ops': [ 'warn', { int32Hint: false }],\n 'stylistic-js/semi-spacing': 'warn',\n 'stylistic-js/type-annotation-spacing': [\n 'warn', {\n after: true, before: true,\n overrides: { colon: { after: true, before: false } }\n }\n ],\n 'stylistic-js/member-delimiter-style': [\n 'warn', {\n multiline: { delimiter: 'none', requireLast: true },\n singleline: { delimiter: 'semi', requireLast: false }\n }\n ],\n 'stylistic-js/quotes': [ 'warn', 'single' ],\n 'stylistic-js/rest-spread-spacing': 'warn',\n 'stylistic-js/space-in-parens': [\n 'warn',\n 'never'\n ],\n 'stylistic-js/spaced-comment': [\n 'warn',\n 'always',\n {\n 'line': {\n 'markers': [ '/' ]\n },\n 'block': {\n 'markers': [ '!', '*' ],\n 'balanced': true\n }\n }\n ],\n 'stylistic-js/template-curly-spacing': [\n 'warn',\n 'never'\n ],\n 'stylistic-js/template-tag-spacing': 'warn',\n 'stylistic-js/array-bracket-newline': [\n 'warn',\n {\n 'multiline': true\n }\n ],\n 'stylistic-js/array-bracket-spacing': [\n 'warn',\n 'always',\n {\n 'arraysInArrays': false,\n 'objectsInArrays': false\n }\n ],\n 'stylistic-js/arrow-parens': [\n 'warn',\n 'as-needed'\n ],\n 'stylistic-js/arrow-spacing': 'warn',\n 'stylistic-js/block-spacing': [\n 'warn',\n 'always'\n ],\n 'stylistic-js/brace-style': [\n 'warn',\n '1tbs'\n ],\n 'stylistic-js/comma-dangle': [\n 'warn',\n 'never'\n ],\n 'stylistic-js/comma-spacing': [\n 'warn',\n {\n 'after': true,\n 'before': false\n }\n ],\n 'stylistic-js/comma-style': [\n 'warn',\n 'last'\n ],\n 'stylistic-js/dot-location': [\n 'warn',\n 'property'\n ],\n 'stylistic-js/eol-last': [\n 'warn',\n 'always'\n ],\n 'stylistic-js/function-call-argument-newline': [\n 'warn',\n 'consistent'\n ],\n 'stylistic-js/function-paren-newline': [\n 'warn',\n 'multiline-arguments'\n ],\n 'stylistic-js/indent': [\n 'warn',\n 2,\n {\n 'SwitchCase': 1\n }\n ],\n 'stylistic-js/key-spacing': [\n 'warn',\n {\n 'afterColon': true,\n 'beforeColon': false,\n 'mode': 'strict'\n }\n ],\n 'stylistic-js/keyword-spacing': [\n 'warn',\n {\n 'after': true,\n 'before': true\n }\n ],\n 'stylistic-js/linebreak-style': [\n 'error',\n 'unix'\n ],\n 'stylistic-js/lines-between-class-members': [\n 'warn',\n 'always',\n {\n 'exceptAfterSingleLine': true\n }\n ],\n 'stylistic-js/max-len': [\n 'warn',\n {\n 'code': 120,\n 'comments': 180,\n 'ignoreRegExpLiterals': true,\n 'ignoreStrings': true,\n 'ignoreTemplateLiterals': true,\n 'ignoreTrailingComments': true,\n 'ignoreUrls': true\n }\n ],\n 'stylistic-js/max-statements-per-line': 'warn',\n 'stylistic-js/new-parens': 'warn',\n 'stylistic-js/no-confusing-arrow': 'off',\n 'stylistic-js/no-extra-parens': [\n 'warn',\n 'functions'\n ],\n 'stylistic-js/no-extra-semi': 'warn',\n 'stylistic-js/no-floating-decimal': 'warn',\n 'stylistic-js/no-mixed-operators': [\n 'warn', {\n 'groups': [\n [ '&', '|', '^', '~', '<<', '>>', '>>>' ],\n [ '==', '!=', '===', '!==', '>', '>=', '<', '<=' ],\n [ '&&', '||' ],\n [ 'in', 'instanceof' ]\n ]\n }\n ],\n 'stylistic-js/no-mixed-spaces-and-tabs': 'warn',\n 'stylistic-js/no-multi-spaces': 'warn',\n 'stylistic-js/no-multiple-empty-lines': [\n 'warn',\n {\n 'max': 2,\n 'maxEOF': 0\n }\n ],\n 'stylistic-js/no-tabs': 'warn',\n 'stylistic-js/no-trailing-spaces': 'warn',\n 'stylistic-js/no-whitespace-before-property': 'warn',\n 'stylistic-js/object-curly-newline': [\n 'warn',\n {\n 'ExportDeclaration': {\n 'multiline': true\n },\n 'ImportDeclaration': {\n 'multiline': true\n }\n }\n ],\n 'stylistic-js/object-curly-spacing': [\n 'warn',\n 'always'\n ],\n 'stylistic-js/operator-linebreak': [\n 'warn',\n 'before'\n ],\n 'stylistic-js/padding-line-between-statements': [\n 'warn',\n { blankLine: 'always', prev: '*', next: 'return' },\n { blankLine: 'always', prev: '*', next: 'function' },\n { blankLine: 'always', prev: '*', next: 'iife' },\n { blankLine: 'always', prev: '*', next: 'class' },\n { blankLine: 'always', prev: '*', next: 'do' },\n { blankLine: 'always', prev: '*', next: 'for' },\n { blankLine: 'always', prev: '*', next: 'throw' },\n { blankLine: 'always', prev: '*', next: 'try' },\n { blankLine: 'always', prev: '*', next: 'while' },\n { blankLine: 'always', prev: '*', next: 'switch' },\n\n { blankLine: 'always', prev: '*', next: 'const' },\n { blankLine: 'any', prev: 'const', next: 'const' },\n { blankLine: 'any', prev: 'let', next: 'const' },\n { blankLine: 'always', prev: '*', next: 'let' },\n { blankLine: 'any', prev: 'let', next: 'let' },\n { blankLine: 'any', prev: 'const', next: 'let' },\n\n { blankLine: 'always', prev: '*', next: 'export' },\n { blankLine: 'any', prev: 'export', next: 'export' },\n { blankLine: 'always', prev: 'block-like', next: '*' },\n { blankLine: 'always', prev: 'multiline-block-like', next: '*' }\n ]\n}\n","import type { OxlintConfig } from 'oxlint'\n\n\nexport const plugins: NonNullable<OxlintConfig['plugins']> = [\n 'eslint',\n 'oxc',\n 'typescript',\n 'unicorn',\n 'import',\n 'jsdoc',\n 'react',\n 'react-perf',\n 'vitest',\n 'jsx-a11y',\n 'promise',\n 'node',\n 'vue'\n]\n","import { access, readFile } from 'node:fs/promises'\nimport { join } from 'node:path'\nimport { cwd } from 'node:process'\nimport { up } from 'empathic/find'\n\n\nexport async function enableMode(configFiles: string[], dependencies?: string[]): Promise<boolean> {\n\n const hasConfigFile = await Promise.all(configFiles.map(async file => await access(join(cwd(), file))\n .then(() => true)\n .catch(() => false)))\n\n if (hasConfigFile.some(Boolean)) {\n return true\n }\n\n const packageJson = up('package.json', { cwd: cwd() })\n if (typeof packageJson === 'string') {\n // oxlint-disable-next-line typescript/no-unsafe-type-assertion\n const json = JSON.parse(await readFile(packageJson, 'utf8')) as { dependencies?: Record<string, string>; devDependencies?: Record<string, string> }\n\n return dependencies?.some(dependency =>\n json.dependencies?.[dependency] !== undefined || json.devDependencies?.[dependency] !== undefined) ?? false\n }\n\n return false\n}\n","import globalsPkg from 'globals'\nimport type { OxlintGlobals } from 'oxlint'\nimport { enableMode } from './utils'\n\n\nconst convertGlobals = (input: Record<string, boolean>): OxlintGlobals => {\n const result: Record<string, 'readonly' | 'writable'> = {}\n\n for (const [ key, value ] of Object.entries(input)) {\n result[key] = value ? 'writable' : 'readonly'\n }\n\n return result as OxlintGlobals\n}\n\nconst base: OxlintGlobals = convertGlobals(globalsPkg['shared-node-browser'])\n\nconst cloudflareSpecificGlobals: OxlintGlobals = {\n Cloudflare: 'readonly',\n URLPattern: 'readonly',\n FixedLengthStream: 'readonly',\n IdentityTransformStream: 'readonly',\n HTMLRewriter: 'readonly',\n WebSocketPair: 'readonly',\n WebSocketRequestResponsePair: 'readonly',\n scheduler: 'readonly',\n caches: 'readonly'\n}\n\nconst cloudflare: OxlintGlobals = {\n ...base,\n ...cloudflareSpecificGlobals\n}\n\nconst { Cloudflare: _, ...cloudflareWithoutCF } = cloudflare\nconst astro: OxlintGlobals = {\n ...cloudflareWithoutCF,\n Astro: 'readonly'\n}\n\nasync function getGlobals(): Promise<OxlintGlobals> {\n const isAstro = await enableMode(\n [ 'astro.config.ts', 'astro.config.mjs', 'astro.config.js' ],\n [ 'astro' ]\n )\n\n if (isAstro) {\n return astro\n }\n\n const isCloudflare = await enableMode(\n [ 'wrangler.toml', 'wrangler.json', 'wrangler.jsonc' ],\n [ '@cloudflare/workers-types', 'wrangler' ]\n )\n\n if (isCloudflare) {\n return cloudflare\n }\n\n return base\n}\n\nexport const globals = await getGlobals()\n","export const jsPlugins = [\n { name: 'comment-labs-js', specifier: '@comment-labs/oxlint-config/plugins/labs' },\n { name: 'brettz9-js', specifier: '@comment-labs/oxlint-config/plugins/brettz9' },\n { name: 'i18next-js', specifier: '@comment-labs/oxlint-config/plugins/i18next' },\n { name: 'import-zod-js', specifier: '@comment-labs/oxlint-config/plugins/import-zod' },\n { name: 'playwright-js', specifier: '@comment-labs/oxlint-config/plugins/playwright' },\n { name: 'react-hooks-js', specifier: '@comment-labs/oxlint-config/plugins/react-hooks' },\n { name: 'react-native-js', specifier: '@comment-labs/oxlint-config/plugins/react-native' },\n { name: 'react-refresh-js', specifier: '@comment-labs/oxlint-config/plugins/react-refresh' },\n { name: 'security-js', specifier: '@comment-labs/oxlint-config/plugins/security' },\n { name: 'unicorn-js', specifier: '@comment-labs/oxlint-config/plugins/unicorn' },\n { name: 'stylistic-js', specifier: '@comment-labs/oxlint-config/plugins/stylistic' },\n { name: 'jsdoc-js', specifier: '@comment-labs/oxlint-config/plugins/jsdoc' },\n { name: 'e18e-js', specifier: '@comment-labs/oxlint-config/plugins/e18e' },\n { name: 'regexp-js', specifier: '@comment-labs/oxlint-config/plugins/regexp' }\n]\n","import { enableMode } from '#/utils'\nimport type { OxlintOverride } from 'oxlint'\n\n\nconst i18next = await enableMode([], [ 'i18next' ])\n\nexport const i18nextOverrides: OxlintOverride = {\n files: [ i18next ? '**/*' : '___disabled' ],\n rules: {\n 'i18next-js/no-literal-string': 'warn'\n }\n}\n","import type { OxlintOverride } from 'oxlint'\n\n\nexport const playwrightOverrides: OxlintOverride = {\n files: [ '**/e2e/**/*' ],\n rules: {\n 'playwright-js/consistent-spacing-between-blocks': 'warn',\n 'playwright-js/expect-expect': 'warn',\n 'playwright-js/max-nested-describe': 'warn',\n 'playwright-js/missing-playwright-await': 'error',\n 'playwright-js/no-conditional-expect': 'warn',\n 'playwright-js/no-conditional-in-test': 'warn',\n 'playwright-js/no-duplicate-hooks': 'warn',\n 'playwright-js/no-duplicate-slow': 'warn',\n 'playwright-js/no-element-handle': 'warn',\n 'playwright-js/no-eval': 'warn',\n 'playwright-js/no-focused-test': 'error',\n 'playwright-js/no-force-option': 'warn',\n 'playwright-js/no-nested-step': 'warn',\n 'playwright-js/no-networkidle': 'error',\n 'playwright-js/no-page-pause': 'warn',\n 'playwright-js/no-skipped-test': 'warn',\n 'playwright-js/no-standalone-expect': 'error',\n 'playwright-js/no-unsafe-references': 'error',\n 'playwright-js/no-unused-locators': 'error',\n 'playwright-js/no-useless-await': 'warn',\n 'playwright-js/no-useless-not': 'warn',\n 'playwright-js/no-wait-for-navigation': 'error',\n 'playwright-js/no-wait-for-selector': 'warn',\n 'playwright-js/no-wait-for-timeout': 'warn',\n 'playwright-js/prefer-hooks-in-order': 'warn',\n 'playwright-js/prefer-hooks-on-top': 'warn',\n 'playwright-js/prefer-locator': 'warn',\n 'playwright-js/prefer-to-have-count': 'warn',\n 'playwright-js/prefer-to-have-length': 'warn',\n 'playwright-js/prefer-web-first-assertions': 'error',\n 'playwright-js/valid-describe-callback': 'error',\n 'playwright-js/valid-expect': 'error',\n 'playwright-js/valid-expect-in-promise': 'error',\n 'playwright-js/valid-test-tags': 'error',\n 'playwright-js/valid-title': 'error'\n }\n}\n","import type { OxlintOverride } from 'oxlint'\n\n\nexport const reactOverrides: OxlintOverride = {\n files: [ '**/*.?(c|m)@(j|t)sx' ],\n rules: {\n 'react-hooks-js/exhaustive-deps': 'error',\n 'react-hooks-js/rules-of-hooks': 'warn',\n\n 'react-refresh-js/only-export-components': 'warn'\n }\n}\n","import { enableMode } from '#/utils'\nimport type { OxlintOverride } from 'oxlint'\n\n\nconst reactNative = await enableMode([], [ 'react-native' ])\n\nexport const reactNativeOverrides: OxlintOverride = {\n files: [ reactNative ? '**/*.?(m)@(j|t)sx' : '___disabled' ],\n rules: {\n 'react-native-js/no-color-literals': 'warn',\n 'react-native-js/no-inline-styles': 'warn',\n 'react-native-js/no-raw-text': 'off',\n 'react-native-js/no-single-element-style-arrays': 'warn',\n 'react-native-js/no-unused-styles': 'warn',\n 'react-native-js/sort-styles': 'off',\n 'react-native-js/split-platform-components': 'error'\n }\n}\n","import type { OxlintOverride } from 'oxlint'\n\n\nexport const scriptsOverrides: OxlintOverride = {\n files: [ 'scripts/**/*.?(m)@(j|t)s' ],\n rules: {\n 'unicorn/no-process-exit': 'warn'\n }\n}\n","import type { OxlintOverride } from 'oxlint'\n\n\nexport const declarationsOverrides: OxlintOverride = {\n files: [ '**/*.d.ts' ],\n rules: {\n 'typescript/no-empty-interface': 'off',\n 'typescript/no-empty-object-type': 'off'\n }\n}\n","import type { OxlintConfig } from 'oxlint'\nimport { categories } from './categories'\nimport { baseRules } from './base-rules'\nimport { stylisticRules } from './stylistic-rules'\nimport { plugins } from './plugins'\nimport { globals } from './globals'\nimport { jsPlugins } from './js-plugins'\nimport { i18nextOverrides } from './overrides/i18next'\nimport { playwrightOverrides } from './overrides/playwright'\nimport { reactOverrides } from './overrides/react'\nimport { reactNativeOverrides } from './overrides/react-native'\nimport { scriptsOverrides } from './overrides/scripts'\nimport { declarationsOverrides } from './overrides/declarations'\n\n\nexport const config: OxlintConfig = {\n options: {\n reportUnusedDisableDirectives: 'warn',\n typeAware: true,\n typeCheck: true\n },\n plugins,\n jsPlugins,\n rules: {\n ...baseRules,\n ...stylisticRules\n },\n globals,\n categories,\n settings: {\n vitest: {\n typecheck: true\n }\n },\n overrides: [\n declarationsOverrides,\n i18nextOverrides,\n playwrightOverrides,\n reactOverrides,\n reactNativeOverrides,\n scriptsOverrides\n ],\n ignorePatterns: [ 'coverage/**', 'public/**', '.expo/**', '.output/**', '**/dist/**', '**/*wasm-bindgen/**' ]\n}\n"],"mappings":";;;;;;AAGA,MAAa,aAA6B;CACxC,aAAa;CACb,SAAS;CACT,UAAU;CACV,MAAM;CACN,aAAa;CACb,OAAO;CACP,YAAY;CACb;;;ACRD,MAAa,YAA0B;CACrC,cAAc;CACd,wBAAwB;CACxB,0BAA0B;CAC1B,mCAAmC;CACnC,+BAA+B;CAC/B,cAAc,CAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;CACpC,gBAAgB;CAChB,gBAAgB;CAChB,iCAAiC;CACjC,kCAAkC;CAClC,cAAc;CACd,iBAAiB;CACjB,aAAa;CACb,qBAAqB;CACrB,oBAAoB;CACpB,aAAa,CAAE,QAAQ,EAAG;CAC1B,aAAa,CACX,QACA;EACE,KAAK;EACL,gBAAgB;EAChB,cAAc;EACf,CACF;CACD,0BAA0B,CACxB,QACA;EACE,KAAK;EACL,gBAAgB;EAChB,cAAc;EACf,CACF;C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3C,oCAAoC;CACpC,gCAAgC,CAC9B,QACA,QACD;CACD,+BAA+B;EAC7B;EACA;EACA;GACE,QAAQ,EACN,WAAW,CAAE,IAAK,EACnB;GACD,SAAS;IACP,WAAW,CAAE,KAAK,IAAK;IACvB,YAAY;IACb;GACF;EACF;CACD,uCAAuC,CACrC,QACA,QACD;CACD,qCAAqC;CACrC,sCAAsC,CACpC,QACA,EACE,aAAa,MACd,CACF;CACD,sCAAsC;EACpC;EACA;EACA;GACE,kBAAkB;GAClB,mBAAmB;GACpB;EACF;CACD,6BAA6B,CAC3B,QACA,YACD;CACD,8BAA8B;CAC9B,8BAA8B,CAC5B,QACA,SACD;CACD,4BAA4B,CAC1B,QACA,OACD;CACD,6BAA6B,CAC3B,QACA,QACD;CACD,8BAA8B,CAC5B,QACA;EACE,SAAS;EACT,UAAU;EACX,CACF;CACD,4BAA4B,CAC1B,QACA,OACD;CACD,6BAA6B,CAC3B,QACA,WACD;CACD,yBAAyB,CACvB,QACA,SACD;CACD,+CAA+C,CAC7C,QACA,aACD;CACD,uCAAuC,CACrC,QACA,sBACD;CACD,uBAAuB;EACrB;EACA;EACA,EACE,cAAc,GACf;EACF;CACD,4BAA4B,CAC1B,QACA;EACE,cAAc;EACd,eAAe;EACf,QAAQ;EACT,CACF;CACD,gCAAgC,CAC9B,QACA;EACE,SAAS;EACT,UAAU;EACX,CACF;CACD,gCAAgC,CAC9B,SACA,OACD;CACD,4CAA4C;EAC1C;EACA;EACA,EACE,yBAAyB,MAC1B;EACF;CACD,wBAAwB,CACtB,QACA;EACE,QAAQ;EACR,YAAY;EACZ,wBAAwB;EACxB,iBAAiB;EACjB,0BAA0B;EAC1B,0BAA0B;EAC1B,cAAc;EACf,CACF;CACD,wCAAwC;CACxC,2BAA2B;CAC3B,mCAAmC;CACnC,gCAAgC,CAC9B,QACA,YACD;CACD,8BAA8B;CAC9B,oCAAoC;CACpC,mCAAmC,CACjC,QAAQ,EACN,UAAU;EACR;GAAE;GAAK;GAAK;G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$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@comment-labs/oxlint-config",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.15",
|
|
5
5
|
"description": "Oxlint configuration for comment-labs projects",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"type": "module",
|