feat(import): order

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-03-26 21:32:18 +04:00
parent 46d05009cc
commit 4925f485ea
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 26 additions and 1 deletions

View File

@ -331,7 +331,7 @@
- [ ] "no-unused-modules"
- [ ] "no-useless-path-segments"
- [X] "no-webpack-loader-syntax"
- [ ] "order"
- [X] "order"
- [ ] "prefer-default-export"
- [ ] "unambiguous"

View File

@ -13,5 +13,30 @@
],
"import/no-webpack-loader-syntax": [
"error"
],
"import/order": [
"error",
{
"alphabetize": {
"caseInsensitive": false,
"order": "asc"
},
"groups": [
[
"builtin",
"external"
],
[
"internal",
"parent",
"sibling"
],
[
"index"
],
"unknown"
],
"newlines-between": "always"
}
]
}