Skip to content

moritzhertler/eslint-plugin-consistently-named-imports

Repository files navigation

eslint-plugin-consistently-named-imports

Enforce specified modules to be named consistently when loaded by import

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-consistently-named-imports:

npm install eslint-plugin-consistently-named-imports --save-dev

Usage

Add consistently-named-imports to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "consistently-named-imports"
    ]
}

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

{
    "rules": {
        "consistently-named-imports/rule-name": 2
    }
}

Rules

Name                       Description
consistently-named-imports Enforce specified modules to be named consistently when loaded by import

About

Enforce specified modules to be named consistently when loaded by import

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published