@sanity/plugin-kit
7.0.28.0.0
dist/oxfmt.js+
dist/oxfmt.jsNew file+46
Index: package/dist/oxfmt.js
===================================================================
--- package/dist/oxfmt.js
+++ package/dist/oxfmt.js
@@ -0,0 +1,46 @@
+/**
+* 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
+*/
+const config = {
+ printWidth: 100,
+ semi: !1,
+ singleQuote: !0,
+ bracketSpacing: !1,
+ quoteProps: "consistent",
+ sortImports: !0,
+ sortPackageJson: { sortScripts: !0 },
+ ignorePatterns: [
+ "dist/**",
+ "pnpm-lock.yaml",
+ "turbo/**/*.hbs"
+ ],
+ overrides: [{
+ files: [".changeset/*.md"],
+ options: { singleQuote: !1 }
+ }]
+};
+export { config as default };
+
+//# sourceMappingURL=oxfmt.js.map
\ No newline at end of file