eslint-plugin-grouped-imports

0.0.1 • Public • Published

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-dev

Next, install eslint-plugin-grouped-imports:

$ npm install eslint-plugin-grouped-imports --save-dev

Note: 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

Package Sidebar

Install

npm i eslint-plugin-grouped-imports

Weekly Downloads

108

Version

0.0.1

License

MIT

Unpacked Size

35 kB

Total Files

9

Last publish

Collaborators

  • gohabereg