Enable "no-case-declarations"
This rule disallows lexical declarations in case statements. http://eslint.org/docs/rules/no-case-declarations Change-Id: Iaf209d0f5cd57da34f1ce5285badeb4ced6f9754
This commit is contained in:
parent
c1f64a8684
commit
ab48e08d61
|
@ -231,7 +231,7 @@ rules:
|
|||
|
||||
# disallow lexical declarations in case clauses
|
||||
# http://eslint.org/docs/rules/no-case-declarations
|
||||
no-case-declarations: 0
|
||||
no-case-declarations: 2
|
||||
|
||||
# Disallow division operators explicitly at beginning of regular expression
|
||||
# http://eslint.org/docs/rules/no-div-regex
|
||||
|
|
Loading…
Reference in New Issue