From 2ffee5d7a351385e21bc73cf1780f1362f7d66bb Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 15:25:08 +0400 Subject: feat(eslint): Rule "sort-imports" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/eslint.json | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) 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", -- cgit v1.2.3