samit4me / eslint-plugin-module-resolver

Eslint plugin to be used with babel-plugin-module-resolver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-plugin-module-resolver

npm version npm downloads Build Status codecov

Warn when using relative paths to modules aliased using babel-plugin-module-resolver

Installation

You'll first need to install ESLint:

yarn add --dev eslint

Next, install eslint-plugin-module-resolver:

yarn add --dev eslint-plugin-module-resolver

Usage

Add module-resolver to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "module-resolver"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "module-resolver/use-alias": 2
    }
}

Supported Rules

License

ESLint-plugin-module-resolver is licensed under the MIT License.

About

Eslint plugin to be used with babel-plugin-module-resolver

License:MIT License


Languages

Language:JavaScript 100.0%