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:
Michael Krotscheck 2015-08-27 15:51:28 -07:00
parent 2c5d458d93
commit cf3e5457a3
1 changed files with 1 additions and 1 deletions

View File

@ -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