Enable block-scoped-var
This rule enforces C-style block scoped variables, which javascript does not do natively. http://eslint.org/docs/rules/block-scoped-var Change-Id: I9969a9c32e90a65fcc998e50e0966402eacfa8bd
This commit is contained in:
parent
2c5d458d93
commit
cf3e5457a3
|
@ -186,7 +186,7 @@ rules:
|
|||
|
||||
# Treat var statements as if they were block scoped
|
||||
# http://eslint.org/docs/rules/block-scoped-var
|
||||
block-scoped-var: 0 # TODO(krotscheck): Discuss & Activate
|
||||
block-scoped-var: 2
|
||||
|
||||
# Specify the maximum cyclomatic complexity allowed in a program
|
||||
# http://eslint.org/docs/rules/complexity
|
||||
|
|
Loading…
Reference in New Issue