improve usage instructions in readme
This commit is contained in:
parent
ce2a1963fb
commit
7415f62e8b
1 changed files with 6 additions and 2 deletions
|
@ -10,8 +10,7 @@ npm install --save-dev prettier prettier-plugin-jinja-template
|
||||||
|
|
||||||
## Use
|
## Use
|
||||||
|
|
||||||
To use it with basic .html files, you'll have to override the used parser inside your prettier config:
|
To format basic .html files, you'll have to override the used parser inside your `.prettierrc`:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"overrides": [
|
"overrides": [
|
||||||
|
@ -24,3 +23,8 @@ To use it with basic .html files, you'll have to override the used parser inside
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Run it on all html files in your project:
|
||||||
|
```bash
|
||||||
|
npx prettier --write **/*.html
|
||||||
|
```
|
Loading…
Reference in a new issue