This extension integrates salt-lint into VScode
- Ensure salt-lint is installed (
v0.1.0or newer). - Run
Install Extensioncommand from Command Palette. - Search and choose
salt-lint.
There are various options that can be configured by making changes to your user or workspace preferences.
Default options are:
{
"salt-lint.enable": true,
"salt-lint.run": "onType",
"salt-lint.executablePath": "salt-lint"
}By default the linter will lint as you type. Alternatively, set salt-lint.run to onSave if you want to lint only when the file is saved (works best if auto-save is on).
{
"salt-lint.run": "onType" // also: "onSave"
}This extension is based on timonwong's ShellCheck Linter.