prettier/README.md
2023-11-11 12:21:57 +01:00

641 B

Prettier Config

Installation

pnpm add -D @nicco.io/prettier
// .prettierrc.js

import config from '@nicco.io/prettier'

export default {
  ...config,
}

Included

Recipes

Svelte

// .prettierrc.js
import preset from '@nicco.io/prettier'

export default {
  ...preset,
  overrides: [{ files: '*.svelte', options: { parser: 'svelte' } }],
  plugins: [...preset.plugins, 'prettier-plugin-svelte'],
}