aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/import/default.json25
2 files changed, 26 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index c85dd63..e381ebe 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -331,7 +331,7 @@
- [ ] "no-unused-modules"
- [ ] "no-useless-path-segments"
- [X] "no-webpack-loader-syntax"
-- [ ] "order"
+- [X] "order"
- [ ] "prefer-default-export"
- [ ] "unambiguous"
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"
+ }
]
}