eslint-plugin-tsconfig-paths
v1.0.0
Published
Converts relative paths to absolute ones
Downloads
9
Maintainers
Readme
eslint-plugin-tsconfig-paths
Converts relative paths to absolute ones
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-tsconfig-paths
:
npm install eslint-plugin-tsconfig-paths --save-dev
Usage
Add tsconfig-paths
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["tsconfig-paths"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"tsconfig-paths/ensure": 2
}
}
Rules
🔧 Automatically fixable by the --fix
CLI option.
| Name | 🔧 | | :----------------------------- | :- | | ensure | 🔧 |