tslint-eslint-rules provides ESLint rules as TSLint plugins, allowing developers to use familiar ESLint linting rules within the TSLint ecosystem for TypeScript projects. The current stable version is 5.4.0, released with peer dependencies on tslint ^5.0.0 and TypeScript ^2.2.0 or ^3.0.0. The project is actively maintained and includes over 50 rules covering possible errors, best practices, and stylistic concerns. It differentiates from alternatives by bridging the gap between ESLint and TSLint, offering a familiar rule set for teams migrating or combining tools.
npm install tslint-eslint-rulesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to extend tslint-eslint-rules in tslint.json and enable two rules with boolean true.
Update TypeScript to ^2.2.0 and tslint to ^5.0.0.
Migrate to ESLint with @typescript-eslint/parser and @typescript-eslint/eslint-plugin.
Use camelCase rule names, e.g., 'noConstantCondition' but note the package uses native ESLint names? Actually, the rules are named with kebab-case in the JSON configuration. Check docs.
Ensure tslint.json extends 'tslint-eslint-rules' and the rule name is spelled correctly.
Use ES module imports: import * as rules from 'tslint-eslint-rules';