@comment-labs/oxlint-config 1.0.6 → 1.0.8

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.
Files changed (44) hide show
  1. package/dist/index.d.mts +0 -2
  2. package/dist/index.mjs +78 -46
  3. package/dist/index.mjs.map +1 -1
  4. package/dist/plugins/anti-slop.d.mts +4 -0
  5. package/dist/plugins/anti-slop.mjs +7 -0
  6. package/dist/plugins/anti-slop.mjs.map +1 -0
  7. package/dist/plugins/brettz9.d.mts +1 -3
  8. package/dist/plugins/brettz9.mjs +2 -3
  9. package/dist/plugins/e18e.d.mts +1 -3
  10. package/dist/plugins/e18e.mjs +2 -3
  11. package/dist/plugins/i18next.d.mts +0 -2
  12. package/dist/plugins/i18next.mjs +6 -11
  13. package/dist/plugins/i18next.mjs.map +1 -1
  14. package/dist/plugins/jsdoc.d.mts +1 -3
  15. package/dist/plugins/jsdoc.mjs +2 -3
  16. package/dist/plugins/labs.d.mts +0 -2
  17. package/dist/plugins/labs.mjs +2 -4
  18. package/dist/plugins/labs.mjs.map +1 -1
  19. package/dist/plugins/playwright.d.mts +1 -3
  20. package/dist/plugins/playwright.mjs +2 -3
  21. package/dist/plugins/react-hooks.d.mts +1 -3
  22. package/dist/plugins/react-hooks.mjs +2 -3
  23. package/dist/plugins/react-native.d.mts +1 -3
  24. package/dist/plugins/react-native.mjs +2 -3
  25. package/dist/plugins/react-refresh.d.mts +1 -3
  26. package/dist/plugins/react-refresh.mjs +2 -3
  27. package/dist/plugins/regexp.d.mts +1 -3
  28. package/dist/plugins/regexp.mjs +2 -3
  29. package/dist/plugins/security.d.mts +1 -3
  30. package/dist/plugins/security.mjs +2 -3
  31. package/dist/plugins/stylistic.d.mts +1 -3
  32. package/dist/plugins/stylistic.mjs +2 -3
  33. package/dist/plugins/unicorn.d.mts +1 -3
  34. package/dist/plugins/unicorn.mjs +2 -3
  35. package/dist/plugins/zod.d.mts +4 -0
  36. package/dist/plugins/zod.mjs +7 -0
  37. package/dist/plugins/zod.mjs.map +1 -0
  38. package/dist/{sanitize-plugin-CAJduUuZ.mjs → sanitize-plugin-DZgftcJx.mjs} +2 -3
  39. package/dist/{sanitize-plugin-CAJduUuZ.mjs.map → sanitize-plugin-DZgftcJx.mjs.map} +1 -1
  40. package/dist/{sanitize-plugin-_kmEeqj0.d.mts → sanitize-plugin-DfbJP7oI.d.mts} +1 -3
  41. package/package.json +14 -13
  42. package/dist/plugins/import-zod.d.mts +0 -6
  43. package/dist/plugins/import-zod.mjs +0 -8
  44. package/dist/plugins/import-zod.mjs.map +0 -1
package/dist/index.d.mts CHANGED
@@ -1,5 +1,3 @@
1
1
  import { OxlintConfig } from "oxlint";
2
- //#region src/index.d.ts
3
2
  export declare const config: OxlintConfig;
4
- //#endregion
5
3
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { access, readFile } from "node:fs/promises";
3
3
  import { join } from "node:path";
4
4
  import { cwd } from "node:process";
5
5
  import { up } from "empathic/find";
6
- //#region src/categories.ts
6
+ // src/categories.ts
7
7
  const categories = {
8
8
  correctness: "error",
9
9
  nursery: "warn",
@@ -13,8 +13,7 @@ const categories = {
13
13
  style: "warn",
14
14
  suspicious: "error"
15
15
  };
16
- //#endregion
17
- //#region src/base-rules.ts
16
+ // src/base-rules.ts
18
17
  const baseRules = {
19
18
  "array-type": "off",
20
19
  "capitalized-comments": "off",
@@ -105,6 +104,7 @@ const baseRules = {
105
104
  "react/react-in-jsx-scope": "off",
106
105
  "react/jsx-filename-extension": ["error", { extensions: ["jsx", "tsx"] }],
107
106
  "react/jsx-no-literals": "off",
107
+ "jsx-a11y/label-has-associated-control": ["error", { controlComponents: ["RadioGroupItem"] }],
108
108
  "jest/require-hook": "off",
109
109
  "jest/no-conditional-in-test": "off",
110
110
  "jest/prefer-expect-assertions": "off",
@@ -120,10 +120,12 @@ const baseRules = {
120
120
  "jsdoc/require-returns": "off",
121
121
  "jsdoc/require-param": "off",
122
122
  "unicorn/no-nested-ternary": "off",
123
+ "unicorn/no-array-reverse": "off",
123
124
  "unicorn/switch-case-braces": ["warn", "avoid"],
124
125
  "unicorn/no-array-method-this-argument": "warn",
125
126
  "unicorn/no-await-expression-member": "off",
126
127
  "unicorn/no-invalid-fetch-options": "off",
128
+ "unicorn/require-post-message-target-origin": "off",
127
129
  "unicorn/import-style": ["warn", {
128
130
  extendDefaultStyles: false,
129
131
  styles: {
@@ -147,7 +149,49 @@ const baseRules = {
147
149
  "brettz9-js/no-use-ignored-vars": "warn",
148
150
  "brettz9-js/no-useless-rest-spread": "warn",
149
151
  "brettz9-js/prefer-for-of": "off",
150
- "import-zod-js/prefer-zod-namespace": "warn",
152
+ "zod/consistent-import": "error",
153
+ "zod/consistent-schema-output-type-style": "warn",
154
+ "zod/consistent-schema-var-name": ["error", {
155
+ before: "z",
156
+ after: ""
157
+ }],
158
+ "zod/no-any-schema": "error",
159
+ "zod/no-coerce-boolean": "error",
160
+ "zod/no-conflicting-checks": "error",
161
+ "zod/no-duplicate-schema-methods": "error",
162
+ "zod/no-empty-custom-schema": "error",
163
+ "zod/no-function-scoped-schema": "error",
164
+ "zod/no-native-enum": "error",
165
+ "zod/no-number-schema-with-finite": "error",
166
+ "zod/no-number-schema-with-int": "error",
167
+ "zod/no-number-schema-with-is-finite": "error",
168
+ "zod/no-number-schema-with-is-int": "error",
169
+ "zod/no-number-schema-with-safe": "error",
170
+ "zod/no-number-schema-with-step": "error",
171
+ "zod/no-optional-and-default-together": "error",
172
+ "zod/no-promise-schema": "error",
173
+ "zod/no-reshape-on-refined-object": "error",
174
+ "zod/no-schema-with-is-nullable": "error",
175
+ "zod/no-schema-with-is-optional": "error",
176
+ "zod/no-throw-in-refine": "error",
177
+ "zod/no-transform-in-record-key": "error",
178
+ "zod/no-unnecessary-readonly": "error",
179
+ "zod/prefer-map-set-size-over-min-max": "error",
180
+ "zod/prefer-meta": "error",
181
+ "zod/prefer-nullish": "error",
182
+ "zod/prefer-string-length-over-min-max": "error",
183
+ "zod/prefer-string-schema-with-trim": "error",
184
+ "zod/prefer-top-level-string-formats": "error",
185
+ "zod/prefer-trim-before-string-length-checks": "error",
186
+ "zod/prefer-tuple-over-array-length": "error",
187
+ "zod/require-brand-type-parameter": "error",
188
+ "zod/require-error-message": "error",
189
+ "anti-slop/no-chained-type-assertions": "error",
190
+ "anti-slop/no-unnecessary-type-widening": "error",
191
+ "anti-slop/no-object-parameters": "error",
192
+ "anti-slop/no-meaningless-unknown-aliases": "error",
193
+ "anti-slop/no-unsafe-dictionary-values": "error",
194
+ "anti-slop/no-narrowing-after-widening": "error",
151
195
  "security-js/detect-unsafe-regex": "error",
152
196
  "security-js/detect-non-literal-regexp": "error",
153
197
  "security-js/detect-non-literal-require": "off",
@@ -253,7 +297,7 @@ const baseRules = {
253
297
  "e18e-js/prefer-url-canparse": "error",
254
298
  "e18e-js/ban-dependencies": "error",
255
299
  "e18e-js/prefer-array-from-map": "error",
256
- "e18e-js/prefer-timer-args": "error",
300
+ "e18e-js/prefer-timer-args": "off",
257
301
  "e18e-js/prefer-date-now": "error",
258
302
  "e18e-js/prefer-regex-test": "error",
259
303
  "e18e-js/prefer-array-some": "error",
@@ -325,11 +369,22 @@ const baseRules = {
325
369
  "regexp-js/strict": "error",
326
370
  "regexp-js/use-ignore-case": "error"
327
371
  };
328
- //#endregion
329
- //#region src/stylistic-rules.ts
372
+ // src/stylistic-rules.ts
330
373
  const stylisticRules = {
331
374
  "stylistic-js/type-generic-spacing": "warn",
332
375
  "stylistic-js/type-named-tuple-spacing": "warn",
376
+ "stylistic-js/list-style": ["warn", {
377
+ empty: "never",
378
+ singleLine: { spacing: "never" },
379
+ overrides: {
380
+ ArrayExpression: { singleLine: { spacing: "always" } },
381
+ ArrayPattern: { singleLine: { spacing: "always" } },
382
+ ObjectExpression: { singleLine: { spacing: "always" } },
383
+ ObjectPattern: { singleLine: { spacing: "always" } },
384
+ ImportDeclaration: { singleLine: { spacing: "always" } },
385
+ ExportNamedDeclaration: { singleLine: { spacing: "always" } }
386
+ }
387
+ }],
333
388
  "stylistic-js/function-call-spacing": ["warn", "never"],
334
389
  "stylistic-js/semi": ["warn", "never"],
335
390
  "stylistic-js/space-before-blocks": "warn",
@@ -374,15 +429,6 @@ const stylisticRules = {
374
429
  ],
375
430
  "stylistic-js/template-curly-spacing": ["warn", "never"],
376
431
  "stylistic-js/template-tag-spacing": "warn",
377
- "stylistic-js/array-bracket-newline": ["warn", { "multiline": true }],
378
- "stylistic-js/array-bracket-spacing": [
379
- "warn",
380
- "always",
381
- {
382
- "arraysInArrays": false,
383
- "objectsInArrays": false
384
- }
385
- ],
386
432
  "stylistic-js/arrow-parens": ["warn", "as-needed"],
387
433
  "stylistic-js/arrow-spacing": "warn",
388
434
  "stylistic-js/block-spacing": ["warn", "always"],
@@ -395,8 +441,6 @@ const stylisticRules = {
395
441
  "stylistic-js/comma-style": ["warn", "last"],
396
442
  "stylistic-js/dot-location": ["warn", "property"],
397
443
  "stylistic-js/eol-last": ["warn", "always"],
398
- "stylistic-js/function-call-argument-newline": ["warn", "consistent"],
399
- "stylistic-js/function-paren-newline": ["warn", "multiline-arguments"],
400
444
  "stylistic-js/indent": [
401
445
  "warn",
402
446
  2,
@@ -464,11 +508,6 @@ const stylisticRules = {
464
508
  "stylistic-js/no-tabs": "warn",
465
509
  "stylistic-js/no-trailing-spaces": "warn",
466
510
  "stylistic-js/no-whitespace-before-property": "warn",
467
- "stylistic-js/object-curly-newline": ["warn", {
468
- "ExportDeclaration": { "multiline": true },
469
- "ImportDeclaration": { "multiline": true }
470
- }],
471
- "stylistic-js/object-curly-spacing": ["warn", "always"],
472
511
  "stylistic-js/operator-linebreak": ["warn", "before"],
473
512
  "stylistic-js/padding-line-between-statements": [
474
513
  "warn",
@@ -574,8 +613,7 @@ const stylisticRules = {
574
613
  }
575
614
  ]
576
615
  };
577
- //#endregion
578
- //#region src/plugins.ts
616
+ // src/plugins.ts
579
617
  const plugins = [
580
618
  "eslint",
581
619
  "oxc",
@@ -591,8 +629,7 @@ const plugins = [
591
629
  "node",
592
630
  "vue"
593
631
  ];
594
- //#endregion
595
- //#region src/utils.ts
632
+ // src/utils.ts
596
633
  async function enableMode(configFiles, dependencies) {
597
634
  if ((await Promise.all(configFiles.map(async (file) => await access(join(cwd(), file)).then(() => true).catch(() => false)))).some(Boolean)) return true;
598
635
  const packageJson = up("package.json", { cwd: cwd() });
@@ -602,8 +639,7 @@ async function enableMode(configFiles, dependencies) {
602
639
  }
603
640
  return false;
604
641
  }
605
- //#endregion
606
- //#region src/globals.ts
642
+ // src/globals.ts
607
643
  const convertGlobals = (input) => {
608
644
  const result = {};
609
645
  for (const [key, value] of Object.entries(input)) result[key] = value ? "writable" : "readonly";
@@ -650,13 +686,16 @@ async function getGlobals() {
650
686
  return base;
651
687
  }
652
688
  const globals = await getGlobals();
653
- //#endregion
654
- //#region src/js-plugins.ts
689
+ // src/js-plugins.ts
655
690
  const jsPlugins = [
656
691
  {
657
692
  name: "comment-labs-js",
658
693
  specifier: "@comment-labs/oxlint-config/plugins/labs"
659
694
  },
695
+ {
696
+ name: "anti-slop",
697
+ specifier: "@comment-labs/oxlint-config/plugins/anti-slop"
698
+ },
660
699
  {
661
700
  name: "brettz9-js",
662
701
  specifier: "@comment-labs/oxlint-config/plugins/brettz9"
@@ -666,8 +705,8 @@ const jsPlugins = [
666
705
  specifier: "@comment-labs/oxlint-config/plugins/i18next"
667
706
  },
668
707
  {
669
- name: "import-zod-js",
670
- specifier: "@comment-labs/oxlint-config/plugins/import-zod"
708
+ name: "zod",
709
+ specifier: "@comment-labs/oxlint-config/plugins/zod"
671
710
  },
672
711
  {
673
712
  name: "playwright-js",
@@ -717,8 +756,7 @@ const i18nextOverrides = {
717
756
  "react/jsx-no-literals": "warn"
718
757
  }
719
758
  };
720
- //#endregion
721
- //#region src/overrides/playwright.ts
759
+ // src/overrides/playwright.ts
722
760
  const playwrightOverrides = {
723
761
  files: ["**/e2e/**/*"],
724
762
  rules: {
@@ -759,8 +797,7 @@ const playwrightOverrides = {
759
797
  "playwright-js/valid-title": "error"
760
798
  }
761
799
  };
762
- //#endregion
763
- //#region src/overrides/react.ts
800
+ // src/overrides/react.ts
764
801
  const reactOverrides = {
765
802
  files: ["**/*.?(c|m)@(j|t)sx"],
766
803
  rules: {
@@ -781,14 +818,12 @@ const reactNativeOverrides = {
781
818
  "react-native-js/split-platform-components": "error"
782
819
  }
783
820
  };
784
- //#endregion
785
- //#region src/overrides/scripts.ts
821
+ // src/overrides/scripts.ts
786
822
  const scriptsOverrides = {
787
823
  files: ["scripts/**/*.?(m)@(j|t)s"],
788
824
  rules: { "unicorn/no-process-exit": "warn" }
789
825
  };
790
- //#endregion
791
- //#region src/overrides/declarations.ts
826
+ // src/overrides/declarations.ts
792
827
  const declarationsOverrides = {
793
828
  files: ["**/*.d.ts"],
794
829
  rules: {
@@ -797,8 +832,7 @@ const declarationsOverrides = {
797
832
  "typescript/no-empty-object-type": "off"
798
833
  }
799
834
  };
800
- //#endregion
801
- //#region src/overrides/vitest.ts
835
+ // src/overrides/vitest.ts
802
836
  const vitestOverrides = {
803
837
  files: ["**/{test,tests}/**/*.{js,jsx,ts,tsx,mjs,cjs,mts,cts}", "**/*.{test,spec}.{js,jsx,ts,tsx,mjs,cjs,mts,cts}"],
804
838
  rules: {
@@ -810,8 +844,7 @@ const vitestOverrides = {
810
844
  "vitest/require-hook": "warn"
811
845
  }
812
846
  };
813
- //#endregion
814
- //#region src/index.ts
847
+ // src/index.ts
815
848
  const config = {
816
849
  options: {
817
850
  reportUnusedDisableDirectives: "warn",
@@ -846,7 +879,6 @@ const config = {
846
879
  "**/tests/fixtures/**/*"
847
880
  ]
848
881
  };
849
- //#endregion
850
882
  export { config };
851
883
 
852
884
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
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/overrides/vitest.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-in-loop': 'off',\n 'no-bitwise': 'off',\n 'new-cap': 'off',\n 'no-async-endpoint-handlers': '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 'one-var': '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/method-signature-style': '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 'node/no-top-level-await': 'off',\n 'node/no-sync': 'off',\n\n 'react/react-in-jsx-scope': 'off',\n 'react/jsx-filename-extension': [ 'error', { extensions: [ 'jsx', 'tsx' ] }],\n 'react/jsx-no-literals': 'off',\n\n // TODO enable jest rules for vitest\n 'jest/require-hook': 'off',\n 'jest/no-conditional-in-test': 'off',\n 'jest/prefer-expect-assertions': 'off',\n\n 'vitest/prefer-called-times': 'off',\n 'vitest/prefer-expect-assertions': 'off',\n 'vitest/prefer-strict-boolean-matchers': 'off',\n 'vitest/require-hook': 'off',\n 'vitest/require-test-timeout': 'off',\n 'vitest/no-importing-vitest-globals': 'off',\n 'vitest/no-conditional-in-test': 'off',\n 'vitest/no-hooks': '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': 'off',\n 'unicorn/no-invalid-fetch-options': 'off',\n 'unicorn/import-style': [\n 'warn', {\n extendDefaultStyles: false,\n styles: {\n 'path': { named: true, default: false },\n 'util': { named: true, default: false }\n }\n }\n ],\n 'unicorn/max-nested-calls': [\n 'warn', {\n max: 5\n }\n ],\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/class-reference-in-static-methods': 'warn',\n 'unicorn-js/consistent-conditional-object-spread': 'warn',\n 'unicorn-js/consistent-destructuring': 'warn',\n 'unicorn-js/consistent-json-file-read': 'warn',\n 'unicorn-js/consistent-template-literal-escape': 'warn',\n 'unicorn-js/consistent-tuple-labels': 'warn',\n 'unicorn-js/default-export-style': 'warn',\n 'unicorn-js/no-array-concat-in-loop': 'warn',\n 'unicorn-js/no-array-splice': 'warn',\n 'unicorn-js/no-computed-property-existence-check': 'warn',\n 'unicorn-js/no-confusing-array-splice': 'warn',\n 'unicorn-js/no-duplicate-if-branches': 'warn',\n 'unicorn-js/no-duplicate-loops': 'warn',\n 'unicorn-js/no-duplicate-set-values': 'warn',\n 'unicorn-js/no-for-loop': 'warn',\n 'unicorn-js/no-incorrect-query-selector': 'warn',\n 'unicorn-js/no-incorrect-template-string-interpolation': 'warn',\n 'unicorn-js/no-late-current-target-access': 'warn',\n 'unicorn-js/no-late-event-control': 'warn',\n 'unicorn-js/no-loop-iterable-mutation': 'warn',\n 'unicorn-js/no-mismatched-map-key': 'warn',\n 'unicorn-js/no-non-function-verb-prefix': 'warn',\n 'unicorn-js/no-object-methods-with-collections': 'warn',\n 'unicorn-js/no-optional-chaining-on-undeclared-variable': 'warn',\n 'unicorn-js/no-return-array-push': 'warn',\n 'unicorn-js/no-selector-as-dom-name': 'warn',\n 'unicorn-js/no-this-outside-of-class': 'warn',\n 'unicorn-js/no-top-level-assignment-in-function': 'warn',\n 'unicorn-js/no-uncalled-method': 'warn',\n 'unicorn-js/no-undeclared-class-members': 'warn',\n 'unicorn-js/no-unnecessary-array-flat-map': 'warn',\n 'unicorn-js/no-unnecessary-boolean-comparison': 'warn',\n 'unicorn-js/no-unnecessary-splice': 'warn',\n 'unicorn-js/no-unsafe-property-key': 'warn',\n 'unicorn-js/no-useless-else': 'warn',\n 'unicorn-js/no-useless-iterator-to-array': 'warn',\n 'unicorn-js/prefer-abort-signal-any': 'warn',\n 'unicorn-js/prefer-abort-signal-timeout': 'warn',\n 'unicorn-js/prefer-array-from-async': 'warn',\n 'unicorn-js/prefer-array-iterable-methods': 'warn',\n 'unicorn-js/prefer-array-slice': 'warn',\n 'unicorn-js/prefer-continue': 'warn',\n 'unicorn-js/prefer-dom-node-html-methods': 'warn',\n 'unicorn-js/prefer-else-if': 'warn',\n 'unicorn-js/prefer-export-from': 'warn',\n 'unicorn-js/prefer-get-or-insert-computed': 'warn',\n 'unicorn-js/prefer-group-by': 'warn',\n 'unicorn-js/prefer-hoisting-branch-code': 'warn',\n 'unicorn-js/prefer-includes-over-repeated-comparisons': 'warn',\n 'unicorn-js/prefer-iterator-to-array': 'warn',\n 'unicorn-js/prefer-location-assign': 'warn',\n 'unicorn-js/prefer-number-is-safe-integer': 'warn',\n 'unicorn-js/prefer-object-destructuring-defaults': 'warn',\n 'unicorn-js/prefer-observer-apis': 'warn',\n 'unicorn-js/prefer-private-class-fields': 'warn',\n 'unicorn-js/prefer-promise-try': 'warn',\n 'unicorn-js/prefer-scoped-selector': 'warn',\n 'unicorn-js/prefer-set-methods': 'warn',\n 'unicorn-js/prefer-simple-condition-first': 'warn',\n 'unicorn-js/prefer-single-call': 'warn',\n 'unicorn-js/prefer-single-object-destructuring': 'warn',\n 'unicorn-js/prefer-smaller-scope': 'warn',\n 'unicorn-js/prefer-switch': 'warn',\n 'unicorn-js/prefer-then-catch': 'warn',\n 'unicorn-js/prefer-type-literal-last': 'warn',\n 'unicorn-js/switch-case-break-position': '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\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', 'cloudflare.config.ts' ],\n [ '@cloudflare/workers-types', 'wrangler', '@cloudflare/vite-plugin', '@cloudflare/vitest-plugin' ]\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 'react/jsx-no-literals': '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 'no-redeclare': 'off',\n 'typescript/no-empty-interface': 'off',\n 'typescript/no-empty-object-type': 'off'\n }\n}\n","import type { OxlintOverride } from 'oxlint'\n\n\nexport const vitestOverrides: OxlintOverride = {\n files: [\n '**/{test,tests}/**/*.{js,jsx,ts,tsx,mjs,cjs,mts,cts}',\n '**/*.{test,spec}.{js,jsx,ts,tsx,mjs,cjs,mts,cts}'\n ],\n rules: {\n 'vitest/max-expects': 'off',\n 'vitest/prefer-expect-assertions': [\n 'warn', {\n onlyFunctionsWithExpectInCallback: true,\n onlyFunctionsWithExpectInLoop: true\n }\n ],\n 'vitest/require-hook': 'warn'\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'\nimport { vitestOverrides } from './overrides/vitest'\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 vitestOverrides\n ],\n ignorePatterns: [ 'coverage/**', 'public/**', '.expo/**', '.output/**', '**/dist/**', '**/*wasm-bindgen/**', '**/tests/fixtures/**/*' ]\n}\n"],"mappings":";;;;;;AAGA,MAAa,aAA6B;CACxC,aAAa;CACb,SAAS;CACT,UAAU;CACV,MAAM;CACN,aAAa;CACb,OAAO;CACP,YAAY;AACd;;;ACRA,MAAa,YAA0B;CACrC,cAAc;CACd,wBAAwB;CACxB,0BAA0B;CAC1B,mCAAmC;CACnC,+BAA+B;CAC/B,cAAc,CAAE,QAAQ,EAAE,KAAK,GAAG,CAAC;CACnC,gBAAgB;CAChB,gBAAgB;CAChB,iCAAiC;CACjC,kCAAkC;CAClC,cAAc;CACd,iBAAiB;CACjB,aAAa;CACb,qBAAqB;CACrB,oBAAoB;CACpB,aAAa,CAAE,QAAQ,CAAE;CACzB,aAAa,CACX,QACA;EACE,KAAK;EACL,gBAAgB;EAChB,cAAc;CAChB,CACF;CACA,0BAA0B,CACxB,QACA;EACE,KAAK;EACL,gBAAgB;EAChB,cAAc;CAChB,CACF;CACA,cAAc;CACd,kBAAkB,CAAE,QAAQ,EAAE,KAAK,GAAG,CAAC;CACvC,qBAAqB;CACrB,iCAAiC;CACjC,mBAAmB;CACnB,iBAAiB;CACjB,kBAAkB;CAClB,oBAAoB;CACpB,cAAc;CACd,WAAW;CACX,8BAA8B;CAC9B,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,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,6CAA6C;EAC7C,yCAAyC;EACzC,8BAA8B;EAC9B,yCAAyC;EACzC,iCAAiC;EACjC,6BAA6B;CAC/B;AACF;;;ACvCA,MAAa,iBAAiC;CAC5C,OAAO,CAAE,qBAAsB;CAC/B,OAAO;EACL,kCAAkC;EAClC,iCAAiC;EAEjC,2CAA2C;CAC7C;AACF;ACLA,MAAa,uBAAuC;CAClD,OAAO,CAAE,MAHe,WAAW,CAAC,GAAG,CAAE,cAAe,CAAC,IAGlC,sBAAsB,aAAc;CAC3D,OAAO;EACL,qCAAqC;EACrC,oCAAoC;EACpC,+BAA+B;EAC/B,kDAAkD;EAClD,oCAAoC;EACpC,+BAA+B;EAC/B,6CAA6C;CAC/C;AACF;;;ACdA,MAAa,mBAAmC;CAC9C,OAAO,CAAE,0BAA2B;CACpC,OAAO,EACL,2BAA2B,OAC7B;AACF;;;ACLA,MAAa,wBAAwC;CACnD,OAAO,CAAE,WAAY;CACrB,OAAO;EACL,gBAAgB;EAChB,iCAAiC;EACjC,mCAAmC;CACrC;AACF;;;ACPA,MAAa,kBAAkC;CAC7C,OAAO,CACL,wDACA,kDACF;CACA,OAAO;EACL,sBAAsB;EACtB,mCAAmC,CACjC,QAAQ;GACN,mCAAmC;GACnC,+BAA+B;EACjC,CACF;EACA,uBAAuB;CACzB;AACF;;;ACFA,MAAa,SAAuB;CAClC,SAAS;EACP,+BAA+B;EAC/B,WAAW;EACX,WAAW;CACb;CACA;CACA;CACA,OAAO;EACL,GAAG;EACH,GAAG;CACL;CACA;CACA;CACA,UAAU,EACR,QAAQ,EACN,WAAW,KACb,EACF;CACA,WAAW;EACT;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,gBAAgB;EAAE;EAAe;EAAa;EAAY;EAAc;EAAc;EAAuB;CAAyB;AACxI"}
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/overrides/vitest.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-in-loop': 'off',\n 'no-bitwise': 'off',\n 'new-cap': 'off',\n 'no-async-endpoint-handlers': '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 'one-var': '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/method-signature-style': '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 'node/no-top-level-await': 'off',\n 'node/no-sync': 'off',\n\n 'react/react-in-jsx-scope': 'off',\n 'react/jsx-filename-extension': [ 'error', { extensions: [ 'jsx', 'tsx' ] } ],\n 'react/jsx-no-literals': 'off',\n 'jsx-a11y/label-has-associated-control': [ 'error', { controlComponents: [ 'RadioGroupItem' ] } ],\n\n // TODO enable jest rules for vitest\n 'jest/require-hook': 'off',\n 'jest/no-conditional-in-test': 'off',\n 'jest/prefer-expect-assertions': 'off',\n\n 'vitest/prefer-called-times': 'off',\n 'vitest/prefer-expect-assertions': 'off',\n 'vitest/prefer-strict-boolean-matchers': 'off',\n 'vitest/require-hook': 'off',\n 'vitest/require-test-timeout': 'off',\n 'vitest/no-importing-vitest-globals': 'off',\n 'vitest/no-conditional-in-test': 'off',\n 'vitest/no-hooks': '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/no-array-reverse': 'off',\n 'unicorn/switch-case-braces': [ 'warn', 'avoid' ],\n 'unicorn/no-array-method-this-argument': 'warn',\n 'unicorn/no-await-expression-member': 'off',\n 'unicorn/no-invalid-fetch-options': 'off',\n 'unicorn/require-post-message-target-origin': 'off',\n 'unicorn/import-style': [\n 'warn',\n {\n extendDefaultStyles: false,\n styles: {\n 'path': { named: true, default: false },\n 'util': { named: true, default: false }\n }\n }\n ],\n 'unicorn/max-nested-calls': [\n 'warn',\n {\n max: 5\n }\n ],\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 'zod/consistent-import': 'error',\n 'zod/consistent-schema-output-type-style': 'warn',\n 'zod/consistent-schema-var-name': [ 'error', { before: 'z', after: '' } ],\n 'zod/no-any-schema': 'error',\n 'zod/no-coerce-boolean': 'error',\n 'zod/no-conflicting-checks': 'error',\n 'zod/no-duplicate-schema-methods': 'error',\n 'zod/no-empty-custom-schema': 'error',\n 'zod/no-function-scoped-schema': 'error',\n 'zod/no-native-enum': 'error',\n 'zod/no-number-schema-with-finite': 'error',\n 'zod/no-number-schema-with-int': 'error',\n 'zod/no-number-schema-with-is-finite': 'error',\n 'zod/no-number-schema-with-is-int': 'error',\n 'zod/no-number-schema-with-safe': 'error',\n 'zod/no-number-schema-with-step': 'error',\n 'zod/no-optional-and-default-together': 'error',\n 'zod/no-promise-schema': 'error',\n 'zod/no-reshape-on-refined-object': 'error',\n 'zod/no-schema-with-is-nullable': 'error',\n 'zod/no-schema-with-is-optional': 'error',\n 'zod/no-throw-in-refine': 'error',\n 'zod/no-transform-in-record-key': 'error',\n 'zod/no-unnecessary-readonly': 'error',\n 'zod/prefer-map-set-size-over-min-max': 'error',\n 'zod/prefer-meta': 'error',\n 'zod/prefer-nullish': 'error',\n 'zod/prefer-string-length-over-min-max': 'error',\n 'zod/prefer-string-schema-with-trim': 'error',\n 'zod/prefer-top-level-string-formats': 'error',\n 'zod/prefer-trim-before-string-length-checks': 'error',\n 'zod/prefer-tuple-over-array-length': 'error',\n 'zod/require-brand-type-parameter': 'error',\n 'zod/require-error-message': 'error',\n\n 'anti-slop/no-chained-type-assertions': 'error',\n 'anti-slop/no-unnecessary-type-widening': 'error',\n 'anti-slop/no-object-parameters': 'error',\n 'anti-slop/no-meaningless-unknown-aliases': 'error',\n 'anti-slop/no-unsafe-dictionary-values': 'error',\n 'anti-slop/no-narrowing-after-widening': 'error',\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/class-reference-in-static-methods': 'warn',\n 'unicorn-js/consistent-conditional-object-spread': 'warn',\n 'unicorn-js/consistent-destructuring': 'warn',\n 'unicorn-js/consistent-json-file-read': 'warn',\n 'unicorn-js/consistent-template-literal-escape': 'warn',\n 'unicorn-js/consistent-tuple-labels': 'warn',\n 'unicorn-js/default-export-style': 'warn',\n 'unicorn-js/no-array-concat-in-loop': 'warn',\n 'unicorn-js/no-array-splice': 'warn',\n 'unicorn-js/no-computed-property-existence-check': 'warn',\n 'unicorn-js/no-confusing-array-splice': 'warn',\n 'unicorn-js/no-duplicate-if-branches': 'warn',\n 'unicorn-js/no-duplicate-loops': 'warn',\n 'unicorn-js/no-duplicate-set-values': 'warn',\n 'unicorn-js/no-for-loop': 'warn',\n 'unicorn-js/no-incorrect-query-selector': 'warn',\n 'unicorn-js/no-incorrect-template-string-interpolation': 'warn',\n 'unicorn-js/no-late-current-target-access': 'warn',\n 'unicorn-js/no-late-event-control': 'warn',\n 'unicorn-js/no-loop-iterable-mutation': 'warn',\n 'unicorn-js/no-mismatched-map-key': 'warn',\n 'unicorn-js/no-non-function-verb-prefix': 'warn',\n 'unicorn-js/no-object-methods-with-collections': 'warn',\n 'unicorn-js/no-optional-chaining-on-undeclared-variable': 'warn',\n 'unicorn-js/no-return-array-push': 'warn',\n 'unicorn-js/no-selector-as-dom-name': 'warn',\n 'unicorn-js/no-this-outside-of-class': 'warn',\n 'unicorn-js/no-top-level-assignment-in-function': 'warn',\n 'unicorn-js/no-uncalled-method': 'warn',\n 'unicorn-js/no-undeclared-class-members': 'warn',\n 'unicorn-js/no-unnecessary-array-flat-map': 'warn',\n 'unicorn-js/no-unnecessary-boolean-comparison': 'warn',\n 'unicorn-js/no-unnecessary-splice': 'warn',\n 'unicorn-js/no-unsafe-property-key': 'warn',\n 'unicorn-js/no-useless-else': 'warn',\n 'unicorn-js/no-useless-iterator-to-array': 'warn',\n 'unicorn-js/prefer-abort-signal-any': 'warn',\n 'unicorn-js/prefer-abort-signal-timeout': 'warn',\n 'unicorn-js/prefer-array-from-async': 'warn',\n 'unicorn-js/prefer-array-iterable-methods': 'warn',\n 'unicorn-js/prefer-array-slice': 'warn',\n 'unicorn-js/prefer-continue': 'warn',\n 'unicorn-js/prefer-dom-node-html-methods': 'warn',\n 'unicorn-js/prefer-else-if': 'warn',\n 'unicorn-js/prefer-export-from': 'warn',\n 'unicorn-js/prefer-get-or-insert-computed': 'warn',\n 'unicorn-js/prefer-group-by': 'warn',\n 'unicorn-js/prefer-hoisting-branch-code': 'warn',\n 'unicorn-js/prefer-includes-over-repeated-comparisons': 'warn',\n 'unicorn-js/prefer-iterator-to-array': 'warn',\n 'unicorn-js/prefer-location-assign': 'warn',\n 'unicorn-js/prefer-number-is-safe-integer': 'warn',\n 'unicorn-js/prefer-object-destructuring-defaults': 'warn',\n 'unicorn-js/prefer-observer-apis': 'warn',\n 'unicorn-js/prefer-private-class-fields': 'warn',\n 'unicorn-js/prefer-promise-try': 'warn',\n 'unicorn-js/prefer-scoped-selector': 'warn',\n 'unicorn-js/prefer-set-methods': 'warn',\n 'unicorn-js/prefer-simple-condition-first': 'warn',\n 'unicorn-js/prefer-single-call': 'warn',\n 'unicorn-js/prefer-single-object-destructuring': 'warn',\n 'unicorn-js/prefer-smaller-scope': 'warn',\n 'unicorn-js/prefer-switch': 'warn',\n 'unicorn-js/prefer-then-catch': 'warn',\n 'unicorn-js/prefer-type-literal-last': 'warn',\n 'unicorn-js/switch-case-break-position': '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': 'off',\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/list-style': [\n 'warn',\n {\n empty: 'never',\n singleLine: { spacing: 'never' },\n overrides: {\n ArrayExpression: {\n singleLine: { spacing: 'always' }\n },\n ArrayPattern: {\n singleLine: { spacing: 'always' }\n },\n ObjectExpression: {\n singleLine: { spacing: 'always' }\n },\n ObjectPattern: {\n singleLine: { spacing: 'always' }\n },\n ImportDeclaration: {\n singleLine: { spacing: 'always' }\n },\n ExportNamedDeclaration: {\n singleLine: { spacing: 'always' }\n }\n }\n }\n ],\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 {\n after: true,\n before: true,\n overrides: { colon: { after: true, before: false } }\n }\n ],\n 'stylistic-js/member-delimiter-style': [\n 'warn',\n {\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/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/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 {\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/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\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', 'cloudflare.config.ts' ],\n [ '@cloudflare/workers-types', 'wrangler', '@cloudflare/vite-plugin', '@cloudflare/vitest-plugin' ]\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: 'anti-slop', specifier: '@comment-labs/oxlint-config/plugins/anti-slop' },\n { name: 'brettz9-js', specifier: '@comment-labs/oxlint-config/plugins/brettz9' },\n { name: 'i18next-js', specifier: '@comment-labs/oxlint-config/plugins/i18next' },\n { name: 'zod', specifier: '@comment-labs/oxlint-config/plugins/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 'react/jsx-no-literals': '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 'no-redeclare': 'off',\n 'typescript/no-empty-interface': 'off',\n 'typescript/no-empty-object-type': 'off'\n }\n}\n","import type { OxlintOverride } from 'oxlint'\n\n\nexport const vitestOverrides: OxlintOverride = {\n files: [\n '**/{test,tests}/**/*.{js,jsx,ts,tsx,mjs,cjs,mts,cts}',\n '**/*.{test,spec}.{js,jsx,ts,tsx,mjs,cjs,mts,cts}'\n ],\n rules: {\n 'vitest/max-expects': 'off',\n 'vitest/prefer-expect-assertions': [\n 'warn',\n {\n onlyFunctionsWithExpectInCallback: true,\n onlyFunctionsWithExpectInLoop: true\n }\n ],\n 'vitest/require-hook': 'warn'\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'\nimport { vitestOverrides } from './overrides/vitest'\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 vitestOverrides\n ],\n ignorePatterns: [ 'coverage/**', 'public/**', '.expo/**', '.output/**', '**/dist/**', '**/*wasm-bindgen/**', '**/tests/fixtures/**/*' ]\n}\n"],"mappings":";;;;;;AAGA,MAAa,aAA6B;CACxC,aAAa;CACb,SAAS;CACT,UAAU;CACV,MAAM;CACN,aAAa;CACb,OAAO;CACP,YAAY;AACd;;ACRA,MAAa,YAA0B;CACrC,cAAc;CACd,wBAAwB;CACxB,0BAA0B;CAC1B,mCAAmC;CACnC,+BAA+B;CAC/B,cAAc,CAAE,QAAQ,EAAE,KAAK,GAAG,CAAE;CACpC,gBAAgB;CAChB,gBAAgB;CAChB,iCAAiC;CACjC,kCAAkC;CAClC,cAAc;CACd,iBAAiB;CACjB,aAAa;CACb,qBAAqB;CACrB,oBAAoB;CACpB,aAAa,CAAE,QAAQ,CAAE;CACzB,aAAa,CACX,QACA;EACE,KAAK;EACL,gBAAgB;EAChB,cAAc;CAChB,CACF;CACA,0BAA0B,CACxB,QACA;EACE,KAAK;EACL,gBAAgB;EAChB,cAAc;CAChB,CACF;CACA,cAAc;CACd,kBAAkB,CAAE,QAAQ,EAAE,KAAK,GAAG,CAAE;CACxC,qBAAqB;CACrB,iCAAiC;CACjC,mBAAmB;CACnB,iBAAiB;CACjB,kBAAkB;CAClB,oBAAoB;CACpB,cAAc;CACd,WAAW;CACX,8BAA8B;CAC9B,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;CACf,8BAA8B;CAC9B,6BAA6B;CAC7B,aAAa;CACb,cAAc;CACd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C,OAAO,CAAE,0BAA2B;CACpC,OAAO,EACL,2BAA2B,OAC7B;AACF;;ACLA,MAAa,wBAAwC;CACnD,OAAO,CAAE,WAAY;CACrB,OAAO;EACL,gBAAgB;EAChB,iCAAiC;EACjC,mCAAmC;CACrC;AACF;;ACPA,MAAa,kBAAkC;CAC7C,OAAO,CACL,wDACA,kDACF;CACA,OAAO;EACL,sBAAsB;EACtB,mCAAmC,CACjC,QACA;GACE,mCAAmC;GACnC,+BAA+B;EACjC,CACF;EACA,uBAAuB;CACzB;AACF;;ACHA,MAAa,SAAuB;CAClC,SAAS;EACP,+BAA+B;EAC/B,WAAW;EACX,WAAW;CACb;CACA;CACA;CACA,OAAO;EACL,GAAG;EACH,GAAG;CACL;CACA;CACA;CACA,UAAU,EACR,QAAQ,EACN,WAAW,KACb,EACF;CACA,WAAW;EACT;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,gBAAgB;EAAE;EAAe;EAAa;EAAY;EAAc;EAAc;EAAuB;CAAyB;AACxI"}
@@ -0,0 +1,4 @@
1
+ import { t as SanitizablePlugin } from "../sanitize-plugin-DfbJP7oI.mjs";
2
+ declare const _default: SanitizablePlugin;
3
+ export { _default as default };
4
+ //# sourceMappingURL=anti-slop.d.mts.map
@@ -0,0 +1,7 @@
1
+ import { t as sanitizePlugin } from "../sanitize-plugin-DZgftcJx.mjs";
2
+ import antiSlop from "oxlint-anti-slop";
3
+ // src/plugins/anti-slop.ts
4
+ var anti_slop_default = sanitizePlugin(antiSlop);
5
+ export { anti_slop_default as default };
6
+
7
+ //# sourceMappingURL=anti-slop.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"anti-slop.mjs","names":[],"sources":["../../src/plugins/anti-slop.ts"],"sourcesContent":["import antiSlop from 'oxlint-anti-slop'\nimport { sanitizePlugin } from '../sanitize-plugin'\n\n\nexport default sanitizePlugin(antiSlop)\n"],"mappings":";;;AAIA,IAAA,oBAAe,eAAe,QAAQ"}
@@ -1,6 +1,4 @@
1
- import { t as SanitizablePlugin } from "../sanitize-plugin-_kmEeqj0.mjs";
2
- //#region src/plugins/brettz9.d.ts
1
+ import { t as SanitizablePlugin } from "../sanitize-plugin-DfbJP7oI.mjs";
3
2
  declare const _default: SanitizablePlugin;
4
- //#endregion
5
3
  export { _default as default };
6
4
  //# sourceMappingURL=brettz9.d.mts.map
@@ -1,8 +1,7 @@
1
- import { t as sanitizePlugin } from "../sanitize-plugin-CAJduUuZ.mjs";
1
+ import { t as sanitizePlugin } from "../sanitize-plugin-DZgftcJx.mjs";
2
2
  import brettz9 from "@brettz9/eslint-plugin";
3
- //#region src/plugins/brettz9.ts
3
+ // src/plugins/brettz9.ts
4
4
  var brettz9_default = sanitizePlugin(brettz9);
5
- //#endregion
6
5
  export { brettz9_default as default };
7
6
 
8
7
  //# sourceMappingURL=brettz9.mjs.map
@@ -1,6 +1,4 @@
1
- import { t as SanitizablePlugin } from "../sanitize-plugin-_kmEeqj0.mjs";
2
- //#region src/plugins/e18e.d.ts
1
+ import { t as SanitizablePlugin } from "../sanitize-plugin-DfbJP7oI.mjs";
3
2
  declare const _default: SanitizablePlugin;
4
- //#endregion
5
3
  export { _default as default };
6
4
  //# sourceMappingURL=e18e.d.mts.map
@@ -1,8 +1,7 @@
1
- import { t as sanitizePlugin } from "../sanitize-plugin-CAJduUuZ.mjs";
1
+ import { t as sanitizePlugin } from "../sanitize-plugin-DZgftcJx.mjs";
2
2
  import e18e from "@e18e/eslint-plugin";
3
- //#region src/plugins/e18e.ts
3
+ // src/plugins/e18e.ts
4
4
  var e18e_default = sanitizePlugin(e18e);
5
- //#endregion
6
5
  export { e18e_default as default };
7
6
 
8
7
  //# sourceMappingURL=e18e.mjs.map
@@ -1,4 +1,3 @@
1
- //#region src/plugin/i18next/index.d.ts
2
1
  declare const i18next: {
3
2
  meta: {
4
3
  name: string;
@@ -8,6 +7,5 @@ declare const i18next: {
8
7
  'no-literal-string': import("eslint").Rule.RuleModule;
9
8
  };
10
9
  };
11
- //#endregion
12
10
  export { i18next as default };
13
11
  //# sourceMappingURL=i18next.d.mts.map