@apst/oxlint 0.0.0-dev.20260324.019d1d21 → 0.0.0-dev.20260324.ab11d23a

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 (85) hide show
  1. package/dist/@types/preset.d.ts +1 -1
  2. package/dist/constants/default.d.ts +1 -1
  3. package/dist/constants/default.js.map +1 -1
  4. package/dist/constants/default.mjs.map +1 -1
  5. package/dist/constants/ignore-patterns.d.ts +1 -1
  6. package/dist/constants/ignore-patterns.js +1 -0
  7. package/dist/constants/ignore-patterns.js.map +1 -1
  8. package/dist/constants/ignore-patterns.mjs +1 -0
  9. package/dist/constants/ignore-patterns.mjs.map +1 -1
  10. package/dist/functions/define.js.map +1 -1
  11. package/dist/functions/define.mjs.map +1 -1
  12. package/dist/functions/merge.js.map +1 -1
  13. package/dist/functions/merge.mjs.map +1 -1
  14. package/dist/presets/common/index.d.ts +3 -2
  15. package/dist/presets/common/index.js +3 -0
  16. package/dist/presets/common/index.mjs +3 -2
  17. package/dist/presets/common/plugin/index.d.ts +2 -1
  18. package/dist/presets/common/plugin/index.js +2 -0
  19. package/dist/presets/common/plugin/index.js.map +1 -1
  20. package/dist/presets/common/plugin/index.mjs +2 -1
  21. package/dist/presets/common/plugin/index.mjs.map +1 -1
  22. package/dist/presets/common/preset/index.js +4 -1
  23. package/dist/presets/common/preset/index.js.map +1 -1
  24. package/dist/presets/common/preset/index.mjs +5 -2
  25. package/dist/presets/common/preset/index.mjs.map +1 -1
  26. package/dist/presets/common/rules/eslint.d.ts +10 -28
  27. package/dist/presets/common/rules/eslint.js +5 -12
  28. package/dist/presets/common/rules/eslint.js.map +1 -1
  29. package/dist/presets/common/rules/eslint.mjs +5 -12
  30. package/dist/presets/common/rules/eslint.mjs.map +1 -1
  31. package/dist/presets/common/rules/import.d.ts +8 -4
  32. package/dist/presets/common/rules/import.js +4 -2
  33. package/dist/presets/common/rules/import.js.map +1 -1
  34. package/dist/presets/common/rules/import.mjs +4 -2
  35. package/dist/presets/common/rules/import.mjs.map +1 -1
  36. package/dist/presets/common/rules/oxc.js.map +1 -1
  37. package/dist/presets/common/rules/oxc.mjs.map +1 -1
  38. package/dist/presets/common/rules/promise.js.map +1 -1
  39. package/dist/presets/common/rules/promise.mjs.map +1 -1
  40. package/dist/presets/common/rules/stylistic.d.ts +61 -0
  41. package/dist/presets/common/rules/stylistic.js +61 -0
  42. package/dist/presets/common/rules/stylistic.js.map +1 -0
  43. package/dist/presets/common/rules/stylistic.mjs +60 -0
  44. package/dist/presets/common/rules/stylistic.mjs.map +1 -0
  45. package/dist/presets/common/rules/typescript.d.ts +2 -2
  46. package/dist/presets/common/rules/typescript.js +1 -1
  47. package/dist/presets/common/rules/typescript.js.map +1 -1
  48. package/dist/presets/common/rules/typescript.mjs +1 -1
  49. package/dist/presets/common/rules/typescript.mjs.map +1 -1
  50. package/dist/presets/common/rules/unicorn.d.ts +0 -6
  51. package/dist/presets/common/rules/unicorn.js +0 -1
  52. package/dist/presets/common/rules/unicorn.js.map +1 -1
  53. package/dist/presets/common/rules/unicorn.mjs +0 -1
  54. package/dist/presets/common/rules/unicorn.mjs.map +1 -1
  55. package/dist/presets/jsx/plugin/index.js.map +1 -1
  56. package/dist/presets/jsx/plugin/index.mjs.map +1 -1
  57. package/dist/presets/jsx/preset/index.js.map +1 -1
  58. package/dist/presets/jsx/preset/index.mjs.map +1 -1
  59. package/dist/presets/jsx/rules/jsx-a11y.js.map +1 -1
  60. package/dist/presets/jsx/rules/jsx-a11y.mjs.map +1 -1
  61. package/dist/presets/next/plugin/index.js.map +1 -1
  62. package/dist/presets/next/plugin/index.mjs.map +1 -1
  63. package/dist/presets/next/preset/index.js.map +1 -1
  64. package/dist/presets/next/preset/index.mjs.map +1 -1
  65. package/dist/presets/next/rules/nextjs.js.map +1 -1
  66. package/dist/presets/next/rules/nextjs.mjs.map +1 -1
  67. package/dist/presets/node/plugin/index.js.map +1 -1
  68. package/dist/presets/node/plugin/index.mjs.map +1 -1
  69. package/dist/presets/node/preset/index.js.map +1 -1
  70. package/dist/presets/node/preset/index.mjs.map +1 -1
  71. package/dist/presets/node/rules/node.js.map +1 -1
  72. package/dist/presets/node/rules/node.mjs.map +1 -1
  73. package/dist/presets/react/plugin/index.js.map +1 -1
  74. package/dist/presets/react/plugin/index.mjs.map +1 -1
  75. package/dist/presets/react/preset/index.js.map +1 -1
  76. package/dist/presets/react/preset/index.mjs.map +1 -1
  77. package/dist/presets/react/rules/react.js.map +1 -1
  78. package/dist/presets/react/rules/react.mjs.map +1 -1
  79. package/dist/presets/vitest/plugin/index.js.map +1 -1
  80. package/dist/presets/vitest/plugin/index.mjs.map +1 -1
  81. package/dist/presets/vitest/preset/index.js.map +1 -1
  82. package/dist/presets/vitest/preset/index.mjs.map +1 -1
  83. package/dist/presets/vitest/rules/vitest.js.map +1 -1
  84. package/dist/presets/vitest/rules/vitest.mjs.map +1 -1
  85. package/package.json +19 -19
@@ -21,5 +21,5 @@ type PresetResult = {
21
21
  * Preset for the Oxlint configuration.
22
22
  */
23
23
  type Preset = (context: PresetContext) => PresetResult;
24
- export { type Preset };
24
+ export type { Preset };
25
25
  //# sourceMappingURL=preset.d.ts.map
@@ -2,7 +2,7 @@
2
2
  * Default config for Oxlint.
3
3
  */
4
4
  declare const CONFIG_DEFAULT: {
5
- readonly ignorePatterns: ["**/.git/**", "**/__MACOSX/**", "**/.DS_Store", "**/node_modules/**", "**/.panda/**", "**/.next/**", "**/.expo/**", "**/.vercel/**", "**/dist/**", "build/**", "app/build/**", "web/build/**", "out/**", "app/out/**", "web/out/**", "**/package-lock.json", "**/yarn.lock", "**/pnpm-lock.yaml", "**/bun.lock"];
5
+ readonly ignorePatterns: ["**/.git/**", "**/__MACOSX/**", "**/.DS_Store", ".agents/skills/**", "**/node_modules/**", "**/.panda/**", "**/.next/**", "**/.expo/**", "**/.vercel/**", "**/dist/**", "build/**", "app/build/**", "web/build/**", "out/**", "app/out/**", "web/out/**", "**/package-lock.json", "**/yarn.lock", "**/pnpm-lock.yaml", "**/bun.lock"];
6
6
  };
7
7
  export { CONFIG_DEFAULT };
8
8
  //# sourceMappingURL=default.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"default.js","names":["IGNORE_PATTERNS_DEFAULT"],"sources":["../../src/constants/default.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nimport { IGNORE_PATTERNS_DEFAULT } from \"#/constants/ignore-patterns\";\n\n/**\n * Default config for Oxlint.\n */\nconst CONFIG_DEFAULT = {\n ignorePatterns: IGNORE_PATTERNS_DEFAULT,\n} as const satisfies OxlintConfig;\n\nexport { CONFIG_DEFAULT };\n"],"mappings":";;;;;;AAOA,MAAM,iBAAiB,EACnB,gBAAgBA,2DACnB"}
1
+ {"version":3,"file":"default.js","names":["IGNORE_PATTERNS_DEFAULT"],"sources":["../../src/constants/default.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nimport { IGNORE_PATTERNS_DEFAULT } from \"#/constants/ignore-patterns\";\n\n/**\n * Default config for Oxlint.\n */\nconst CONFIG_DEFAULT = {\n ignorePatterns: IGNORE_PATTERNS_DEFAULT,\n} as const satisfies OxlintConfig;\n\nexport { CONFIG_DEFAULT };\n"],"mappings":";;;;;;AAOA,MAAM,iBAAiB,EACnB,gBAAgBA,0DACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.mjs","names":[],"sources":["../../src/constants/default.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nimport { IGNORE_PATTERNS_DEFAULT } from \"#/constants/ignore-patterns\";\n\n/**\n * Default config for Oxlint.\n */\nconst CONFIG_DEFAULT = {\n ignorePatterns: IGNORE_PATTERNS_DEFAULT,\n} as const satisfies OxlintConfig;\n\nexport { CONFIG_DEFAULT };\n"],"mappings":";;;;;AAOA,MAAM,iBAAiB,EACnB,gBAAgB,yBACnB"}
1
+ {"version":3,"file":"default.mjs","names":[],"sources":["../../src/constants/default.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nimport { IGNORE_PATTERNS_DEFAULT } from \"#/constants/ignore-patterns\";\n\n/**\n * Default config for Oxlint.\n */\nconst CONFIG_DEFAULT = {\n ignorePatterns: IGNORE_PATTERNS_DEFAULT,\n} as const satisfies OxlintConfig;\n\nexport { CONFIG_DEFAULT };\n"],"mappings":";;;;;AAOA,MAAM,iBAAiB,EACnB,gBAAgB,wBACpB"}
@@ -1,3 +1,3 @@
1
- declare const IGNORE_PATTERNS_DEFAULT: ["**/.git/**", "**/__MACOSX/**", "**/.DS_Store", "**/node_modules/**", "**/.panda/**", "**/.next/**", "**/.expo/**", "**/.vercel/**", "**/dist/**", "build/**", "app/build/**", "web/build/**", "out/**", "app/out/**", "web/out/**", "**/package-lock.json", "**/yarn.lock", "**/pnpm-lock.yaml", "**/bun.lock"];
1
+ declare const IGNORE_PATTERNS_DEFAULT: ["**/.git/**", "**/__MACOSX/**", "**/.DS_Store", ".agents/skills/**", "**/node_modules/**", "**/.panda/**", "**/.next/**", "**/.expo/**", "**/.vercel/**", "**/dist/**", "build/**", "app/build/**", "web/build/**", "out/**", "app/out/**", "web/out/**", "**/package-lock.json", "**/yarn.lock", "**/pnpm-lock.yaml", "**/bun.lock"];
2
2
  export { IGNORE_PATTERNS_DEFAULT };
3
3
  //# sourceMappingURL=ignore-patterns.d.ts.map
@@ -4,6 +4,7 @@ const IGNORE_PATTERNS_DEFAULT = [
4
4
  "**/.git/**",
5
5
  "**/__MACOSX/**",
6
6
  "**/.DS_Store",
7
+ ".agents/skills/**",
7
8
  "**/node_modules/**",
8
9
  "**/.panda/**",
9
10
  "**/.next/**",
@@ -1 +1 @@
1
- {"version":3,"file":"ignore-patterns.js","names":[],"sources":["../../src/constants/ignore-patterns.ts"],"sourcesContent":["const IGNORE_PATTERNS_DEFAULT = [\n // git\n \"**/.git/**\",\n // macOS\n \"**/__MACOSX/**\",\n \"**/.DS_Store\",\n // node modules\n \"**/node_modules/**\",\n // build\n \"**/.panda/**\",\n \"**/.next/**\",\n \"**/.expo/**\",\n \"**/.vercel/**\",\n \"**/dist/**\",\n \"build/**\",\n \"app/build/**\",\n \"web/build/**\",\n \"out/**\",\n \"app/out/**\",\n \"web/out/**\",\n // lock\n \"**/package-lock.json\",\n \"**/yarn.lock\",\n \"**/pnpm-lock.yaml\",\n \"**/bun.lock\",\n] as const satisfies string[];\n\nexport { IGNORE_PATTERNS_DEFAULT };\n"],"mappings":";;AAAA,MAAM,0BAA0B;CAE5B;CAEA;CACA;CAEA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACH"}
1
+ {"version":3,"file":"ignore-patterns.js","names":[],"sources":["../../src/constants/ignore-patterns.ts"],"sourcesContent":["const IGNORE_PATTERNS_DEFAULT = [\n // git\n \"**/.git/**\",\n // macOS\n \"**/__MACOSX/**\",\n \"**/.DS_Store\",\n // agents\n \".agents/skills/**\",\n // node modules\n \"**/node_modules/**\",\n // build\n \"**/.panda/**\",\n \"**/.next/**\",\n \"**/.expo/**\",\n \"**/.vercel/**\",\n \"**/dist/**\",\n \"build/**\",\n \"app/build/**\",\n \"web/build/**\",\n \"out/**\",\n \"app/out/**\",\n \"web/out/**\",\n // lock\n \"**/package-lock.json\",\n \"**/yarn.lock\",\n \"**/pnpm-lock.yaml\",\n \"**/bun.lock\",\n] as const satisfies string[];\n\nexport { IGNORE_PATTERNS_DEFAULT };\n"],"mappings":";;AAAA,MAAM,0BAA0B;CAE5B;CAEA;CACA;CAEA;CAEA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;AACJ"}
@@ -2,6 +2,7 @@ const IGNORE_PATTERNS_DEFAULT = [
2
2
  "**/.git/**",
3
3
  "**/__MACOSX/**",
4
4
  "**/.DS_Store",
5
+ ".agents/skills/**",
5
6
  "**/node_modules/**",
6
7
  "**/.panda/**",
7
8
  "**/.next/**",
@@ -1 +1 @@
1
- {"version":3,"file":"ignore-patterns.mjs","names":[],"sources":["../../src/constants/ignore-patterns.ts"],"sourcesContent":["const IGNORE_PATTERNS_DEFAULT = [\n // git\n \"**/.git/**\",\n // macOS\n \"**/__MACOSX/**\",\n \"**/.DS_Store\",\n // node modules\n \"**/node_modules/**\",\n // build\n \"**/.panda/**\",\n \"**/.next/**\",\n \"**/.expo/**\",\n \"**/.vercel/**\",\n \"**/dist/**\",\n \"build/**\",\n \"app/build/**\",\n \"web/build/**\",\n \"out/**\",\n \"app/out/**\",\n \"web/out/**\",\n // lock\n \"**/package-lock.json\",\n \"**/yarn.lock\",\n \"**/pnpm-lock.yaml\",\n \"**/bun.lock\",\n] as const satisfies string[];\n\nexport { IGNORE_PATTERNS_DEFAULT };\n"],"mappings":"AAAA,MAAM,0BAA0B;CAE5B;CAEA;CACA;CAEA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACH"}
1
+ {"version":3,"file":"ignore-patterns.mjs","names":[],"sources":["../../src/constants/ignore-patterns.ts"],"sourcesContent":["const IGNORE_PATTERNS_DEFAULT = [\n // git\n \"**/.git/**\",\n // macOS\n \"**/__MACOSX/**\",\n \"**/.DS_Store\",\n // agents\n \".agents/skills/**\",\n // node modules\n \"**/node_modules/**\",\n // build\n \"**/.panda/**\",\n \"**/.next/**\",\n \"**/.expo/**\",\n \"**/.vercel/**\",\n \"**/dist/**\",\n \"build/**\",\n \"app/build/**\",\n \"web/build/**\",\n \"out/**\",\n \"app/out/**\",\n \"web/out/**\",\n // lock\n \"**/package-lock.json\",\n \"**/yarn.lock\",\n \"**/pnpm-lock.yaml\",\n \"**/bun.lock\",\n] as const satisfies string[];\n\nexport { IGNORE_PATTERNS_DEFAULT };\n"],"mappings":"AAAA,MAAM,0BAA0B;CAE5B;CAEA;CACA;CAEA;CAEA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;AACJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"define.js","names":["mergeConfig","CONFIG_DEFAULT"],"sources":["../../src/functions/define.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nimport type { Preset, PresetResult } from \"#/@types/preset\";\n\nimport { clone, toMerged } from \"es-toolkit\";\n\nimport { CONFIG_DEFAULT } from \"#/constants/default\";\nimport { mergeConfig } from \"#/functions/merge\";\n\nconst defineConfigFn = (\n userConfig?: OxlintConfig,\n presets?: Preset[],\n): OxlintConfig => {\n let config: OxlintConfig = mergeConfig(clone(CONFIG_DEFAULT), userConfig);\n\n if (!presets) return config;\n\n for (const preset of presets) {\n const presetResult: PresetResult = preset({\n config,\n });\n\n config = toMerged(config, presetResult.config);\n }\n\n return config;\n};\n\n/**\n * Define Oxlint configuration.\n *\n * ### Example\n *\n * ```ts\n * import { defineConfig } from \"@apst/oxlint\";\n * import { commonPreset } from \"@apst/oxlint/presets/common\";\n * import { reactPreset } from \"@apst/oxlint/presets/react\";\n *\n * export default defineConfig([\n * commonPreset(),\n * reactPreset(),\n * ]);\n * ```\n */\nfunction defineConfig(presets?: Preset[]): OxlintConfig;\n\n/**\n * Define Oxlint configuration.\n *\n * All arrays will not be merged, adding new values will replace existing values.\n *\n * ### Example\n *\n * ```ts\n * import { defineConfig } from \"@apst/oxlint\";\n * import { IGNORE_PATTERNS_DEFAULT } from \"@apst/oxlint/constants/ignore-patterns\";\n * import { commonPreset } from \"@apst/oxlint/presets/common\";\n * import { reactPreset } from \"@apst/oxlint/presets/react\";\n *\n * export default defineConfig({\n * ignorePatterns: [\n * ...IGNORE_PATTERNS_DEFAULT,\n * // ...\n * ],\n * }, [\n * commonPreset(),\n * reactPreset(),\n * ]);\n * ```\n */\nfunction defineConfig(config?: OxlintConfig, presets?: Preset[]): OxlintConfig;\n\nfunction defineConfig(\n presetsOrConfig?: Preset[] | OxlintConfig,\n optionalPresets?: Preset[],\n): OxlintConfig {\n const config: OxlintConfig | undefined = Array.isArray(presetsOrConfig)\n ? void 0\n : presetsOrConfig;\n\n const presets: Preset[] | undefined = Array.isArray(presetsOrConfig)\n ? presetsOrConfig\n : optionalPresets;\n\n return defineConfigFn(config, presets);\n}\n\nexport { defineConfig };\n"],"mappings":";;;;AASA,MAAM,kBACF,YACA,YACe;CACf,IAAI,SAAuBA,gDAAkBC,yCAAe,EAAE,WAAW;AAEzE,KAAI,CAAC,QAAS,QAAO;AAErB,MAAK,MAAM,UAAU,SAAS;EAC1B,MAAM,eAA6B,OAAO,EACtC,QACH,CAAC;AAEF,oCAAkB,QAAQ,aAAa,OAAO;;AAGlD,QAAO;;AA+CX,SAAS,aACL,iBACA,iBACY;AASZ,QAAO,eARkC,MAAM,QAAQ,gBAAgB,GACjE,KAAK,IACL,iBAEgC,MAAM,QAAQ,gBAAgB,GAC9D,kBACA,gBAEgC"}
1
+ {"version":3,"file":"define.js","names":["mergeConfig","CONFIG_DEFAULT"],"sources":["../../src/functions/define.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nimport type { Preset, PresetResult } from \"#/@types/preset\";\n\nimport { clone, toMerged } from \"es-toolkit\";\n\nimport { CONFIG_DEFAULT } from \"#/constants/default\";\nimport { mergeConfig } from \"#/functions/merge\";\n\nconst defineConfigFn = (\n userConfig?: OxlintConfig,\n presets?: Preset[],\n): OxlintConfig => {\n let config: OxlintConfig = mergeConfig(clone(CONFIG_DEFAULT), userConfig);\n\n if (!presets) return config;\n\n for (const preset of presets) {\n const presetResult: PresetResult = preset({\n config,\n });\n\n config = toMerged(config, presetResult.config);\n }\n\n return config;\n};\n\n/**\n * Define Oxlint configuration.\n *\n * ### Example\n *\n * ```ts\n * import { defineConfig } from \"@apst/oxlint\";\n * import { commonPreset } from \"@apst/oxlint/presets/common\";\n * import { reactPreset } from \"@apst/oxlint/presets/react\";\n *\n * export default defineConfig([\n * commonPreset(),\n * reactPreset(),\n * ]);\n * ```\n */\nfunction defineConfig(presets?: Preset[]): OxlintConfig;\n\n/**\n * Define Oxlint configuration.\n *\n * All arrays will not be merged, adding new values will replace existing values.\n *\n * ### Example\n *\n * ```ts\n * import { defineConfig } from \"@apst/oxlint\";\n * import { IGNORE_PATTERNS_DEFAULT } from \"@apst/oxlint/constants/ignore-patterns\";\n * import { commonPreset } from \"@apst/oxlint/presets/common\";\n * import { reactPreset } from \"@apst/oxlint/presets/react\";\n *\n * export default defineConfig({\n * ignorePatterns: [\n * ...IGNORE_PATTERNS_DEFAULT,\n * // ...\n * ],\n * }, [\n * commonPreset(),\n * reactPreset(),\n * ]);\n * ```\n */\nfunction defineConfig(config?: OxlintConfig, presets?: Preset[]): OxlintConfig;\n\nfunction defineConfig(\n presetsOrConfig?: Preset[] | OxlintConfig,\n optionalPresets?: Preset[],\n): OxlintConfig {\n const config: OxlintConfig | undefined = Array.isArray(presetsOrConfig)\n ? void 0\n : presetsOrConfig;\n\n const presets: Preset[] | undefined = Array.isArray(presetsOrConfig)\n ? presetsOrConfig\n : optionalPresets;\n\n return defineConfigFn(config, presets);\n}\n\nexport { defineConfig };\n"],"mappings":";;;;AASA,MAAM,kBACF,YACA,YACe;CACf,IAAI,SAAuBA,gDAAkBC,wCAAc,GAAG,UAAU;CAExE,IAAI,CAAC,SAAS,OAAO;CAErB,KAAK,MAAM,UAAU,SAAS;EAC1B,MAAM,eAA6B,OAAO,EACtC,OACJ,CAAC;EAED,kCAAkB,QAAQ,aAAa,MAAM;CACjD;CAEA,OAAO;AACX;AA8CA,SAAS,aACL,iBACA,iBACY;CASZ,OAAO,eARkC,MAAM,QAAQ,eAAe,IAChE,KAAK,IACL,iBAEgC,MAAM,QAAQ,eAAe,IAC7D,kBACA,eAE+B;AACzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"define.mjs","names":[],"sources":["../../src/functions/define.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nimport type { Preset, PresetResult } from \"#/@types/preset\";\n\nimport { clone, toMerged } from \"es-toolkit\";\n\nimport { CONFIG_DEFAULT } from \"#/constants/default\";\nimport { mergeConfig } from \"#/functions/merge\";\n\nconst defineConfigFn = (\n userConfig?: OxlintConfig,\n presets?: Preset[],\n): OxlintConfig => {\n let config: OxlintConfig = mergeConfig(clone(CONFIG_DEFAULT), userConfig);\n\n if (!presets) return config;\n\n for (const preset of presets) {\n const presetResult: PresetResult = preset({\n config,\n });\n\n config = toMerged(config, presetResult.config);\n }\n\n return config;\n};\n\n/**\n * Define Oxlint configuration.\n *\n * ### Example\n *\n * ```ts\n * import { defineConfig } from \"@apst/oxlint\";\n * import { commonPreset } from \"@apst/oxlint/presets/common\";\n * import { reactPreset } from \"@apst/oxlint/presets/react\";\n *\n * export default defineConfig([\n * commonPreset(),\n * reactPreset(),\n * ]);\n * ```\n */\nfunction defineConfig(presets?: Preset[]): OxlintConfig;\n\n/**\n * Define Oxlint configuration.\n *\n * All arrays will not be merged, adding new values will replace existing values.\n *\n * ### Example\n *\n * ```ts\n * import { defineConfig } from \"@apst/oxlint\";\n * import { IGNORE_PATTERNS_DEFAULT } from \"@apst/oxlint/constants/ignore-patterns\";\n * import { commonPreset } from \"@apst/oxlint/presets/common\";\n * import { reactPreset } from \"@apst/oxlint/presets/react\";\n *\n * export default defineConfig({\n * ignorePatterns: [\n * ...IGNORE_PATTERNS_DEFAULT,\n * // ...\n * ],\n * }, [\n * commonPreset(),\n * reactPreset(),\n * ]);\n * ```\n */\nfunction defineConfig(config?: OxlintConfig, presets?: Preset[]): OxlintConfig;\n\nfunction defineConfig(\n presetsOrConfig?: Preset[] | OxlintConfig,\n optionalPresets?: Preset[],\n): OxlintConfig {\n const config: OxlintConfig | undefined = Array.isArray(presetsOrConfig)\n ? void 0\n : presetsOrConfig;\n\n const presets: Preset[] | undefined = Array.isArray(presetsOrConfig)\n ? presetsOrConfig\n : optionalPresets;\n\n return defineConfigFn(config, presets);\n}\n\nexport { defineConfig };\n"],"mappings":";;;;AASA,MAAM,kBACF,YACA,YACe;CACf,IAAI,SAAuB,YAAY,MAAM,eAAe,EAAE,WAAW;AAEzE,KAAI,CAAC,QAAS,QAAO;AAErB,MAAK,MAAM,UAAU,SAAS;EAC1B,MAAM,eAA6B,OAAO,EACtC,QACH,CAAC;AAEF,WAAS,SAAS,QAAQ,aAAa,OAAO;;AAGlD,QAAO;;AA+CX,SAAS,aACL,iBACA,iBACY;AASZ,QAAO,eARkC,MAAM,QAAQ,gBAAgB,GACjE,KAAK,IACL,iBAEgC,MAAM,QAAQ,gBAAgB,GAC9D,kBACA,gBAEgC"}
1
+ {"version":3,"file":"define.mjs","names":[],"sources":["../../src/functions/define.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nimport type { Preset, PresetResult } from \"#/@types/preset\";\n\nimport { clone, toMerged } from \"es-toolkit\";\n\nimport { CONFIG_DEFAULT } from \"#/constants/default\";\nimport { mergeConfig } from \"#/functions/merge\";\n\nconst defineConfigFn = (\n userConfig?: OxlintConfig,\n presets?: Preset[],\n): OxlintConfig => {\n let config: OxlintConfig = mergeConfig(clone(CONFIG_DEFAULT), userConfig);\n\n if (!presets) return config;\n\n for (const preset of presets) {\n const presetResult: PresetResult = preset({\n config,\n });\n\n config = toMerged(config, presetResult.config);\n }\n\n return config;\n};\n\n/**\n * Define Oxlint configuration.\n *\n * ### Example\n *\n * ```ts\n * import { defineConfig } from \"@apst/oxlint\";\n * import { commonPreset } from \"@apst/oxlint/presets/common\";\n * import { reactPreset } from \"@apst/oxlint/presets/react\";\n *\n * export default defineConfig([\n * commonPreset(),\n * reactPreset(),\n * ]);\n * ```\n */\nfunction defineConfig(presets?: Preset[]): OxlintConfig;\n\n/**\n * Define Oxlint configuration.\n *\n * All arrays will not be merged, adding new values will replace existing values.\n *\n * ### Example\n *\n * ```ts\n * import { defineConfig } from \"@apst/oxlint\";\n * import { IGNORE_PATTERNS_DEFAULT } from \"@apst/oxlint/constants/ignore-patterns\";\n * import { commonPreset } from \"@apst/oxlint/presets/common\";\n * import { reactPreset } from \"@apst/oxlint/presets/react\";\n *\n * export default defineConfig({\n * ignorePatterns: [\n * ...IGNORE_PATTERNS_DEFAULT,\n * // ...\n * ],\n * }, [\n * commonPreset(),\n * reactPreset(),\n * ]);\n * ```\n */\nfunction defineConfig(config?: OxlintConfig, presets?: Preset[]): OxlintConfig;\n\nfunction defineConfig(\n presetsOrConfig?: Preset[] | OxlintConfig,\n optionalPresets?: Preset[],\n): OxlintConfig {\n const config: OxlintConfig | undefined = Array.isArray(presetsOrConfig)\n ? void 0\n : presetsOrConfig;\n\n const presets: Preset[] | undefined = Array.isArray(presetsOrConfig)\n ? presetsOrConfig\n : optionalPresets;\n\n return defineConfigFn(config, presets);\n}\n\nexport { defineConfig };\n"],"mappings":";;;;AASA,MAAM,kBACF,YACA,YACe;CACf,IAAI,SAAuB,YAAY,MAAM,cAAc,GAAG,UAAU;CAExE,IAAI,CAAC,SAAS,OAAO;CAErB,KAAK,MAAM,UAAU,SAAS;EAC1B,MAAM,eAA6B,OAAO,EACtC,OACJ,CAAC;EAED,SAAS,SAAS,QAAQ,aAAa,MAAM;CACjD;CAEA,OAAO;AACX;AA8CA,SAAS,aACL,iBACA,iBACY;CASZ,OAAO,eARkC,MAAM,QAAQ,eAAe,IAChE,KAAK,IACL,iBAEgC,MAAM,QAAQ,eAAe,IAC7D,kBACA,eAE+B;AACzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"merge.js","names":[],"sources":["../../src/functions/merge.ts"],"sourcesContent":["import { mergeWith } from \"es-toolkit\";\n\nconst mergeConfig = <\n T extends Record<PropertyKey, any>,\n S extends Record<PropertyKey, any>,\n>(\n target: T,\n source?: S,\n): T & S => {\n if (!source) return target;\n\n return mergeWith(target, source, (_: unknown, target: unknown): unknown => {\n // array replacement\n if (Array.isArray(target)) return target;\n // default deep merge\n return void 0;\n });\n};\n\nexport { mergeConfig };\n"],"mappings":";;AAEA,MAAM,eAIF,QACA,WACQ;AACR,KAAI,CAAC,OAAQ,QAAO;AAEpB,kCAAiB,QAAQ,SAAS,GAAY,WAA6B;AAEvE,MAAI,MAAM,QAAQ,OAAO,CAAE,QAAO;GAGpC"}
1
+ {"version":3,"file":"merge.js","names":[],"sources":["../../src/functions/merge.ts"],"sourcesContent":["import { mergeWith } from \"es-toolkit\";\n\nconst mergeConfig = <\n T extends Record<PropertyKey, any>,\n S extends Record<PropertyKey, any>,\n>(\n target: T,\n source?: S,\n): T & S => {\n if (!source) return target;\n\n return mergeWith(target, source, (_: unknown, target: unknown): unknown => {\n // array replacement\n if (Array.isArray(target)) return target;\n // default deep merge\n return void 0;\n });\n};\n\nexport { mergeConfig };\n"],"mappings":";;AAEA,MAAM,eAIF,QACA,WACQ;CACR,IAAI,CAAC,QAAQ,OAAO;CAEpB,iCAAiB,QAAQ,SAAS,GAAY,WAA6B;EAEvE,IAAI,MAAM,QAAQ,MAAM,GAAG,OAAO;CAGtC,CAAC;AACL"}
@@ -1 +1 @@
1
- {"version":3,"file":"merge.mjs","names":[],"sources":["../../src/functions/merge.ts"],"sourcesContent":["import { mergeWith } from \"es-toolkit\";\n\nconst mergeConfig = <\n T extends Record<PropertyKey, any>,\n S extends Record<PropertyKey, any>,\n>(\n target: T,\n source?: S,\n): T & S => {\n if (!source) return target;\n\n return mergeWith(target, source, (_: unknown, target: unknown): unknown => {\n // array replacement\n if (Array.isArray(target)) return target;\n // default deep merge\n return void 0;\n });\n};\n\nexport { mergeConfig };\n"],"mappings":";;AAEA,MAAM,eAIF,QACA,WACQ;AACR,KAAI,CAAC,OAAQ,QAAO;AAEpB,QAAO,UAAU,QAAQ,SAAS,GAAY,WAA6B;AAEvE,MAAI,MAAM,QAAQ,OAAO,CAAE,QAAO;GAGpC"}
1
+ {"version":3,"file":"merge.mjs","names":[],"sources":["../../src/functions/merge.ts"],"sourcesContent":["import { mergeWith } from \"es-toolkit\";\n\nconst mergeConfig = <\n T extends Record<PropertyKey, any>,\n S extends Record<PropertyKey, any>,\n>(\n target: T,\n source?: S,\n): T & S => {\n if (!source) return target;\n\n return mergeWith(target, source, (_: unknown, target: unknown): unknown => {\n // array replacement\n if (Array.isArray(target)) return target;\n // default deep merge\n return void 0;\n });\n};\n\nexport { mergeConfig };\n"],"mappings":";;AAEA,MAAM,eAIF,QACA,WACQ;CACR,IAAI,CAAC,QAAQ,OAAO;CAEpB,OAAO,UAAU,QAAQ,SAAS,GAAY,WAA6B;EAEvE,IAAI,MAAM,QAAQ,MAAM,GAAG,OAAO;CAGtC,CAAC;AACL"}
@@ -1,9 +1,10 @@
1
- import { PLUGIN_COMMON } from "./plugin/index.js";
1
+ import { PLUGIN_COMMON, PLUGIN_JS_COMMON } from "./plugin/index.js";
2
2
  import { commonPreset } from "./preset/index.js";
3
3
  import { RULES_ESLINT, RULES_ESLINT_NURSERY, RULES_ESLINT_PEDANTIC, RULES_ESLINT_PERF, RULES_ESLINT_RESTRICTION, RULES_ESLINT_STYLE, RULES_ESLINT_SUSPICIOUS } from "./rules/eslint.js";
4
4
  import { RULES_IMPORT, RULES_IMPORT_CORRECTNESS, RULES_IMPORT_NURSERY, RULES_IMPORT_RESTRICTION, RULES_IMPORT_STYLE, RULES_IMPORT_SUSPICIOUS } from "./rules/import.js";
5
5
  import { RULES_OXC, RULES_OXC_NURSERY, RULES_OXC_RESTRICTION } from "./rules/oxc.js";
6
6
  import { RULES_PROMISE, RULES_PROMISE_CORRECTNESS, RULES_PROMISE_NURSERY, RULES_PROMISE_RESTRICTION, RULES_PROMISE_STYLE, RULES_PROMISE_SUSPICIOUS } from "./rules/promise.js";
7
+ import { RULES_STYLISTIC } from "./rules/stylistic.js";
7
8
  import { RULES_TYPESCRIPT, RULES_TYPESCRIPT_NURSERY, RULES_TYPESCRIPT_PEDANTIC, RULES_TYPESCRIPT_RESTRICTION, RULES_TYPESCRIPT_STYLE, RULES_TYPESCRIPT_SUSPICIOUS } from "./rules/typescript.js";
8
9
  import { RULES_UNICORN, RULES_UNICORN_PEDANTIC, RULES_UNICORN_RESTRICTION, RULES_UNICORN_STYLE, RULES_UNICORN_SUSPICIOUS } from "./rules/unicorn.js";
9
- export { PLUGIN_COMMON, RULES_ESLINT, RULES_ESLINT_NURSERY, RULES_ESLINT_PEDANTIC, RULES_ESLINT_PERF, RULES_ESLINT_RESTRICTION, RULES_ESLINT_STYLE, RULES_ESLINT_SUSPICIOUS, RULES_IMPORT, RULES_IMPORT_CORRECTNESS, RULES_IMPORT_NURSERY, RULES_IMPORT_RESTRICTION, RULES_IMPORT_STYLE, RULES_IMPORT_SUSPICIOUS, RULES_OXC, RULES_OXC_NURSERY, RULES_OXC_RESTRICTION, RULES_PROMISE, RULES_PROMISE_CORRECTNESS, RULES_PROMISE_NURSERY, RULES_PROMISE_RESTRICTION, RULES_PROMISE_STYLE, RULES_PROMISE_SUSPICIOUS, RULES_TYPESCRIPT, RULES_TYPESCRIPT_NURSERY, RULES_TYPESCRIPT_PEDANTIC, RULES_TYPESCRIPT_RESTRICTION, RULES_TYPESCRIPT_STYLE, RULES_TYPESCRIPT_SUSPICIOUS, RULES_UNICORN, RULES_UNICORN_PEDANTIC, RULES_UNICORN_RESTRICTION, RULES_UNICORN_STYLE, RULES_UNICORN_SUSPICIOUS, commonPreset };
10
+ export { PLUGIN_COMMON, PLUGIN_JS_COMMON, RULES_ESLINT, RULES_ESLINT_NURSERY, RULES_ESLINT_PEDANTIC, RULES_ESLINT_PERF, RULES_ESLINT_RESTRICTION, RULES_ESLINT_STYLE, RULES_ESLINT_SUSPICIOUS, RULES_IMPORT, RULES_IMPORT_CORRECTNESS, RULES_IMPORT_NURSERY, RULES_IMPORT_RESTRICTION, RULES_IMPORT_STYLE, RULES_IMPORT_SUSPICIOUS, RULES_OXC, RULES_OXC_NURSERY, RULES_OXC_RESTRICTION, RULES_PROMISE, RULES_PROMISE_CORRECTNESS, RULES_PROMISE_NURSERY, RULES_PROMISE_RESTRICTION, RULES_PROMISE_STYLE, RULES_PROMISE_SUSPICIOUS, RULES_STYLISTIC, RULES_TYPESCRIPT, RULES_TYPESCRIPT_NURSERY, RULES_TYPESCRIPT_PEDANTIC, RULES_TYPESCRIPT_RESTRICTION, RULES_TYPESCRIPT_STYLE, RULES_TYPESCRIPT_SUSPICIOUS, RULES_UNICORN, RULES_UNICORN_PEDANTIC, RULES_UNICORN_RESTRICTION, RULES_UNICORN_STYLE, RULES_UNICORN_SUSPICIOUS, commonPreset };
@@ -4,11 +4,13 @@ const require_eslint = require('./rules/eslint.js');
4
4
  const require_import = require('./rules/import.js');
5
5
  const require_oxc = require('./rules/oxc.js');
6
6
  const require_promise = require('./rules/promise.js');
7
+ const require_stylistic = require('./rules/stylistic.js');
7
8
  const require_typescript = require('./rules/typescript.js');
8
9
  const require_unicorn = require('./rules/unicorn.js');
9
10
  const require_index$1 = require('./preset/index.js');
10
11
 
11
12
  exports.PLUGIN_COMMON = require_index.PLUGIN_COMMON;
13
+ exports.PLUGIN_JS_COMMON = require_index.PLUGIN_JS_COMMON;
12
14
  exports.RULES_ESLINT = require_eslint.RULES_ESLINT;
13
15
  exports.RULES_ESLINT_NURSERY = require_eslint.RULES_ESLINT_NURSERY;
14
16
  exports.RULES_ESLINT_PEDANTIC = require_eslint.RULES_ESLINT_PEDANTIC;
@@ -31,6 +33,7 @@ exports.RULES_PROMISE_NURSERY = require_promise.RULES_PROMISE_NURSERY;
31
33
  exports.RULES_PROMISE_RESTRICTION = require_promise.RULES_PROMISE_RESTRICTION;
32
34
  exports.RULES_PROMISE_STYLE = require_promise.RULES_PROMISE_STYLE;
33
35
  exports.RULES_PROMISE_SUSPICIOUS = require_promise.RULES_PROMISE_SUSPICIOUS;
36
+ exports.RULES_STYLISTIC = require_stylistic.RULES_STYLISTIC;
34
37
  exports.RULES_TYPESCRIPT = require_typescript.RULES_TYPESCRIPT;
35
38
  exports.RULES_TYPESCRIPT_NURSERY = require_typescript.RULES_TYPESCRIPT_NURSERY;
36
39
  exports.RULES_TYPESCRIPT_PEDANTIC = require_typescript.RULES_TYPESCRIPT_PEDANTIC;
@@ -1,10 +1,11 @@
1
- import { PLUGIN_COMMON } from "./plugin/index.mjs";
1
+ import { PLUGIN_COMMON, PLUGIN_JS_COMMON } from "./plugin/index.mjs";
2
2
  import { RULES_ESLINT, RULES_ESLINT_NURSERY, RULES_ESLINT_PEDANTIC, RULES_ESLINT_PERF, RULES_ESLINT_RESTRICTION, RULES_ESLINT_STYLE, RULES_ESLINT_SUSPICIOUS } from "./rules/eslint.mjs";
3
3
  import { RULES_IMPORT, RULES_IMPORT_CORRECTNESS, RULES_IMPORT_NURSERY, RULES_IMPORT_RESTRICTION, RULES_IMPORT_STYLE, RULES_IMPORT_SUSPICIOUS } from "./rules/import.mjs";
4
4
  import { RULES_OXC, RULES_OXC_NURSERY, RULES_OXC_RESTRICTION } from "./rules/oxc.mjs";
5
5
  import { RULES_PROMISE, RULES_PROMISE_CORRECTNESS, RULES_PROMISE_NURSERY, RULES_PROMISE_RESTRICTION, RULES_PROMISE_STYLE, RULES_PROMISE_SUSPICIOUS } from "./rules/promise.mjs";
6
+ import { RULES_STYLISTIC } from "./rules/stylistic.mjs";
6
7
  import { RULES_TYPESCRIPT, RULES_TYPESCRIPT_NURSERY, RULES_TYPESCRIPT_PEDANTIC, RULES_TYPESCRIPT_RESTRICTION, RULES_TYPESCRIPT_STYLE, RULES_TYPESCRIPT_SUSPICIOUS } from "./rules/typescript.mjs";
7
8
  import { RULES_UNICORN, RULES_UNICORN_PEDANTIC, RULES_UNICORN_RESTRICTION, RULES_UNICORN_STYLE, RULES_UNICORN_SUSPICIOUS } from "./rules/unicorn.mjs";
8
9
  import { commonPreset } from "./preset/index.mjs";
9
10
 
10
- export { PLUGIN_COMMON, RULES_ESLINT, RULES_ESLINT_NURSERY, RULES_ESLINT_PEDANTIC, RULES_ESLINT_PERF, RULES_ESLINT_RESTRICTION, RULES_ESLINT_STYLE, RULES_ESLINT_SUSPICIOUS, RULES_IMPORT, RULES_IMPORT_CORRECTNESS, RULES_IMPORT_NURSERY, RULES_IMPORT_RESTRICTION, RULES_IMPORT_STYLE, RULES_IMPORT_SUSPICIOUS, RULES_OXC, RULES_OXC_NURSERY, RULES_OXC_RESTRICTION, RULES_PROMISE, RULES_PROMISE_CORRECTNESS, RULES_PROMISE_NURSERY, RULES_PROMISE_RESTRICTION, RULES_PROMISE_STYLE, RULES_PROMISE_SUSPICIOUS, RULES_TYPESCRIPT, RULES_TYPESCRIPT_NURSERY, RULES_TYPESCRIPT_PEDANTIC, RULES_TYPESCRIPT_RESTRICTION, RULES_TYPESCRIPT_STYLE, RULES_TYPESCRIPT_SUSPICIOUS, RULES_UNICORN, RULES_UNICORN_PEDANTIC, RULES_UNICORN_RESTRICTION, RULES_UNICORN_STYLE, RULES_UNICORN_SUSPICIOUS, commonPreset };
11
+ export { PLUGIN_COMMON, PLUGIN_JS_COMMON, RULES_ESLINT, RULES_ESLINT_NURSERY, RULES_ESLINT_PEDANTIC, RULES_ESLINT_PERF, RULES_ESLINT_RESTRICTION, RULES_ESLINT_STYLE, RULES_ESLINT_SUSPICIOUS, RULES_IMPORT, RULES_IMPORT_CORRECTNESS, RULES_IMPORT_NURSERY, RULES_IMPORT_RESTRICTION, RULES_IMPORT_STYLE, RULES_IMPORT_SUSPICIOUS, RULES_OXC, RULES_OXC_NURSERY, RULES_OXC_RESTRICTION, RULES_PROMISE, RULES_PROMISE_CORRECTNESS, RULES_PROMISE_NURSERY, RULES_PROMISE_RESTRICTION, RULES_PROMISE_STYLE, RULES_PROMISE_SUSPICIOUS, RULES_STYLISTIC, RULES_TYPESCRIPT, RULES_TYPESCRIPT_NURSERY, RULES_TYPESCRIPT_PEDANTIC, RULES_TYPESCRIPT_RESTRICTION, RULES_TYPESCRIPT_STYLE, RULES_TYPESCRIPT_SUSPICIOUS, RULES_UNICORN, RULES_UNICORN_PEDANTIC, RULES_UNICORN_RESTRICTION, RULES_UNICORN_STYLE, RULES_UNICORN_SUSPICIOUS, commonPreset };
@@ -1,3 +1,4 @@
1
1
  declare const PLUGIN_COMMON: ["eslint", "typescript", "unicorn", "oxc", "import", "promise"];
2
- export { PLUGIN_COMMON };
2
+ declare const PLUGIN_JS_COMMON: readonly ["@stylistic/eslint-plugin"];
3
+ export { PLUGIN_COMMON, PLUGIN_JS_COMMON };
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -7,6 +7,8 @@ const PLUGIN_COMMON = [
7
7
  "import",
8
8
  "promise"
9
9
  ];
10
+ const PLUGIN_JS_COMMON = ["@stylistic/eslint-plugin"];
10
11
 
11
12
  exports.PLUGIN_COMMON = PLUGIN_COMMON;
13
+ exports.PLUGIN_JS_COMMON = PLUGIN_JS_COMMON;
12
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/presets/common/plugin/index.ts"],"sourcesContent":["import type { LintPlugins } from \"#/@types/oxlint\";\n\nconst PLUGIN_COMMON = [\n \"eslint\",\n \"typescript\",\n \"unicorn\",\n \"oxc\",\n \"import\",\n \"promise\",\n] as const satisfies LintPlugins;\n\nexport { PLUGIN_COMMON };\n"],"mappings":";AAEA,MAAM,gBAAgB;CAClB;CACA;CACA;CACA;CACA;CACA;CACH"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/presets/common/plugin/index.ts"],"sourcesContent":["import type { LintPlugins } from \"#/@types/oxlint\";\n\nconst PLUGIN_COMMON = [\n \"eslint\",\n \"typescript\",\n \"unicorn\",\n \"oxc\",\n \"import\",\n \"promise\",\n] as const satisfies LintPlugins;\n\nconst PLUGIN_JS_COMMON = [\n \"@stylistic/eslint-plugin\",\n] as const;\n\nexport { PLUGIN_COMMON, PLUGIN_JS_COMMON };\n"],"mappings":";AAEA,MAAM,gBAAgB;CAClB;CACA;CACA;CACA;CACA;CACA;AACJ;AAEA,MAAM,mBAAmB,CACrB,0BACJ"}
@@ -6,6 +6,7 @@ const PLUGIN_COMMON = [
6
6
  "import",
7
7
  "promise"
8
8
  ];
9
+ const PLUGIN_JS_COMMON = ["@stylistic/eslint-plugin"];
9
10
 
10
- export { PLUGIN_COMMON };
11
+ export { PLUGIN_COMMON, PLUGIN_JS_COMMON };
11
12
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/presets/common/plugin/index.ts"],"sourcesContent":["import type { LintPlugins } from \"#/@types/oxlint\";\n\nconst PLUGIN_COMMON = [\n \"eslint\",\n \"typescript\",\n \"unicorn\",\n \"oxc\",\n \"import\",\n \"promise\",\n] as const satisfies LintPlugins;\n\nexport { PLUGIN_COMMON };\n"],"mappings":"AAEA,MAAM,gBAAgB;CAClB;CACA;CACA;CACA;CACA;CACA;CACH"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/presets/common/plugin/index.ts"],"sourcesContent":["import type { LintPlugins } from \"#/@types/oxlint\";\n\nconst PLUGIN_COMMON = [\n \"eslint\",\n \"typescript\",\n \"unicorn\",\n \"oxc\",\n \"import\",\n \"promise\",\n] as const satisfies LintPlugins;\n\nconst PLUGIN_JS_COMMON = [\n \"@stylistic/eslint-plugin\",\n] as const;\n\nexport { PLUGIN_COMMON, PLUGIN_JS_COMMON };\n"],"mappings":"AAEA,MAAM,gBAAgB;CAClB;CACA;CACA;CACA;CACA;CACA;AACJ;AAEA,MAAM,mBAAmB,CACrB,0BACJ"}
@@ -3,6 +3,7 @@ const require_eslint = require('../rules/eslint.js');
3
3
  const require_import = require('../rules/import.js');
4
4
  const require_oxc = require('../rules/oxc.js');
5
5
  const require_promise = require('../rules/promise.js');
6
+ const require_stylistic = require('../rules/stylistic.js');
6
7
  const require_typescript = require('../rules/typescript.js');
7
8
  const require_unicorn = require('../rules/unicorn.js');
8
9
  let es_toolkit = require("es-toolkit");
@@ -11,13 +12,15 @@ const commonPreset = () => {
11
12
  return ({ config: internalConfig }) => {
12
13
  return { config: (0, es_toolkit.toMerged)(internalConfig, {
13
14
  plugins: [...require_index.PLUGIN_COMMON],
15
+ jsPlugins: [...require_index.PLUGIN_JS_COMMON],
14
16
  rules: {
15
17
  ...require_eslint.RULES_ESLINT,
16
18
  ...require_typescript.RULES_TYPESCRIPT,
17
19
  ...require_unicorn.RULES_UNICORN,
18
20
  ...require_oxc.RULES_OXC,
19
21
  ...require_import.RULES_IMPORT,
20
- ...require_promise.RULES_PROMISE
22
+ ...require_promise.RULES_PROMISE,
23
+ ...require_stylistic.RULES_STYLISTIC
21
24
  }
22
25
  }) };
23
26
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["PLUGIN_COMMON","RULES_ESLINT","RULES_TYPESCRIPT","RULES_UNICORN","RULES_OXC","RULES_IMPORT","RULES_PROMISE"],"sources":["../../../../src/presets/common/preset/index.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nimport type { Preset, PresetResult } from \"#/@types/preset\";\n\nimport { toMerged } from \"es-toolkit\";\n\nimport { PLUGIN_COMMON } from \"#/presets/common/plugin\";\nimport { RULES_ESLINT } from \"#/presets/common/rules/eslint\";\nimport { RULES_IMPORT } from \"#/presets/common/rules/import\";\nimport { RULES_OXC } from \"#/presets/common/rules/oxc\";\nimport { RULES_PROMISE } from \"#/presets/common/rules/promise\";\nimport { RULES_TYPESCRIPT } from \"#/presets/common/rules/typescript\";\nimport { RULES_UNICORN } from \"#/presets/common/rules/unicorn\";\n\nconst commonPreset = (): Preset => {\n return ({ config: internalConfig }): PresetResult => {\n const config: OxlintConfig = toMerged(internalConfig, {\n plugins: [\n ...PLUGIN_COMMON,\n ],\n rules: {\n ...RULES_ESLINT,\n ...RULES_TYPESCRIPT,\n ...RULES_UNICORN,\n ...RULES_OXC,\n ...RULES_IMPORT,\n ...RULES_PROMISE,\n },\n } satisfies OxlintConfig);\n\n return {\n config,\n };\n };\n};\n\nexport { commonPreset };\n"],"mappings":";;;;;;;;;AAcA,MAAM,qBAA6B;AAC/B,SAAQ,EAAE,QAAQ,qBAAmC;AAejD,SAAO,EACH,iCAfkC,gBAAgB;GAClD,SAAS,CACL,GAAGA,4BACN;GACD,OAAO;IACH,GAAGC;IACH,GAAGC;IACH,GAAGC;IACH,GAAGC;IACH,GAAGC;IACH,GAAGC;IACN;GACJ,CAAwB,EAIxB"}
1
+ {"version":3,"file":"index.js","names":["PLUGIN_COMMON","PLUGIN_JS_COMMON","RULES_ESLINT","RULES_TYPESCRIPT","RULES_UNICORN","RULES_OXC","RULES_IMPORT","RULES_PROMISE","RULES_STYLISTIC"],"sources":["../../../../src/presets/common/preset/index.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nimport type { Preset, PresetResult } from \"#/@types/preset\";\n\nimport { toMerged } from \"es-toolkit\";\n\nimport { PLUGIN_COMMON, PLUGIN_JS_COMMON } from \"#/presets/common/plugin\";\nimport { RULES_ESLINT } from \"#/presets/common/rules/eslint\";\nimport { RULES_IMPORT } from \"#/presets/common/rules/import\";\nimport { RULES_OXC } from \"#/presets/common/rules/oxc\";\nimport { RULES_PROMISE } from \"#/presets/common/rules/promise\";\nimport { RULES_STYLISTIC } from \"#/presets/common/rules/stylistic\";\nimport { RULES_TYPESCRIPT } from \"#/presets/common/rules/typescript\";\nimport { RULES_UNICORN } from \"#/presets/common/rules/unicorn\";\n\nconst commonPreset = (): Preset => {\n return ({ config: internalConfig }): PresetResult => {\n const config: OxlintConfig = toMerged(internalConfig, {\n plugins: [\n ...PLUGIN_COMMON,\n ],\n jsPlugins: [\n ...PLUGIN_JS_COMMON,\n ],\n rules: {\n // Plugins\n ...RULES_ESLINT,\n ...RULES_TYPESCRIPT,\n ...RULES_UNICORN,\n ...RULES_OXC,\n ...RULES_IMPORT,\n ...RULES_PROMISE,\n // JavaScript plugins\n ...RULES_STYLISTIC,\n },\n } satisfies OxlintConfig);\n\n return {\n config,\n };\n };\n};\n\nexport { commonPreset };\n"],"mappings":";;;;;;;;;;AAeA,MAAM,qBAA6B;CAC/B,QAAQ,EAAE,QAAQ,qBAAmC;EAqBjD,OAAO,EACH,iCArBkC,gBAAgB;GAClD,SAAS,CACL,GAAGA,2BACP;GACA,WAAW,CACP,GAAGC,8BACP;GACA,OAAO;IAEH,GAAGC;IACH,GAAGC;IACH,GAAGC;IACH,GAAGC;IACH,GAAGC;IACH,GAAGC;IAEH,GAAGC;GACP;EACJ,CAGS,EACT;CACJ;AACJ"}
@@ -1,8 +1,9 @@
1
- import { PLUGIN_COMMON } from "../plugin/index.mjs";
1
+ import { PLUGIN_COMMON, PLUGIN_JS_COMMON } from "../plugin/index.mjs";
2
2
  import { RULES_ESLINT } from "../rules/eslint.mjs";
3
3
  import { RULES_IMPORT } from "../rules/import.mjs";
4
4
  import { RULES_OXC } from "../rules/oxc.mjs";
5
5
  import { RULES_PROMISE } from "../rules/promise.mjs";
6
+ import { RULES_STYLISTIC } from "../rules/stylistic.mjs";
6
7
  import { RULES_TYPESCRIPT } from "../rules/typescript.mjs";
7
8
  import { RULES_UNICORN } from "../rules/unicorn.mjs";
8
9
  import { toMerged } from "es-toolkit";
@@ -11,13 +12,15 @@ const commonPreset = () => {
11
12
  return ({ config: internalConfig }) => {
12
13
  return { config: toMerged(internalConfig, {
13
14
  plugins: [...PLUGIN_COMMON],
15
+ jsPlugins: [...PLUGIN_JS_COMMON],
14
16
  rules: {
15
17
  ...RULES_ESLINT,
16
18
  ...RULES_TYPESCRIPT,
17
19
  ...RULES_UNICORN,
18
20
  ...RULES_OXC,
19
21
  ...RULES_IMPORT,
20
- ...RULES_PROMISE
22
+ ...RULES_PROMISE,
23
+ ...RULES_STYLISTIC
21
24
  }
22
25
  }) };
23
26
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/presets/common/preset/index.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nimport type { Preset, PresetResult } from \"#/@types/preset\";\n\nimport { toMerged } from \"es-toolkit\";\n\nimport { PLUGIN_COMMON } from \"#/presets/common/plugin\";\nimport { RULES_ESLINT } from \"#/presets/common/rules/eslint\";\nimport { RULES_IMPORT } from \"#/presets/common/rules/import\";\nimport { RULES_OXC } from \"#/presets/common/rules/oxc\";\nimport { RULES_PROMISE } from \"#/presets/common/rules/promise\";\nimport { RULES_TYPESCRIPT } from \"#/presets/common/rules/typescript\";\nimport { RULES_UNICORN } from \"#/presets/common/rules/unicorn\";\n\nconst commonPreset = (): Preset => {\n return ({ config: internalConfig }): PresetResult => {\n const config: OxlintConfig = toMerged(internalConfig, {\n plugins: [\n ...PLUGIN_COMMON,\n ],\n rules: {\n ...RULES_ESLINT,\n ...RULES_TYPESCRIPT,\n ...RULES_UNICORN,\n ...RULES_OXC,\n ...RULES_IMPORT,\n ...RULES_PROMISE,\n },\n } satisfies OxlintConfig);\n\n return {\n config,\n };\n };\n};\n\nexport { commonPreset };\n"],"mappings":";;;;;;;;;AAcA,MAAM,qBAA6B;AAC/B,SAAQ,EAAE,QAAQ,qBAAmC;AAejD,SAAO,EACH,QAfyB,SAAS,gBAAgB;GAClD,SAAS,CACL,GAAG,cACN;GACD,OAAO;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACN;GACJ,CAAwB,EAIxB"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/presets/common/preset/index.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nimport type { Preset, PresetResult } from \"#/@types/preset\";\n\nimport { toMerged } from \"es-toolkit\";\n\nimport { PLUGIN_COMMON, PLUGIN_JS_COMMON } from \"#/presets/common/plugin\";\nimport { RULES_ESLINT } from \"#/presets/common/rules/eslint\";\nimport { RULES_IMPORT } from \"#/presets/common/rules/import\";\nimport { RULES_OXC } from \"#/presets/common/rules/oxc\";\nimport { RULES_PROMISE } from \"#/presets/common/rules/promise\";\nimport { RULES_STYLISTIC } from \"#/presets/common/rules/stylistic\";\nimport { RULES_TYPESCRIPT } from \"#/presets/common/rules/typescript\";\nimport { RULES_UNICORN } from \"#/presets/common/rules/unicorn\";\n\nconst commonPreset = (): Preset => {\n return ({ config: internalConfig }): PresetResult => {\n const config: OxlintConfig = toMerged(internalConfig, {\n plugins: [\n ...PLUGIN_COMMON,\n ],\n jsPlugins: [\n ...PLUGIN_JS_COMMON,\n ],\n rules: {\n // Plugins\n ...RULES_ESLINT,\n ...RULES_TYPESCRIPT,\n ...RULES_UNICORN,\n ...RULES_OXC,\n ...RULES_IMPORT,\n ...RULES_PROMISE,\n // JavaScript plugins\n ...RULES_STYLISTIC,\n },\n } satisfies OxlintConfig);\n\n return {\n config,\n };\n };\n};\n\nexport { commonPreset };\n"],"mappings":";;;;;;;;;;AAeA,MAAM,qBAA6B;CAC/B,QAAQ,EAAE,QAAQ,qBAAmC;EAqBjD,OAAO,EACH,QArByB,SAAS,gBAAgB;GAClD,SAAS,CACL,GAAG,aACP;GACA,WAAW,CACP,GAAG,gBACP;GACA,OAAO;IAEH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IAEH,GAAG;GACP;EACJ,CAGS,EACT;CACJ;AACJ"}
@@ -1,8 +1,5 @@
1
1
  declare const RULES_ESLINT_NURSERY: {
2
2
  readonly "getter-return": "error";
3
- readonly "no-undef": ["error", {
4
- readonly typeof: true;
5
- }];
6
3
  readonly "no-unreachable": "error";
7
4
  };
8
5
  declare const RULES_ESLINT_PEDANTIC: {
@@ -33,25 +30,19 @@ declare const RULES_ESLINT_PERF: {
33
30
  };
34
31
  declare const RULES_ESLINT_RESTRICTION: {
35
32
  readonly "no-div-regex": "error";
36
- readonly "no-param-reassign": ["error", {
37
- readonly props: true;
38
- }];
39
33
  readonly "no-undefined": "error";
40
34
  readonly "no-use-before-define": ["error", {
41
- readonly allowNamedExports: false;
35
+ readonly allowNamedExports: true;
42
36
  readonly classes: true;
43
37
  readonly enums: true;
44
- readonly functions: true;
38
+ readonly functions: false;
45
39
  readonly ignoreTypeReferences: true;
46
40
  readonly typedefs: true;
47
- readonly variables: true;
41
+ readonly variables: false;
48
42
  }];
49
43
  readonly "no-var": "error";
50
44
  };
51
45
  declare const RULES_ESLINT_STYLE: {
52
- readonly "arrow-body-style": ["error", "as-needed", {
53
- readonly requireReturnForObjectLiteral: false;
54
- }];
55
46
  readonly "default-case-last": "error";
56
47
  readonly "grouped-accessor-pairs": ["error", "getBeforeSet", {
57
48
  readonly enforceForTSTypes: true;
@@ -80,8 +71,8 @@ declare const RULES_ESLINT_SUSPICIOUS: {
80
71
  readonly "block-scoped-var": "error";
81
72
  readonly "no-extend-native": "error";
82
73
  readonly "no-shadow": ["error", {
83
- readonly builtinGlobals: true;
84
- readonly host: "all";
74
+ readonly builtinGlobals: false;
75
+ readonly hoist: "all";
85
76
  readonly ignoreFunctionTypeParameterNameValueShadow: false;
86
77
  readonly ignoreOnInitialization: false;
87
78
  readonly ignoreTypeValueShadow: false;
@@ -93,17 +84,14 @@ declare const RULES_ESLINT: {
93
84
  readonly "block-scoped-var": "error";
94
85
  readonly "no-extend-native": "error";
95
86
  readonly "no-shadow": ["error", {
96
- readonly builtinGlobals: true;
97
- readonly host: "all";
87
+ readonly builtinGlobals: false;
88
+ readonly hoist: "all";
98
89
  readonly ignoreFunctionTypeParameterNameValueShadow: false;
99
90
  readonly ignoreOnInitialization: false;
100
91
  readonly ignoreTypeValueShadow: false;
101
92
  }];
102
93
  readonly "no-unexpected-multiline": "error";
103
94
  readonly "no-unneeded-ternary": "error";
104
- readonly "arrow-body-style": ["error", "as-needed", {
105
- readonly requireReturnForObjectLiteral: false;
106
- }];
107
95
  readonly "default-case-last": "error";
108
96
  readonly "grouped-accessor-pairs": ["error", "getBeforeSet", {
109
97
  readonly enforceForTSTypes: true;
@@ -128,18 +116,15 @@ declare const RULES_ESLINT: {
128
116
  readonly "prefer-rest-params": "error";
129
117
  readonly "prefer-spread": "error";
130
118
  readonly "no-div-regex": "error";
131
- readonly "no-param-reassign": ["error", {
132
- readonly props: true;
133
- }];
134
119
  readonly "no-undefined": "error";
135
120
  readonly "no-use-before-define": ["error", {
136
- readonly allowNamedExports: false;
121
+ readonly allowNamedExports: true;
137
122
  readonly classes: true;
138
123
  readonly enums: true;
139
- readonly functions: true;
124
+ readonly functions: false;
140
125
  readonly ignoreTypeReferences: true;
141
126
  readonly typedefs: true;
142
- readonly variables: true;
127
+ readonly variables: false;
143
128
  }];
144
129
  readonly "no-var": "error";
145
130
  readonly "no-useless-call": "error";
@@ -165,9 +150,6 @@ declare const RULES_ESLINT: {
165
150
  readonly "no-useless-return": "error";
166
151
  readonly radix: "error";
167
152
  readonly "getter-return": "error";
168
- readonly "no-undef": ["error", {
169
- readonly typeof: true;
170
- }];
171
153
  readonly "no-unreachable": "error";
172
154
  };
173
155
  export { RULES_ESLINT, RULES_ESLINT_NURSERY, RULES_ESLINT_PEDANTIC, RULES_ESLINT_PERF, RULES_ESLINT_RESTRICTION, RULES_ESLINT_STYLE, RULES_ESLINT_SUSPICIOUS };
@@ -1,7 +1,6 @@
1
1
 
2
2
  const RULES_ESLINT_NURSERY = {
3
3
  "getter-return": "error",
4
- "no-undef": ["error", { typeof: true }],
5
4
  "no-unreachable": "error"
6
5
  };
7
6
  const RULES_ESLINT_PEDANTIC = {
@@ -22,25 +21,19 @@ const RULES_ESLINT_PEDANTIC = {
22
21
  const RULES_ESLINT_PERF = { "no-useless-call": "error" };
23
22
  const RULES_ESLINT_RESTRICTION = {
24
23
  "no-div-regex": "error",
25
- "no-param-reassign": ["error", { props: true }],
26
24
  "no-undefined": "error",
27
25
  "no-use-before-define": ["error", {
28
- allowNamedExports: false,
26
+ allowNamedExports: true,
29
27
  classes: true,
30
28
  enums: true,
31
- functions: true,
29
+ functions: false,
32
30
  ignoreTypeReferences: true,
33
31
  typedefs: true,
34
- variables: true
32
+ variables: false
35
33
  }],
36
34
  "no-var": "error"
37
35
  };
38
36
  const RULES_ESLINT_STYLE = {
39
- "arrow-body-style": [
40
- "error",
41
- "as-needed",
42
- { requireReturnForObjectLiteral: false }
43
- ],
44
37
  "default-case-last": "error",
45
38
  "grouped-accessor-pairs": [
46
39
  "error",
@@ -65,8 +58,8 @@ const RULES_ESLINT_SUSPICIOUS = {
65
58
  "block-scoped-var": "error",
66
59
  "no-extend-native": "error",
67
60
  "no-shadow": ["error", {
68
- builtinGlobals: true,
69
- host: "all",
61
+ builtinGlobals: false,
62
+ hoist: "all",
70
63
  ignoreFunctionTypeParameterNameValueShadow: false,
71
64
  ignoreOnInitialization: false,
72
65
  ignoreTypeValueShadow: false
@@ -1 +1 @@
1
- {"version":3,"file":"eslint.js","names":[],"sources":["../../../../src/presets/common/rules/eslint.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_ESLINT_NURSERY = {\n \"getter-return\": \"error\",\n \"no-undef\": [\n \"error\",\n {\n typeof: true,\n },\n ],\n \"no-unreachable\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_PEDANTIC = {\n eqeqeq: [\n \"error\",\n \"always\",\n ],\n \"no-array-constructor\": \"error\",\n \"no-case-declarations\": \"error\",\n \"no-constructor-return\": \"error\",\n \"no-else-return\": [\n \"error\",\n {\n allowElseIf: false,\n },\n ],\n \"no-fallthrough\": [\n \"error\",\n {\n allowEmptyCase: true,\n },\n ],\n \"no-loop-func\": \"error\",\n \"no-new-wrappers\": \"error\",\n \"no-object-constructor\": \"error\",\n \"no-promise-executor-return\": [\n \"error\",\n {\n allowVoid: false,\n },\n ],\n \"no-redeclare\": [\n \"error\",\n {\n builtinGlobals: true,\n },\n ],\n \"no-useless-return\": \"error\",\n radix: \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_PERF = {\n \"no-useless-call\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_RESTRICTION = {\n \"no-div-regex\": \"error\",\n \"no-param-reassign\": [\n \"error\",\n {\n props: true,\n },\n ],\n \"no-undefined\": \"error\",\n \"no-use-before-define\": [\n \"error\",\n {\n allowNamedExports: false,\n classes: true,\n enums: true,\n functions: true,\n ignoreTypeReferences: true,\n typedefs: true,\n variables: true,\n },\n ],\n \"no-var\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_STYLE = {\n \"arrow-body-style\": [\n \"error\",\n \"as-needed\",\n {\n requireReturnForObjectLiteral: false,\n },\n ],\n \"default-case-last\": \"error\",\n \"grouped-accessor-pairs\": [\n \"error\",\n \"getBeforeSet\",\n {\n enforceForTSTypes: true,\n },\n ],\n \"no-extra-label\": \"error\",\n \"no-implicit-coercion\": \"error\",\n \"no-label-var\": \"error\",\n \"no-multi-assign\": [\n \"error\",\n {\n ignoreNonDeclaration: false,\n },\n ],\n \"no-template-curly-in-string\": \"error\",\n \"no-useless-computed-key\": [\n \"error\",\n {\n enforceForClassMembers: true,\n },\n ],\n \"prefer-const\": [\n \"error\",\n {\n destructuring: \"all\",\n // avoid conflicts with `no-use-before-define`\n ignoreReadBeforeAssign: true,\n },\n ],\n \"prefer-promise-reject-errors\": [\n \"error\",\n {\n allowEmptyReject: false,\n },\n ],\n \"prefer-rest-params\": \"error\",\n \"prefer-spread\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_SUSPICIOUS = {\n \"block-scoped-var\": \"error\",\n \"no-extend-native\": \"error\",\n \"no-shadow\": [\n \"error\",\n {\n builtinGlobals: true,\n host: \"all\",\n ignoreFunctionTypeParameterNameValueShadow: false,\n ignoreOnInitialization: false,\n ignoreTypeValueShadow: false,\n },\n ],\n \"no-unexpected-multiline\": \"error\",\n \"no-unneeded-ternary\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT = {\n ...RULES_ESLINT_NURSERY,\n ...RULES_ESLINT_PEDANTIC,\n ...RULES_ESLINT_PERF,\n ...RULES_ESLINT_RESTRICTION,\n ...RULES_ESLINT_STYLE,\n ...RULES_ESLINT_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport {\n RULES_ESLINT,\n RULES_ESLINT_NURSERY,\n RULES_ESLINT_PEDANTIC,\n RULES_ESLINT_PERF,\n RULES_ESLINT_RESTRICTION,\n RULES_ESLINT_STYLE,\n RULES_ESLINT_SUSPICIOUS,\n};\n"],"mappings":";AAEA,MAAM,uBAAuB;CACzB,iBAAiB;CACjB,YAAY,CACR,SACA,EACI,QAAQ,MACX,CACJ;CACD,kBAAkB;CACrB;AAED,MAAM,wBAAwB;CAC1B,QAAQ,CACJ,SACA,SACH;CACD,wBAAwB;CACxB,wBAAwB;CACxB,yBAAyB;CACzB,kBAAkB,CACd,SACA,EACI,aAAa,OAChB,CACJ;CACD,kBAAkB,CACd,SACA,EACI,gBAAgB,MACnB,CACJ;CACD,gBAAgB;CAChB,mBAAmB;CACnB,yBAAyB;CACzB,8BAA8B,CAC1B,SACA,EACI,WAAW,OACd,CACJ;CACD,gBAAgB,CACZ,SACA,EACI,gBAAgB,MACnB,CACJ;CACD,qBAAqB;CACrB,OAAO;CACV;AAED,MAAM,oBAAoB,EACtB,mBAAmB,SACtB;AAED,MAAM,2BAA2B;CAC7B,gBAAgB;CAChB,qBAAqB,CACjB,SACA,EACI,OAAO,MACV,CACJ;CACD,gBAAgB;CAChB,wBAAwB,CACpB,SACA;EACI,mBAAmB;EACnB,SAAS;EACT,OAAO;EACP,WAAW;EACX,sBAAsB;EACtB,UAAU;EACV,WAAW;EACd,CACJ;CACD,UAAU;CACb;AAED,MAAM,qBAAqB;CACvB,oBAAoB;EAChB;EACA;EACA,EACI,+BAA+B,OAClC;EACJ;CACD,qBAAqB;CACrB,0BAA0B;EACtB;EACA;EACA,EACI,mBAAmB,MACtB;EACJ;CACD,kBAAkB;CAClB,wBAAwB;CACxB,gBAAgB;CAChB,mBAAmB,CACf,SACA,EACI,sBAAsB,OACzB,CACJ;CACD,+BAA+B;CAC/B,2BAA2B,CACvB,SACA,EACI,wBAAwB,MAC3B,CACJ;CACD,gBAAgB,CACZ,SACA;EACI,eAAe;EAEf,wBAAwB;EAC3B,CACJ;CACD,gCAAgC,CAC5B,SACA,EACI,kBAAkB,OACrB,CACJ;CACD,sBAAsB;CACtB,iBAAiB;CACpB;AAED,MAAM,0BAA0B;CAC5B,oBAAoB;CACpB,oBAAoB;CACpB,aAAa,CACT,SACA;EACI,gBAAgB;EAChB,MAAM;EACN,4CAA4C;EAC5C,wBAAwB;EACxB,uBAAuB;EAC1B,CACJ;CACD,2BAA2B;CAC3B,uBAAuB;CAC1B;AAED,MAAM,eAAe;CACjB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACN"}
1
+ {"version":3,"file":"eslint.js","names":[],"sources":["../../../../src/presets/common/rules/eslint.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_ESLINT_NURSERY = {\n \"getter-return\": \"error\",\n \"no-unreachable\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_PEDANTIC = {\n eqeqeq: [\n \"error\",\n \"always\",\n ],\n \"no-array-constructor\": \"error\",\n \"no-case-declarations\": \"error\",\n \"no-constructor-return\": \"error\",\n \"no-else-return\": [\n \"error\",\n {\n allowElseIf: false,\n },\n ],\n \"no-fallthrough\": [\n \"error\",\n {\n allowEmptyCase: true,\n },\n ],\n \"no-loop-func\": \"error\",\n \"no-new-wrappers\": \"error\",\n \"no-object-constructor\": \"error\",\n \"no-promise-executor-return\": [\n \"error\",\n {\n allowVoid: false,\n },\n ],\n \"no-redeclare\": [\n \"error\",\n {\n builtinGlobals: true,\n },\n ],\n \"no-useless-return\": \"error\",\n radix: \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_PERF = {\n \"no-useless-call\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_RESTRICTION = {\n \"no-div-regex\": \"error\",\n \"no-undefined\": \"error\",\n \"no-use-before-define\": [\n \"error\",\n {\n allowNamedExports: true,\n classes: true,\n enums: true,\n functions: false,\n ignoreTypeReferences: true,\n typedefs: true,\n variables: false,\n },\n ],\n \"no-var\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_STYLE = {\n \"default-case-last\": \"error\",\n \"grouped-accessor-pairs\": [\n \"error\",\n \"getBeforeSet\",\n {\n enforceForTSTypes: true,\n },\n ],\n \"no-extra-label\": \"error\",\n \"no-implicit-coercion\": \"error\",\n \"no-label-var\": \"error\",\n \"no-multi-assign\": [\n \"error\",\n {\n ignoreNonDeclaration: false,\n },\n ],\n \"no-template-curly-in-string\": \"error\",\n \"no-useless-computed-key\": [\n \"error\",\n {\n enforceForClassMembers: true,\n },\n ],\n \"prefer-const\": [\n \"error\",\n {\n destructuring: \"all\",\n // avoid conflicts with `no-use-before-define`\n ignoreReadBeforeAssign: true,\n },\n ],\n \"prefer-promise-reject-errors\": [\n \"error\",\n {\n allowEmptyReject: false,\n },\n ],\n \"prefer-rest-params\": \"error\",\n \"prefer-spread\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_SUSPICIOUS = {\n \"block-scoped-var\": \"error\",\n \"no-extend-native\": \"error\",\n \"no-shadow\": [\n \"error\",\n {\n builtinGlobals: false,\n hoist: \"all\",\n ignoreFunctionTypeParameterNameValueShadow: false,\n ignoreOnInitialization: false,\n ignoreTypeValueShadow: false,\n },\n ],\n \"no-unexpected-multiline\": \"error\",\n \"no-unneeded-ternary\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT = {\n ...RULES_ESLINT_NURSERY,\n ...RULES_ESLINT_PEDANTIC,\n ...RULES_ESLINT_PERF,\n ...RULES_ESLINT_RESTRICTION,\n ...RULES_ESLINT_STYLE,\n ...RULES_ESLINT_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport {\n RULES_ESLINT,\n RULES_ESLINT_NURSERY,\n RULES_ESLINT_PEDANTIC,\n RULES_ESLINT_PERF,\n RULES_ESLINT_RESTRICTION,\n RULES_ESLINT_STYLE,\n RULES_ESLINT_SUSPICIOUS,\n};\n"],"mappings":";AAEA,MAAM,uBAAuB;CACzB,iBAAiB;CACjB,kBAAkB;AACtB;AAEA,MAAM,wBAAwB;CAC1B,QAAQ,CACJ,SACA,QACJ;CACA,wBAAwB;CACxB,wBAAwB;CACxB,yBAAyB;CACzB,kBAAkB,CACd,SACA,EACI,aAAa,MACjB,CACJ;CACA,kBAAkB,CACd,SACA,EACI,gBAAgB,KACpB,CACJ;CACA,gBAAgB;CAChB,mBAAmB;CACnB,yBAAyB;CACzB,8BAA8B,CAC1B,SACA,EACI,WAAW,MACf,CACJ;CACA,gBAAgB,CACZ,SACA,EACI,gBAAgB,KACpB,CACJ;CACA,qBAAqB;CACrB,OAAO;AACX;AAEA,MAAM,oBAAoB,EACtB,mBAAmB,QACvB;AAEA,MAAM,2BAA2B;CAC7B,gBAAgB;CAChB,gBAAgB;CAChB,wBAAwB,CACpB,SACA;EACI,mBAAmB;EACnB,SAAS;EACT,OAAO;EACP,WAAW;EACX,sBAAsB;EACtB,UAAU;EACV,WAAW;CACf,CACJ;CACA,UAAU;AACd;AAEA,MAAM,qBAAqB;CACvB,qBAAqB;CACrB,0BAA0B;EACtB;EACA;EACA,EACI,mBAAmB,KACvB;CACJ;CACA,kBAAkB;CAClB,wBAAwB;CACxB,gBAAgB;CAChB,mBAAmB,CACf,SACA,EACI,sBAAsB,MAC1B,CACJ;CACA,+BAA+B;CAC/B,2BAA2B,CACvB,SACA,EACI,wBAAwB,KAC5B,CACJ;CACA,gBAAgB,CACZ,SACA;EACI,eAAe;EAEf,wBAAwB;CAC5B,CACJ;CACA,gCAAgC,CAC5B,SACA,EACI,kBAAkB,MACtB,CACJ;CACA,sBAAsB;CACtB,iBAAiB;AACrB;AAEA,MAAM,0BAA0B;CAC5B,oBAAoB;CACpB,oBAAoB;CACpB,aAAa,CACT,SACA;EACI,gBAAgB;EAChB,OAAO;EACP,4CAA4C;EAC5C,wBAAwB;EACxB,uBAAuB;CAC3B,CACJ;CACA,2BAA2B;CAC3B,uBAAuB;AAC3B;AAEA,MAAM,eAAe;CACjB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;AACP"}
@@ -1,6 +1,5 @@
1
1
  const RULES_ESLINT_NURSERY = {
2
2
  "getter-return": "error",
3
- "no-undef": ["error", { typeof: true }],
4
3
  "no-unreachable": "error"
5
4
  };
6
5
  const RULES_ESLINT_PEDANTIC = {
@@ -21,25 +20,19 @@ const RULES_ESLINT_PEDANTIC = {
21
20
  const RULES_ESLINT_PERF = { "no-useless-call": "error" };
22
21
  const RULES_ESLINT_RESTRICTION = {
23
22
  "no-div-regex": "error",
24
- "no-param-reassign": ["error", { props: true }],
25
23
  "no-undefined": "error",
26
24
  "no-use-before-define": ["error", {
27
- allowNamedExports: false,
25
+ allowNamedExports: true,
28
26
  classes: true,
29
27
  enums: true,
30
- functions: true,
28
+ functions: false,
31
29
  ignoreTypeReferences: true,
32
30
  typedefs: true,
33
- variables: true
31
+ variables: false
34
32
  }],
35
33
  "no-var": "error"
36
34
  };
37
35
  const RULES_ESLINT_STYLE = {
38
- "arrow-body-style": [
39
- "error",
40
- "as-needed",
41
- { requireReturnForObjectLiteral: false }
42
- ],
43
36
  "default-case-last": "error",
44
37
  "grouped-accessor-pairs": [
45
38
  "error",
@@ -64,8 +57,8 @@ const RULES_ESLINT_SUSPICIOUS = {
64
57
  "block-scoped-var": "error",
65
58
  "no-extend-native": "error",
66
59
  "no-shadow": ["error", {
67
- builtinGlobals: true,
68
- host: "all",
60
+ builtinGlobals: false,
61
+ hoist: "all",
69
62
  ignoreFunctionTypeParameterNameValueShadow: false,
70
63
  ignoreOnInitialization: false,
71
64
  ignoreTypeValueShadow: false
@@ -1 +1 @@
1
- {"version":3,"file":"eslint.mjs","names":[],"sources":["../../../../src/presets/common/rules/eslint.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_ESLINT_NURSERY = {\n \"getter-return\": \"error\",\n \"no-undef\": [\n \"error\",\n {\n typeof: true,\n },\n ],\n \"no-unreachable\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_PEDANTIC = {\n eqeqeq: [\n \"error\",\n \"always\",\n ],\n \"no-array-constructor\": \"error\",\n \"no-case-declarations\": \"error\",\n \"no-constructor-return\": \"error\",\n \"no-else-return\": [\n \"error\",\n {\n allowElseIf: false,\n },\n ],\n \"no-fallthrough\": [\n \"error\",\n {\n allowEmptyCase: true,\n },\n ],\n \"no-loop-func\": \"error\",\n \"no-new-wrappers\": \"error\",\n \"no-object-constructor\": \"error\",\n \"no-promise-executor-return\": [\n \"error\",\n {\n allowVoid: false,\n },\n ],\n \"no-redeclare\": [\n \"error\",\n {\n builtinGlobals: true,\n },\n ],\n \"no-useless-return\": \"error\",\n radix: \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_PERF = {\n \"no-useless-call\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_RESTRICTION = {\n \"no-div-regex\": \"error\",\n \"no-param-reassign\": [\n \"error\",\n {\n props: true,\n },\n ],\n \"no-undefined\": \"error\",\n \"no-use-before-define\": [\n \"error\",\n {\n allowNamedExports: false,\n classes: true,\n enums: true,\n functions: true,\n ignoreTypeReferences: true,\n typedefs: true,\n variables: true,\n },\n ],\n \"no-var\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_STYLE = {\n \"arrow-body-style\": [\n \"error\",\n \"as-needed\",\n {\n requireReturnForObjectLiteral: false,\n },\n ],\n \"default-case-last\": \"error\",\n \"grouped-accessor-pairs\": [\n \"error\",\n \"getBeforeSet\",\n {\n enforceForTSTypes: true,\n },\n ],\n \"no-extra-label\": \"error\",\n \"no-implicit-coercion\": \"error\",\n \"no-label-var\": \"error\",\n \"no-multi-assign\": [\n \"error\",\n {\n ignoreNonDeclaration: false,\n },\n ],\n \"no-template-curly-in-string\": \"error\",\n \"no-useless-computed-key\": [\n \"error\",\n {\n enforceForClassMembers: true,\n },\n ],\n \"prefer-const\": [\n \"error\",\n {\n destructuring: \"all\",\n // avoid conflicts with `no-use-before-define`\n ignoreReadBeforeAssign: true,\n },\n ],\n \"prefer-promise-reject-errors\": [\n \"error\",\n {\n allowEmptyReject: false,\n },\n ],\n \"prefer-rest-params\": \"error\",\n \"prefer-spread\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_SUSPICIOUS = {\n \"block-scoped-var\": \"error\",\n \"no-extend-native\": \"error\",\n \"no-shadow\": [\n \"error\",\n {\n builtinGlobals: true,\n host: \"all\",\n ignoreFunctionTypeParameterNameValueShadow: false,\n ignoreOnInitialization: false,\n ignoreTypeValueShadow: false,\n },\n ],\n \"no-unexpected-multiline\": \"error\",\n \"no-unneeded-ternary\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT = {\n ...RULES_ESLINT_NURSERY,\n ...RULES_ESLINT_PEDANTIC,\n ...RULES_ESLINT_PERF,\n ...RULES_ESLINT_RESTRICTION,\n ...RULES_ESLINT_STYLE,\n ...RULES_ESLINT_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport {\n RULES_ESLINT,\n RULES_ESLINT_NURSERY,\n RULES_ESLINT_PEDANTIC,\n RULES_ESLINT_PERF,\n RULES_ESLINT_RESTRICTION,\n RULES_ESLINT_STYLE,\n RULES_ESLINT_SUSPICIOUS,\n};\n"],"mappings":"AAEA,MAAM,uBAAuB;CACzB,iBAAiB;CACjB,YAAY,CACR,SACA,EACI,QAAQ,MACX,CACJ;CACD,kBAAkB;CACrB;AAED,MAAM,wBAAwB;CAC1B,QAAQ,CACJ,SACA,SACH;CACD,wBAAwB;CACxB,wBAAwB;CACxB,yBAAyB;CACzB,kBAAkB,CACd,SACA,EACI,aAAa,OAChB,CACJ;CACD,kBAAkB,CACd,SACA,EACI,gBAAgB,MACnB,CACJ;CACD,gBAAgB;CAChB,mBAAmB;CACnB,yBAAyB;CACzB,8BAA8B,CAC1B,SACA,EACI,WAAW,OACd,CACJ;CACD,gBAAgB,CACZ,SACA,EACI,gBAAgB,MACnB,CACJ;CACD,qBAAqB;CACrB,OAAO;CACV;AAED,MAAM,oBAAoB,EACtB,mBAAmB,SACtB;AAED,MAAM,2BAA2B;CAC7B,gBAAgB;CAChB,qBAAqB,CACjB,SACA,EACI,OAAO,MACV,CACJ;CACD,gBAAgB;CAChB,wBAAwB,CACpB,SACA;EACI,mBAAmB;EACnB,SAAS;EACT,OAAO;EACP,WAAW;EACX,sBAAsB;EACtB,UAAU;EACV,WAAW;EACd,CACJ;CACD,UAAU;CACb;AAED,MAAM,qBAAqB;CACvB,oBAAoB;EAChB;EACA;EACA,EACI,+BAA+B,OAClC;EACJ;CACD,qBAAqB;CACrB,0BAA0B;EACtB;EACA;EACA,EACI,mBAAmB,MACtB;EACJ;CACD,kBAAkB;CAClB,wBAAwB;CACxB,gBAAgB;CAChB,mBAAmB,CACf,SACA,EACI,sBAAsB,OACzB,CACJ;CACD,+BAA+B;CAC/B,2BAA2B,CACvB,SACA,EACI,wBAAwB,MAC3B,CACJ;CACD,gBAAgB,CACZ,SACA;EACI,eAAe;EAEf,wBAAwB;EAC3B,CACJ;CACD,gCAAgC,CAC5B,SACA,EACI,kBAAkB,OACrB,CACJ;CACD,sBAAsB;CACtB,iBAAiB;CACpB;AAED,MAAM,0BAA0B;CAC5B,oBAAoB;CACpB,oBAAoB;CACpB,aAAa,CACT,SACA;EACI,gBAAgB;EAChB,MAAM;EACN,4CAA4C;EAC5C,wBAAwB;EACxB,uBAAuB;EAC1B,CACJ;CACD,2BAA2B;CAC3B,uBAAuB;CAC1B;AAED,MAAM,eAAe;CACjB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACN"}
1
+ {"version":3,"file":"eslint.mjs","names":[],"sources":["../../../../src/presets/common/rules/eslint.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_ESLINT_NURSERY = {\n \"getter-return\": \"error\",\n \"no-unreachable\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_PEDANTIC = {\n eqeqeq: [\n \"error\",\n \"always\",\n ],\n \"no-array-constructor\": \"error\",\n \"no-case-declarations\": \"error\",\n \"no-constructor-return\": \"error\",\n \"no-else-return\": [\n \"error\",\n {\n allowElseIf: false,\n },\n ],\n \"no-fallthrough\": [\n \"error\",\n {\n allowEmptyCase: true,\n },\n ],\n \"no-loop-func\": \"error\",\n \"no-new-wrappers\": \"error\",\n \"no-object-constructor\": \"error\",\n \"no-promise-executor-return\": [\n \"error\",\n {\n allowVoid: false,\n },\n ],\n \"no-redeclare\": [\n \"error\",\n {\n builtinGlobals: true,\n },\n ],\n \"no-useless-return\": \"error\",\n radix: \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_PERF = {\n \"no-useless-call\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_RESTRICTION = {\n \"no-div-regex\": \"error\",\n \"no-undefined\": \"error\",\n \"no-use-before-define\": [\n \"error\",\n {\n allowNamedExports: true,\n classes: true,\n enums: true,\n functions: false,\n ignoreTypeReferences: true,\n typedefs: true,\n variables: false,\n },\n ],\n \"no-var\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_STYLE = {\n \"default-case-last\": \"error\",\n \"grouped-accessor-pairs\": [\n \"error\",\n \"getBeforeSet\",\n {\n enforceForTSTypes: true,\n },\n ],\n \"no-extra-label\": \"error\",\n \"no-implicit-coercion\": \"error\",\n \"no-label-var\": \"error\",\n \"no-multi-assign\": [\n \"error\",\n {\n ignoreNonDeclaration: false,\n },\n ],\n \"no-template-curly-in-string\": \"error\",\n \"no-useless-computed-key\": [\n \"error\",\n {\n enforceForClassMembers: true,\n },\n ],\n \"prefer-const\": [\n \"error\",\n {\n destructuring: \"all\",\n // avoid conflicts with `no-use-before-define`\n ignoreReadBeforeAssign: true,\n },\n ],\n \"prefer-promise-reject-errors\": [\n \"error\",\n {\n allowEmptyReject: false,\n },\n ],\n \"prefer-rest-params\": \"error\",\n \"prefer-spread\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_SUSPICIOUS = {\n \"block-scoped-var\": \"error\",\n \"no-extend-native\": \"error\",\n \"no-shadow\": [\n \"error\",\n {\n builtinGlobals: false,\n hoist: \"all\",\n ignoreFunctionTypeParameterNameValueShadow: false,\n ignoreOnInitialization: false,\n ignoreTypeValueShadow: false,\n },\n ],\n \"no-unexpected-multiline\": \"error\",\n \"no-unneeded-ternary\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT = {\n ...RULES_ESLINT_NURSERY,\n ...RULES_ESLINT_PEDANTIC,\n ...RULES_ESLINT_PERF,\n ...RULES_ESLINT_RESTRICTION,\n ...RULES_ESLINT_STYLE,\n ...RULES_ESLINT_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport {\n RULES_ESLINT,\n RULES_ESLINT_NURSERY,\n RULES_ESLINT_PEDANTIC,\n RULES_ESLINT_PERF,\n RULES_ESLINT_RESTRICTION,\n RULES_ESLINT_STYLE,\n RULES_ESLINT_SUSPICIOUS,\n};\n"],"mappings":"AAEA,MAAM,uBAAuB;CACzB,iBAAiB;CACjB,kBAAkB;AACtB;AAEA,MAAM,wBAAwB;CAC1B,QAAQ,CACJ,SACA,QACJ;CACA,wBAAwB;CACxB,wBAAwB;CACxB,yBAAyB;CACzB,kBAAkB,CACd,SACA,EACI,aAAa,MACjB,CACJ;CACA,kBAAkB,CACd,SACA,EACI,gBAAgB,KACpB,CACJ;CACA,gBAAgB;CAChB,mBAAmB;CACnB,yBAAyB;CACzB,8BAA8B,CAC1B,SACA,EACI,WAAW,MACf,CACJ;CACA,gBAAgB,CACZ,SACA,EACI,gBAAgB,KACpB,CACJ;CACA,qBAAqB;CACrB,OAAO;AACX;AAEA,MAAM,oBAAoB,EACtB,mBAAmB,QACvB;AAEA,MAAM,2BAA2B;CAC7B,gBAAgB;CAChB,gBAAgB;CAChB,wBAAwB,CACpB,SACA;EACI,mBAAmB;EACnB,SAAS;EACT,OAAO;EACP,WAAW;EACX,sBAAsB;EACtB,UAAU;EACV,WAAW;CACf,CACJ;CACA,UAAU;AACd;AAEA,MAAM,qBAAqB;CACvB,qBAAqB;CACrB,0BAA0B;EACtB;EACA;EACA,EACI,mBAAmB,KACvB;CACJ;CACA,kBAAkB;CAClB,wBAAwB;CACxB,gBAAgB;CAChB,mBAAmB,CACf,SACA,EACI,sBAAsB,MAC1B,CACJ;CACA,+BAA+B;CAC/B,2BAA2B,CACvB,SACA,EACI,wBAAwB,KAC5B,CACJ;CACA,gBAAgB,CACZ,SACA;EACI,eAAe;EAEf,wBAAwB;CAC5B,CACJ;CACA,gCAAgC,CAC5B,SACA,EACI,kBAAkB,MACtB,CACJ;CACA,sBAAsB;CACtB,iBAAiB;AACrB;AAEA,MAAM,0BAA0B;CAC5B,oBAAoB;CACpB,oBAAoB;CACpB,aAAa,CACT,SACA;EACI,gBAAgB;EAChB,OAAO;EACP,4CAA4C;EAC5C,wBAAwB;EACxB,uBAAuB;CAC3B,CACJ;CACA,2BAA2B;CAC3B,uBAAuB;AAC3B;AAEA,MAAM,eAAe;CACjB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;AACP"}