svelte recipe

This commit is contained in:
Nicco 2023-11-11 12:21:57 +01:00 committed by GitHub
parent 4a838dbc00
commit dd7d65ab6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,21 @@ export default {
## Included
- Sort imports
- Sort package.json
- [Sort imports](https://github.com/IanVS/prettier-plugin-sort-imports)
- [Sort package.json](https://github.com/matzkoh/prettier-plugin-packagejson)
- Some custom preference settings
## Recipes
### Svelte
```js
// .prettierrc.js
import preset from '@nicco.io/prettier'
export default {
...preset,
overrides: [{ files: '*.svelte', options: { parser: 'svelte' } }],
plugins: [...preset.plugins, 'prettier-plugin-svelte'],
}
```