Automated tool to convert TSLint configuration to the closest reasonable ESLint equivalent, facilitating migration from the deprecated TSLint to ESLint. Current stable version is 2.16.0, released with minor fixes and dependency updates. It reads existing linter, TypeScript, and package configs, generates an .eslintrc.js, and supports CLI flags for customization. Key differentiators: community-maintained under typescript-eslint, handles rule mapping with fallback to eslint-plugin-tslint for unmatched rules, and includes inline comment conversion.
npm install tslint-to-eslint-configVerified import paths — ran on the pinned version, not inferred.
Reads TSLint config and generates ESLint config object. Requires Node >=14.0.0.
Use import syntax and ensure your project is ESM or use dynamic import.
Upgrade Node to 14 or later.
Use ESLint directly after migration.
Manually replace wrapped rules with native ESLint rules when possible.
Check generated config for Prettier settings and adjust manually if needed.
Install package (npm install --save-dev tslint-to-eslint-config) and use import syntax.
Upgrade Node to >=14 and use import syntax or run with --experimental-modules.
Specify correct path with --tslint flag or ensure tslint.json exists in working directory.