eslint-plugin-correct-imports

1.3.1 • Public • Published

eslint-plugin-correct-imports

Eslint rules for correct imports in javascript files

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-correct-imports:

$ npm install eslint-plugin-correct-imports --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-correct-imports globally.

Usage

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

{
  "plugins": ["correct-imports"]
}

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

{
  "rules": {
    "correct-imports/rule-name": "error"
  }
}

You can also use the recommended config instead

{
  "extends": ["plugin:correct-imports/recommended"]
}

Supported Rules

Package Sidebar

Install

npm i eslint-plugin-correct-imports

Weekly Downloads

9

Version

1.3.1

License

MIT

Unpacked Size

23 kB

Total Files

19

Last publish

Collaborators

  • tedj
  • amirsaeed671