Skip to content

filipetedim/eslint-plugin-correct-imports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages