feat(eslint): Rule "sort-imports"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-13 15:25:08 +04:00
parent 28a0661434
commit 2ffee5d7a3
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 15 additions and 1 deletions

View File

@ -257,7 +257,7 @@
- [ ] "semi"
- [ ] "semi-spacing"
- [ ] "semi-style"
- [ ] "sort-imports"
- [X] "sort-imports"
- [X] "sort-keys"
- [ ] "sort-vars"
- [ ] "space-before-blocks"

View File

@ -91,6 +91,20 @@
"require-jsdoc": [
"off"
],
"sort-imports": [
"error",
{
"ignoreCase": false,
"ignoreDeclarationSort": false,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": [
"all",
"multiple",
"single",
"none"
]
}
],
"sort-keys": [
"warn",
"asc",