improve usage instructions in readme

This commit is contained in:
davidodenwald 2023-01-06 18:32:30 +01:00
parent ce2a1963fb
commit 7415f62e8b

View file

@ -10,8 +10,7 @@ npm install --save-dev prettier prettier-plugin-jinja-template
## 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
{
"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
```