ESLint Plugin TSLint
ESLint plugin wraps a TSLint configuration and lints the whole source using TSLint.
INSTALL
npm i -D @typescript-eslint/eslint-plugin-tslint
USAGE
Configure in your eslint config file:
"plugins": [
"tslint"
],
"rules": {
"tslint/config": ["warn", {
lintFile: '/* path to tslint.json of your project */',
rules: { /* tslint rules (will be used if `lintFile` is not specified) */ },
rulesDirectory: [ /* array of paths to directories with rules, e.g. 'node_modules/tslint/lib/rules' (will be used if `lintFile` is not specified) */ ]
}],
}
RULES
Plugin contains only single rule tslint/config
.
EXAMPLES
TSLint Plugins