aboutsummaryrefslogtreecommitdiff
path: root/src/rules
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-03-26 20:32:18 +0300
committerValentin Popov <info@valentineus.link>2020-03-26 20:32:18 +0300
commit4925f485eafcd63b4a60204911a16d405069b1b3 (patch)
treec588438b4d43d2d0605545b5e7bb7e0a1d583dcf /src/rules
parent46d05009cc38f7c1c97f5bb42d3c018cb606b681 (diff)
downloadeslint-config-4925f485eafcd63b4a60204911a16d405069b1b3.tar.xz
eslint-config-4925f485eafcd63b4a60204911a16d405069b1b3.zip
feat(import): order
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/rules')
-rw-r--r--src/rules/import/default.json25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/rules/import/default.json b/src/rules/import/default.json
index 77ec282..291e45f 100644
--- a/src/rules/import/default.json
+++ b/src/rules/import/default.json
@@ -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"
+ }
]
}