prettier-plugin-jinja-template but with patches to work with Askama
Find a file
2022-11-18 20:05:06 +01:00
src initial commit 2022-11-18 20:05:06 +01:00
test initial commit 2022-11-18 20:05:06 +01:00
.gitignore initial commit 2022-11-18 20:05:06 +01:00
.prettierignore initial commit 2022-11-18 20:05:06 +01:00
.prettierrc initial commit 2022-11-18 20:05:06 +01:00
babel.config.js initial commit 2022-11-18 20:05:06 +01:00
jest.config.js initial commit 2022-11-18 20:05:06 +01:00
package-lock.json initial commit 2022-11-18 20:05:06 +01:00
package.json initial commit 2022-11-18 20:05:06 +01:00
README.md initial commit 2022-11-18 20:05:06 +01:00
tsconfig.json initial commit 2022-11-18 20:05:06 +01:00

prettier-plugin-jinja-template

Formatter plugin for jinja2 template files.

Install

npm install --save-dev prettier-plugin-jinja-template

Use

To use it with basic .html files, you'll have to override the used parser inside your prettier config:

{
	"overrides": [
		{
			"files": ["*.html"],
			"options": {
				"parser": "jinja-template"
			}
		}
	]
}