Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 7bf3c86

Browse files
authored
disable rule: consistent-return (#39)
Reason: we often use return to avoid an else branch.
1 parent e3afb09 commit 7bf3c86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/best-practices.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = {
2121
// specify the maximum cyclomatic complexity allowed in a program
2222
complexity: [ERROR, 11],
2323
// require return statements to either always or never specify values
24-
'consistent-return': ERROR,
24+
'consistent-return': IGNORE,
2525
// specify curly brace conventions for all control statements
2626
curly: [ERROR, 'multi-line'],
2727
// require default case in switch statements

0 commit comments

Comments
 (0)