import { OxlintConfig } from "oxlint"; /** * Shared [oxlint](https://oxc.rs/docs/guide/usage/linter.html) config for Sanity plugins - the * same settings the [sanity-io/plugins](https://github.com/sanity-io/plugins) monorepo uses: * type-aware rules and TypeScript type checking enabled (via `oxlint-tsgolint`), warnings denied, * the React, React Compiler, import, promise, a11y and unicorn rule sets turned on, and the * `@sanity/plugin-kit/oxlint-plugin` rules (CSS modules are imported with `import * as styles` or * named imports, which Lightning CSS can tree-shake) loaded as a JS plugin. * * Re-export it from an `oxlint.config.ts` next to the `package.json` that runs oxlint (the * repository root in a monorepo, otherwise the plugin directory): * * ```ts * export {default} from '@sanity/plugin-kit/oxlint' * ``` * * To customize, extend it and add your own options ([`ignorePatterns` do not propagate through * `extends`](https://oxc.rs/docs/guide/usage/linter/config.html#extend-shared-configs), so spread * them explicitly when adding your own): * * ```ts * import sanityPluginKitOxlint from '@sanity/plugin-kit/oxlint' * import {defineConfig} from 'oxlint' * * export default defineConfig({ * extends: [sanityPluginKitOxlint], * ignorePatterns: [...(sanityPluginKitOxlint.ignorePatterns ?? []), 'examples/**'], * }) * ``` * * Note: TypeScript config files require the Node-based `oxlint` package and Node `>=22.18`. * * @public */ declare const config: OxlintConfig; export { config as default }; //# sourceMappingURL=oxlint.d.ts.map