mirror of
https://github.com/cupcakearmy/prettier.git
synced 2024-12-21 23:56:31 +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
|
## Included
|
||||||
|
|
||||||
- Sort imports
|
- [Sort imports](https://github.com/IanVS/prettier-plugin-sort-imports)
|
||||||
- Sort package.json
|
- [Sort package.json](https://github.com/matzkoh/prettier-plugin-packagejson)
|
||||||
- Some custom preference settings
|
- 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