0.1.0 • Published 2 years ago
eslint-plugin-consistently-named-imports v0.1.0
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-devNext, install eslint-plugin-consistently-named-imports:
npm install eslint-plugin-consistently-named-imports --save-devUsage
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 |
0.1.0
2 years ago