mirror of
https://github.com/cupcakearmy/prettier.git
synced 2024-12-21 23:56:31 +00:00
Personal prettier config
75ed194b6a
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8. - [Release notes](https://github.com/micromatch/micromatch/releases) - [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md) - [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8) --- updated-dependencies: - dependency-name: micromatch 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'],
}