mirror of
https://github.com/cupcakearmy/prettier.git
synced 2024-12-30 12:06:27 +00:00
svelte recipe
This commit is contained in:
parent
4a838dbc00
commit
dd7d65ab6b
19
README.md
19
README.md
@ -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'],
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user