Warn when using relative paths to modules aliased
npm install eslint-plugin-module-resolver



Warn when using relative paths to modules aliased using babel-plugin-module-resolver
You'll first need to install ESLint:
``bash`
yarn add --dev eslint
Next, install eslint-plugin-module-resolver:
`bash`
yarn add --dev eslint-plugin-module-resolver
Add module-resolver to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
`json`
{
"plugins": ["module-resolver"]
}
Then configure the rules you want to use under the rules section of .eslintrc.
`json``
{
"rules": {
"module-resolver/use-alias": 2
}
}
- module-resolver/use-alias - Warn when aliased paths are using relative paths
ESLint-plugin-module-resolver is licensed under the MIT License.