diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-14 01:27:28 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-14 01:29:57 +0300 |
commit | 0fdc1f6b956dbc273325842a4af60a5425826f5f (patch) | |
tree | 2ef5e77c218b3f781bb6334f5deae9323b3168dc | |
parent | d1085d5b1a84f7534b3df524a7dc43e4a2a61c9b (diff) | |
download | eslint-config-0fdc1f6b956dbc273325842a4af60a5425826f5f.tar.xz eslint-config-0fdc1f6b956dbc273325842a4af60a5425826f5f.zip |
feat(eslint): Rule "no-duplicate-imports"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/default.json | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -104,7 +104,7 @@ - [ ] "no-dupe-else-if" - [ ] "no-dupe-keys" - [ ] "no-duplicate-case" -- [ ] "no-duplicate-imports" +- [X] "no-duplicate-imports" - [X] "no-else-return" - [X] "no-empty" - [ ] "no-empty-character-class" diff --git a/src/rules/default.json b/src/rules/default.json index 7c2e48c..91af2ff 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -218,6 +218,12 @@ "no-debugger": [ "warn" ], + "no-duplicate-imports": [ + "error", + { + "includeExports": true + } + ], "no-else-return": [ "error", { |