コンテンツにスキップ

Angular テンプレートのリンター

djLint で Angular テンプレートをリントできます。ルールがテンプレートに合うよう、angular プロファイルを設定してください。

Angular とは?

ターミナルウィンドウ
djlint /path/to/templates --profile=angular

プロジェクトの pyproject.toml、djlint.toml / .djlint.toml、または .djlintrc ファイルで djLint を設定します。

pyproject.toml
[tool.djlint]
profile = "angular"
djlint.toml / .djlint.toml
profile = "angular"
.djlintrc
{ "profile": "angular" }