This linter plugin for SublimeLinter provides an interface to djlint for linting Django Templates.
SublimeLinter must be installed in order to use this plugin.
Please use Package Control to install the linter plugin.
Before installing this plugin, you must ensure that djlint is installed on your system.
pip install djlintIn order for djlint to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. The docs cover troubleshooting PATH configuration.
Warnings can be ignored from the sublimelinter settings:
// SublimeLinter Settings - User
{
"linters": {
"djlint": {
"ignore": "W013",
"python": "/path/to/python/3.7.2+/where/you/installed/djlint"
}
}
}
- SublimeLinter settings: http://sublimelinter.readthedocs.org/en/latest/settings.html
- Linter settings: http://sublimelinter.readthedocs.org/en/latest/linter_settings.html