From c3c0e564d510b3634e94d49bfcc2fdc494e251fd Mon Sep 17 00:00:00 2001 From: Mike Cantelon Date: Sat, 23 Mar 2024 16:10:15 -0700 Subject: [PATCH] Add Jinja2/HTML linting and formatting (#43) --- .djlintrc | 3 +++ .pre-commit-config.yaml | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 .djlintrc diff --git a/.djlintrc b/.djlintrc new file mode 100644 index 00000000..60c70fd7 --- /dev/null +++ b/.djlintrc @@ -0,0 +1,3 @@ +{ + "ignore": "H021,H030,H031" +} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bb3468d2..d3eea491 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,3 +26,7 @@ repos: hooks: - id: prettier types_or: [css, javascript] +- repo: https://github.com/djlint/djLint + rev: v1.34.1 + hooks: + - id: djlint