From 8ce6c52655256648d26f0c5cd038f9cc98f5c3ee Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 18:54:09 +0400 Subject: feat(import): Rule "newline-after-import" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/import.json | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 97e1495..9cf6e62 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -293,7 +293,7 @@ - [ ] "max-dependencies" - [ ] "named" - [ ] "namespace" -- [ ] "newline-after-import" +- [X] "newline-after-import" - [ ] "no-absolute-path" - [ ] "no-amd" - [ ] "no-anonymous-default-export" diff --git a/src/rules/import.json b/src/rules/import.json index 6ff497d..77ec282 100644 --- a/src/rules/import.json +++ b/src/rules/import.json @@ -5,6 +5,12 @@ "import/first": [ "error" ], + "import/newline-after-import": [ + "error", + { + "count": 1 + } + ], "import/no-webpack-loader-syntax": [ "error" ] -- cgit v1.2.3