summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 10:59:25 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 10:59:25 +0300
commit059976ca5a189f20c42875346021246b5789907f (patch)
treedb3313f981d4b5d8aa7a23a111b7146646b0c5af
parent7928a93ea7c21a99873c0bab9c73e86865227321 (diff)
downloadeslint-config-059976ca5a189f20c42875346021246b5789907f.tar.xz
eslint-config-059976ca5a189f20c42875346021246b5789907f.zip
feat(eslint): Rule "callback-return"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/default.json3
2 files changed, 4 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index b747c51..9ffc03a 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -13,7 +13,7 @@
- [ ] "block-scoped-var"
- [ ] "block-spacing"
- [X] "brace-style"
-- [ ] "callback-return"
+- [X] "callback-return"
- [X] "camelcase"
- [ ] "capitalized-comments"
- [X] "class-methods-use-this"
diff --git a/src/rules/default.json b/src/rules/default.json
index 7bc82bd..98937aa 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -23,6 +23,9 @@
"allowSingleLine": false
}
],
+ "callback-return": [
+ "warn"
+ ],
"camelcase": [
"error",
{