eslint-plugin-esmodule-imports
v0.0.0-pre
Published
Style rules (with autofixers) for ES module imports
Downloads
2
Maintainers
Readme
eslint-plugin-esmodule-imports
Style rules (with autofixers) for ES module imports
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-esmodule-imports
:
$ npm install eslint-plugin-esmodule-imports --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-esmodule-imports
globally.
Usage
Add esmodule-imports
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"esmodule-imports"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"esmodule-imports/rule-name": 2
}
}
Supported Rules
- TODO: Fill in various rules here