@sanity/plugin-kit

7.0.28.0.0
dist/oxfmt.js.map
+dist/oxfmt.js.mapNew file
+1
Index: package/dist/oxfmt.js.map
===================================================================
--- package/dist/oxfmt.js.map
+++ package/dist/oxfmt.js.map
@@ -0,0 +1,1 @@
+{"version":3,"file":"oxfmt.js","names":[],"sources":["../src/oxfmt.ts"],"sourcesContent":["import type {OxfmtConfig} from 'oxfmt'\n\n/**\n * Shared [Oxfmt](https://oxc.rs/docs/guide/usage/formatter.html) preset for Sanity plugins - the\n * same settings the [sanity-io/plugins](https://github.com/sanity-io/plugins) monorepo uses.\n *\n * Re-export it from an `oxfmt.config.ts` next to the `package.json` that runs oxfmt (the\n * repository root in a monorepo, otherwise the plugin directory):\n *\n * ```ts\n * export {default} from '@sanity/plugin-kit/oxfmt'\n * ```\n *\n * Oxfmt has no `extends` mechanism; to customize, spread the preset and override options:\n *\n * ```ts\n * import pluginKitOxfmt from '@sanity/plugin-kit/oxfmt'\n * import {defineConfig} from 'oxfmt'\n *\n * export default defineConfig({\n *   ...pluginKitOxfmt,\n *   ignorePatterns: [...(pluginKitOxfmt.ignorePatterns ?? []), 'CHANGELOG.md'],\n * })\n * ```\n *\n * @public\n */\nconst config: OxfmtConfig = {\n  printWidth: 100,\n  semi: false,\n  singleQuote: true,\n  bracketSpacing: false,\n  quoteProps: 'consistent',\n  sortImports: true,\n  sortPackageJson: {sortScripts: true},\n  ignorePatterns: ['dist/**', 'pnpm-lock.yaml', 'turbo/**/*.hbs'],\n  overrides: [\n    {\n      files: ['.changeset/*.md'],\n      options: {singleQuote: false},\n    },\n  ],\n}\n\nexport default config\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,MAAM,SAAsB;CAC1B,YAAY;CACZ,MAAM;CACN,aAAa;CACb,gBAAgB;CAChB,YAAY;CACZ,aAAa;CACb,iBAAiB,EAAC,aAAa,GAAI;CACnC,gBAAgB;EAAC;EAAW;EAAkB;CAAgB;CAC9D,WAAW,CACT;EACE,OAAO,CAAC,iBAAiB;EACzB,SAAS,EAAC,aAAa,GAAK;CAC9B,CACF;AACF"}
\ No newline at end of file