eslint-plugin-import-grouping-rule
v0.0.14
Published
Group imports from the same unit together and separate groups by a blank line
Maintainers
Readme
eslint-plugin-import-grouping-rule
Group imports from the same unit together and separate groups by a blank line
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-import-grouping-rule:
npm install eslint-plugin-import-grouping-rule --save-devUsage
In your configuration file, import the plugin eslint-plugin-import-grouping-rule and add plugin-grouping-rule to the plugins key:
import plugin-grouping-rule from "eslint-plugin-import-grouping-rule";
export default [
{
plugins: {
plugin-grouping-rule
}
}
];Then configure the rules you want to use under the rules key.
import plugin-grouping-rule from "eslint-plugin-import-grouping-rule";
export default [
{
plugins: {
plugin-grouping-rule
},
rules: {
"plugin-grouping-rule/import-grouping": "warn"
}
}
];Configurations
TODO: Run eslint-doc-generator to generate the configs list (or delete this section if no configs are offered).
Rules
TODO: Run eslint-doc-generator to generate the rules list.
