Gathering detailed insights and metrics for tslint-to-eslint-config
Gathering detailed insights and metrics for tslint-to-eslint-config
Gathering detailed insights and metrics for tslint-to-eslint-config
Gathering detailed insights and metrics for tslint-to-eslint-config
@ken0x0a/tslint-config
An example of tslint configuration. Currently moving to eslint, but some rules are incompatible yet.
egg-tslint-to-eslint
Migrate tslint-config-egg to eslint-config-egg in ts project.
@bung87/tslint-to-eslint-config
Converts your TSLint configuration to the closest reasonable ESLint equivalent.
Converts your TSLint configuration to the closest possible ESLint equivalent. 🚀
npm install tslint-to-eslint-config
Typescript
Module System
Min. Node Version
Node Version
NPM Version
v2.14.0: ordered-imports
Updated on Feb 21, 2023
v2.13.4
Updated on Jan 05, 2023
v2.13.3: Fixed variable-name arguments
Updated on Sep 04, 2022
v2.13.2: Fixed published package
Updated on Jul 26, 2022
v2.13.1: Fixed variable-name
Updated on Jul 22, 2022
v2.13.0: Corrected changed rule severities
Updated on May 03, 2022
TypeScript (98.96%)
JavaScript (1.04%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
858 Stars
1,463 Commits
101 Forks
7 Watchers
16 Branches
63 Contributors
Updated on Jul 03, 2025
Latest Version
2.14.3
Package Id
tslint-to-eslint-config@2.14.3
Unpacked Size
515.08 kB
Size
110.74 kB
File Count
918
NPM Version
9.6.6
Node Version
20.2.0
Published on
Dec 08, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
10
Converts your TSLint configuration to the closest reasonable ESLint equivalent.
👉 Did you know TSLint is deprecated?
Hooray!
Use tslint-to-eslint-config
to expedite migrating your project onto ESLint.
Consider taking a peek at the relevant documentation: 🤔
⚠ Coming from Angular? Use angular-eslint instead to coordinate around this tool and others.
1npx tslint-to-eslint-config
⚡ (wow, so simple!) ⚡
The tslint-to-eslint-config
command reads in any existing linter, TypeScript, and package configuration files, then creates an .eslintrc.js
result based on them.
For any TSLint rules with corresponding ESLint equivalents, those equivalents will be used in the new configuration. TSLint rules without ESLint equivalents will be wrapped with eslint-plugin-tslint.
Requires Node 14+ (LTS) and TSLint 5.18+
We strongly advise reading docs/FAQs.md before planning your conversion from TSLint to ESLint.
Each of these flags is optional:
comments
: TypeScript configuration or file glob path(s) to convert TSLint rule flags to ESLint within.config
: Path to print the generated ESLint configuration file to.editor
: Path to an editor configuration file to convert linter settings within.eslint
: Path to an ESLint configuration file to read settings from.package
: Path to a package.json file to read dependencies from.prettier
: Add eslint-config-prettier
to the plugins list.tslint
: Path to a TSLint configuration file to read settings from.typescript
: Path to a TypeScript configuration file to read TypeScript compiler options from.comments
1npx tslint-to-eslint-config --comments
Default: none
Indicates to convert from TSLint rule flags to ESLint inline comments.
Comments such as // tslint:disable: tslint-rule-name
will be converted to equivalents like // eslint-disable eslint-rule-name
.
If passed without arguments, respects the exclude
, files
, and include
in your TypeScript configuration.
If passed a single file path ending with .json
, that is treated as a TypeScript configuration file describing with files to convert.
1npx tslint-to-eslint-config --comments tsconfig.json
If passed any other arguments, those are treated as glob paths for file paths to convert:
1npx tslint-to-eslint-config --comments 'src/**/*.ts'
config
1npx tslint-to-eslint-config --config .eslintrc.json
Default: .eslintrc.js
Path to print the generated ESLint configuration file to.
The file extension of this path will be used to determine the format of the created file:
.js
file paths will be written module.exports = ...
JavaScripteditor
1npx tslint-to-eslint-config --editor ./path/to/.vscode/settings.json
Default: .vscode/settings.json
Path to an editor configuration file to convert settings settings within. Any VS Code style editor settings for TSLint will be converted to their ESLint equivalents.
eslint
1npx tslint-to-eslint-config --eslint ./path/to/eslintrc.js
Default: --config
's value
Path to an ESLint configuration file to read settings from.
The generated ESLint configuration file will include any settings import
ed from this file.
package
1npx tslint-to-eslint-config --package ./path/to/package.json
Default: package.json
Path to a package.json
file to read dependencies from.
This will help inform the generated ESLint configuration file's env settings.
prettier
1npx tslint-to-eslint-config --prettier
Default: false
Add eslint-config-prettier
to the list of ESLint plugins.
We highly recommend you use Prettier for code formatting.
When --prettier
isn't enabled:
eslint-config-prettier
.--prettier
.tslint
1npx tslint-to-eslint-config --tslint ./path/to/tslint.json
Default: tslint.json
Path to a TSLint configuration file to read settings from.
This file is piped into TSLint's --print-config
to generate the list of rules to enable in the generated ESLint configuration file.
typescript
1npx tslint-to-eslint-config --typescript ./path/to/tsconfig.json
Default: tsconfig.json
Path to a TypeScript configuration file to read TypeScript compiler options from. This will help inform the generated ESLint configuration file's env settings.
You can use tslint-to-eslint-config
programmatically via its exported functions.
See docs/API for details.
1import { convertLintConfig } from "tslint-to-eslint-config"; 2 3const result = await convertLintConfig();
See the Code of Conduct and general development docs. 💖
No vulnerabilities found.
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
5 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 5
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
11 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More