UNPKG

@bfra.me/prettier-config

Version:
71 lines (70 loc) 1.98 kB
import {defineConfig} from './define-config.js' const defaultConfig = defineConfig({ arrowParens: 'avoid', bracketSpacing: false, endOfLine: 'auto', printWidth: 100, semi: false, singleQuote: true, /** Provide a list of patterns to override prettier configuration. */ overrides: [ // Adapted from https://github.com/sxzz/prettier-config/blob/1e5cc3021e5816aceebe0b90af1d530239442ecf/index.js. // Require a pragma for paths typically not under version control or written by build tools. { files: [ '**/node_modules/**', '**/dist/**', '**/coverage/**', '**/out/**', '**/temp/**', '**/.idea/**', '**/.next/**', '**/.nuxt/**', '**/.output/**', '**/.tsup/**', '**/.vercel/**', '**/.vitepress/cache/**', '**/.vite-inspect/**', '**/__snapshots__/**', '**/test/fixtures/**', '**/auto-import?(s).d.ts', '**/.changeset/*.md', '**/CHANGELOG*.md', '**/changelog*.md', '**/components.d.ts', '**/devcontainer-lock.json', '**/LICENSE*', '**/license*', '**/*.min.*', '**/package-lock.json', '**/pnpm-lock.yaml', '**/typed-router.d.ts', '**/yarn.lock', ], options: { requirePragma: true, }, }, // VS Code configuration files: // Use 4 spaces for indentation to match the default VS Code settings. { files: ['.vscode/*.json', '.devcontainer/**/devcontainer*.json'], options: { tabWidth: 4, }, }, // Markdown: // - Disable single quotes for Markdown files. // - Disable `proseWrap` to avoid wrapping prose. { files: ['*.md'], options: { proseWrap: 'never', singleQuote: false, }, }, ], }) var default_default = defaultConfig export {default_default as default, defaultConfig} //# sourceMappingURL=default.js.map