Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint django templates #162

Closed
wants to merge 3 commits into from
Closed

Lint django templates #162

wants to merge 3 commits into from

Conversation

MatMoore
Copy link
Contributor

@MatMoore MatMoore commented Mar 12, 2024

Introduce https://www.djlint.com/ for formatting and linting templates, as suggested by @tom-webber

@MatMoore MatMoore marked this pull request as ready for review March 12, 2024 10:42
@MatMoore
Copy link
Contributor Author

I'm a bit wary of relying on this linter actually, as it's quite aggressive in reformatting templated blocks, and can at times break the indenting, report false positives, and introduce unwanted whitespace

I'd rather not adopt this before the following issues are fixed:
djlint/djLint#483
djlint/djLint#636

For now I'm going to close this, and try https://github.com/rtts/djhtml instead. This doesn't do the linting, but does give us the benefit of consistently formatted templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant