mirror of
https://github.com/cupcakearmy/prettier.git
synced 2024-12-21 15:46:28 +00:00
Personal prettier config
b64a2e1829
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6. - [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md) - [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6) --- updated-dependencies: - dependency-name: cross-spawn dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.gitignore | ||
index.js | ||
package.json | ||
pnpm-lock.yaml | ||
README.md |
Prettier Config
Installation
pnpm add -D @nicco.io/prettier
// .prettierrc.js
import config from '@nicco.io/prettier'
export default {
...config,
}
Included
- Sort imports
- Sort package.json
- Some custom preference settings
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'],
}