@sanity/plugin-kit
7.0.28.0.0
dist/oxfmt.d.ts+
dist/oxfmt.d.tsNew file+29
Index: package/dist/oxfmt.d.ts
===================================================================
--- package/dist/oxfmt.d.ts
+++ package/dist/oxfmt.d.ts
@@ -0,0 +1,29 @@
+import { OxfmtConfig } from "oxfmt";
+/**
+ * Shared [Oxfmt](https://oxc.rs/docs/guide/usage/formatter.html) preset for Sanity plugins - the
+ * same settings the [sanity-io/plugins](https://github.com/sanity-io/plugins) monorepo uses.
+ *
+ * Re-export it from an `oxfmt.config.ts` next to the `package.json` that runs oxfmt (the
+ * repository root in a monorepo, otherwise the plugin directory):
+ *
+ * ```ts
+ * export {default} from '@sanity/plugin-kit/oxfmt'
+ * ```
+ *
+ * Oxfmt has no `extends` mechanism; to customize, spread the preset and override options:
+ *
+ * ```ts
+ * import pluginKitOxfmt from '@sanity/plugin-kit/oxfmt'
+ * import {defineConfig} from 'oxfmt'
+ *
+ * export default defineConfig({
+ * ...pluginKitOxfmt,
+ * ignorePatterns: [...(pluginKitOxfmt.ignorePatterns ?? []), 'CHANGELOG.md'],
+ * })
+ * ```
+ *
+ * @public
+ */
+declare const config: OxfmtConfig;
+export { config as default };
+//# sourceMappingURL=oxfmt.d.ts.map
\ No newline at end of file