diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-14 10:59:25 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-14 10:59:25 +0300 |
commit | 059976ca5a189f20c42875346021246b5789907f (patch) | |
tree | db3313f981d4b5d8aa7a23a111b7146646b0c5af | |
parent | 7928a93ea7c21a99873c0bab9c73e86865227321 (diff) | |
download | eslint-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.md | 2 | ||||
-rw-r--r-- | src/rules/default.json | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -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", { |