summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-26 21:01:09 +0300
committerValentin Popov <info@valentineus.link>2020-02-26 21:01:09 +0300
commit9ff6063149603501052443b738bfc76f9232fb82 (patch)
tree51173e014a017e699c066b74848e218aba69390e
parentd604a6f373397e4dae70cb38e1183cad6f90a162 (diff)
downloadeslint-config-9ff6063149603501052443b738bfc76f9232fb82.tar.xz
eslint-config-9ff6063149603501052443b738bfc76f9232fb82.zip
feat(unicorn): import-index
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/unicorn/default.json6
2 files changed, 7 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 6e21048..edca367 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -480,7 +480,7 @@
- [ ] "expiring-todo-comments"
- [ ] "explicit-length-check"
- [X] "filename-case"
-- [ ] "import-index"
+- [X] "import-index"
- [ ] "new-for-builtins"
- [ ] "no-abusive-eslint-disable"
- [ ] "no-array-instanceof"
diff --git a/src/rules/unicorn/default.json b/src/rules/unicorn/default.json
index 7a7dc1b..435ef7e 100644
--- a/src/rules/unicorn/default.json
+++ b/src/rules/unicorn/default.json
@@ -8,6 +8,12 @@
}
}
],
+ "unicorn/import-index": [
+ "error",
+ {
+ "ignoreImports": true
+ }
+ ],
"unicorn/no-console-spaces": [
"error"
],