Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ trunk check enable {linter}
[dart]: https://dart.dev/tools/sdk
[deno]: https://deno.land/manual
[detekt]: https://github.com/detekt/detekt#readme
[djlint]: https://github.com/Riverside-Healthcare/djlint#readme
[djlint]: https://github.com/djlint/djLint#readme
[dotenv-linter]: https://github.com/dotenv-linter/dotenv-linter#readme
[dotnet-format]: https://github.com/dotnet/format#readme
[dustilock]: https://github.com/Checkmarx/dustilock
Expand Down
14 changes: 9 additions & 5 deletions linters/djlint/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# DJLint
# djLint

- [README](https://github.com/Riverside-Healthcare/djlint#readme)
- [Rules](https://www.djlint.com/docs/linter/)
- [README](https://github.com/djlint/djLint#readme)
- [Rules](https://djlint.com/docs/linter/)

DJLint supports HTML templates for:
djLint supports HTML templates for:

- Django
- Jinja
Expand All @@ -13,11 +13,15 @@ DJLint supports HTML templates for:
- Mustache
- GoLang
- Angular
- Liquid
- Tera
- Askama
- Mako

For use of anything other than Django, please visit the readme and set the appropriate profile. You
can set the appropriate profile in your djlint run command or in the linter config.

[Example for Django](https://www.djlint.com/docs/languages/django/): Run command:
[Example for Django](https://djlint.com/docs/languages/django/): Run command:
`djlint /path/to/templates --profile=django` or `./pyproject.toml`

```toml
Expand Down
7 changes: 2 additions & 5 deletions linters/djlint/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,11 @@ lint:
cache_results: true
formatter: true
in_place: true
direct_configs: [.djlintrc]
direct_configs: [.djlintrc, djlint.toml, .djlint.toml]
suggest_if: config_present
affects_cache:
- .flake8
- pyproject.toml
- setup.cfg
- tox.ini
issue_url_format: https://www.djlint.com/docs/linter/#rules
issue_url_format: https://djlint.com/docs/linter/#rules
known_good_version: 1.36.4
version_command:
parse_regex: djlint, version ${semver}
Expand Down