aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 01:27:28 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 01:29:57 +0300
commit0fdc1f6b956dbc273325842a4af60a5425826f5f (patch)
tree2ef5e77c218b3f781bb6334f5deae9323b3168dc
parentd1085d5b1a84f7534b3df524a7dc43e4a2a61c9b (diff)
downloadeslint-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.md2
-rw-r--r--src/rules/default.json6
2 files changed, 7 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 2e278b3..94f0774 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -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",
{