Angular 範本 Linter

djLint 可以 lint Angular 範本。設定 angular profile,讓規則符合這類範本。

什麼是 Angular?

使用命令列

djlint /path/to/templates --profile=angular

或者,使用設定檔

在專案的 pyproject.toml、djlint.toml / .djlint.toml 或 .djlintrc 檔案中設定 djLint。

[tool.djlint]
profile = "angular"
profile = "angular"
{ "profile": "angular" }