1.0.7 • Published 5 years ago
eslint-plugin-sort-import v1.0.7
eslint-plugin-sort-import
sort-import eslint
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-sort-import:
$ npm install eslint-plugin-sort-import --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-sort-import globally.
Usage
Add sort-import to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["sort-import"]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"sort-import/order-import": [
"error",
{
"ignoreCase": true,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["react", "single", "multiple", "all", "none"]
}
]
}
}Supported Rules
- Fill in provided rules here
1.0.7
5 years ago