1.3.1 • Published 2 years ago

eslint-plugin-correct-imports v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago