Deprecated in favor of https://github.com/JamesHenry/eslint-plugin-tslint
ESLint plugin wraps a TSLint configuration and lints the whole source using TSLint.
Fork of eslint-plugin-tslint, the main difference are:
- Support rules which requires type information
- Support tsx
npm i -D eslint-plugin-tslint2
Configure in your eslint config file:
"plugins": [
"tslint2"
],
"rules": {
"tslint2/config": ["warn", {
rules: { /* tslint rules */ },
rulesDirectory: [ /* array of paths to directories with rules, e.g. 'node_modules/tslint/lib/rules' */ ],
configFile: '/* path to tsconfig.json of your project */',
compilerOptions: { /* ability to override TypeScript compilers options defined in tsconfig.json */ }
}],
}
Plugin contains only single rule tslint2/config
.