Tighten Lint for VSCode
A VScode linter for Tighten Lint
Installation
CTRL + SHIFT + X (View: show extensions )
- Search for tighten lint and click install
Features
- Customisable linter severities
- Customise executed linters
- Supports tlint.json configuration file
Requirements
You must install the linter executable as per the tlint install instructions.
Extension Settings
setting |
default |
description |
tighten-lint.exec |
tlint |
The tlint executable path |
tighten-lint.defaultSeverity |
error |
The default violation severity (error, warning, info, hint) |
tighten-lint.severities |
{} |
Override default severity for specific linter |
tighten-lint.only |
[] |
A list of the specific linters to run |
Example Configuration
"tighten-lint.exec": "/usr/bin/tlint",
"tighten-lint.defaultSeverity": "warning",
"tighten-lint.only": [
"AlphabeticalImports",
"NoInlineVarDocs",
"ImportFacades"
],
"tighten-lint.severities": {
"NoInlineVarDocs": "info"
},
tlintUsing a configuration file
If you wish to use a configuration file you should place the tlint.json file in the root of your project folder in the required format e.g.
The extension will then use this configuration when linting in combination with the other settings.
Known Limitations
- Linting is limited to local files and will not work on uri schemes other the
file e.g. ssh
Contributing
See the contributing guide and Code of Conduct
| |