aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 00:22:27 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 00:22:27 +0300
commit0db2687006c75d9665b6706572e97523b073b4f8 (patch)
tree030f1876851511f7e0c74e80fb540c4654562bdd
parent228ad3183cdbed0b9fde2a1baa589416db530225 (diff)
downloadeslint-config-0db2687006c75d9665b6706572e97523b073b4f8.tar.xz
eslint-config-0db2687006c75d9665b6706572e97523b073b4f8.zip
feat(eslint): Rule "array-callback-return"
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 e78818c..e0102ae 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -5,7 +5,7 @@
- [ ] "accessor-pairs"
- [ ] "array-bracket-newline"
- [ ] "array-bracket-spacing"
-- [ ] "array-callback-return"
+- [X] "array-callback-return"
- [ ] "array-element-newline"
- [ ] "arrow-body-style"
- [X] "arrow-parens"
diff --git a/src/rules/default.json b/src/rules/default.json
index 6df0efe..1f2f54f 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -1,4 +1,10 @@
{
+ "array-callback-return": [
+ "error",
+ {
+ "allowImplicit": false
+ }
+ ],
"arrow-parens": [
"error",
"always"