summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 14:25:08 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 14:25:08 +0300
commit2ffee5d7a351385e21bc73cf1780f1362f7d66bb (patch)
treee48a76738d2e931306875d79d79618931dc9542a
parent28a0661434c22f50dc8308742ab317b047deabe3 (diff)
downloadeslint-config-2ffee5d7a351385e21bc73cf1780f1362f7d66bb.tar.xz
eslint-config-2ffee5d7a351385e21bc73cf1780f1362f7d66bb.zip
feat(eslint): Rule "sort-imports"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/eslint.json14
2 files changed, 15 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 4a13009..62aafbe 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -257,7 +257,7 @@
- [ ] "semi"
- [ ] "semi-spacing"
- [ ] "semi-style"
-- [ ] "sort-imports"
+- [X] "sort-imports"
- [X] "sort-keys"
- [ ] "sort-vars"
- [ ] "space-before-blocks"
diff --git a/src/rules/eslint.json b/src/rules/eslint.json
index b15bed4..d512ede 100644
--- a/src/rules/eslint.json
+++ b/src/rules/eslint.json
@@ -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",