diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 17:54:09 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 17:54:09 +0300 |
commit | 8ce6c52655256648d26f0c5cd038f9cc98f5c3ee (patch) | |
tree | 0b19ad1fcd94f43d7705d503f15da257f687b458 | |
parent | 3f4d2c8b7d180dfeddc172c860dfb6bab072c26f (diff) | |
download | eslint-config-8ce6c52655256648d26f0c5cd038f9cc98f5c3ee.tar.xz eslint-config-8ce6c52655256648d26f0c5cd038f9cc98f5c3ee.zip |
feat(import): Rule "newline-after-import"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/import.json | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -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" ] |