prettier-plugin-jinja-template but with patches to work with Askama
0e85c48fad
The check was removed because the jinja language can be extended with new keywords. |
||
---|---|---|
.github/workflows | ||
src | ||
test | ||
.gitignore | ||
.prettierignore | ||
.prettierrc | ||
babel.config.js | ||
jest.config.js | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json |
prettier-plugin-jinja-template
Formatter plugin for jinja2 template files.
Install
npm install --save-dev prettier prettier-plugin-jinja-template
Use
To format basic .html files, you'll have to override the used parser inside your .prettierrc
:
{
"overrides": [
{
"files": ["*.html"],
"options": {
"parser": "jinja-template"
}
}
]
}
Run it on all html files in your project:
npx prettier --write **/*.html