ESLint Plugin TSLint
ESLint plugin wraps a TSLint configuration and lints the whole source using TSLint.
Installation
npm i @typescript-eslint/eslint-plugin-tslint --save-dev
Usage
Configure in your eslint config file:
{
"plugins": [
"@typescript-eslint/tslint"
],
"parserOptions": {
"project": "tsconfig.json",
},
"rules": {
"@typescript-eslint/tslint/config": ["warn", {
"lintFile": "",
"rules": {
},
"rulesDirectory": [
]
}],
}
}
Note: The ability to automatically fix problems with --fix
is unavailable for tslint rules loaded with this plugin.
Rules
Plugin contains only single rule @typescript-eslint/tslint/config
.
Examples
TSLint Plugins