Package Exports
- @typescript-eslint/eslint-plugin-tslint
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@typescript-eslint/eslint-plugin-tslint) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ESLint Plugin TSLint
ESLint plugin wraps a TSLint configuration and lints the whole source using TSLint.
Installation
yarn add -D @typescript-eslint/eslint-plugin-tslintUsage
Configure in your ESLint config file:
{
"plugins": [
"@typescript-eslint/tslint"
],
"parserOptions": {
"project": "tsconfig.json",
},
"rules": {
"@typescript-eslint/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)
]
}],
}
}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
- https://github.com/Glavin001/tslint-clean-code
- https://github.com/Microsoft/tslint-microsoft-contrib
- https://github.com/SonarSource/SonarTS
- https://github.com/ajafff/tslint-consistent-codestyle