eslint-plugin-import-sorter
v0.4.0
Published
Auto sort the import declarations
Downloads
8
Maintainers
Readme
eslint-plugin-import-sorter
Auto fix the imports beginning in files.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-import-sorter
:
$ npm install eslint-plugin-import-sorter --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-import-sorter
globally.
Usage
Add import-sorter
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"import-sorter"
]
}