0.0.1 • Published 6 years ago
eslint-plugin-grouped-imports v0.0.1
eslint-plugin-grouped-imports
Plugin to group and sort ES6 imports in any order
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-grouped-imports:
$ npm install eslint-plugin-grouped-imports --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-custom-impors-sort globally.
Usage
Add grouped-imports to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"grouped-imports"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"grouped-imports/order": 2
}
}Supported Rules
grouped-imports/order- allows you to group imports and sort groups
0.0.1
6 years ago