Automatically activates/deactivates the correct linters in Visual Studio Code for your current Javascript workspace depending on which configuration files can be found.
If no configuration can be found, user defined default linters will be used.
Currently supported linters:
- ESLint
- JSHint
- JSCS
- Standard
- TSLint
All linter extensions you want to use have to be installed in Visual Studio Code.
You can find these extensions here:
- ESLint
- JSHint
- JSCS
- Standard: JavaScript Standard Style or JS "Standard" Linter
- TSLint
If you want to set one or more default linters (for the case that no configuration can be found), you can add a setting to your configuration:
jsAutolint.defaultLinters
: Set to an Array containing all linters you want to activate if no known linter configuration can be found (e.g.["jshint", "jscs"]
).
Possible Values:eslint
jscs
jshint
standard
tslint
The default linters will be set if you either open a Javascript file while a folder is opened (if you just open single files the linters won't get set automatically) or if you run the command Automatically set correct Javascript linters
from the command palette.
jsAutolint.enable
: If set tofalse
the extension won't automatically set the linters. This is useful in certain project settings if you want to handle the configuration yourself. The command to automatically set linters is still available if you want to run it manually.
jsAutolint.showStatus
: If set tofalse
current active linters won't be displayed in the status bar.