0.1.0 • Published 2 years ago

eslint-plugin-consistently-named-imports v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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-importsEnforce specified modules to be named consistently when loaded by import