eslint-plugin-consistently-named-imports

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i eslint-plugin-consistently-named-imports

Weekly Downloads

0

Version

0.1.0

License

ISC

Unpacked Size

41.4 kB

Total Files

9

Last publish

Collaborators

  • moritzhertler