@sanity/plugin-kit
7.0.28.0.0
dist/oxlint.d.ts+
dist/oxlint.d.tsNew file+35
Index: package/dist/oxlint.d.ts
===================================================================
--- package/dist/oxlint.d.ts
+++ package/dist/oxlint.d.ts
@@ -0,0 +1,35 @@
+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,
+ * and the React, React Compiler, import, promise, a11y and unicorn rule sets turned on.
+ *
+ * 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
\ No newline at end of file