From cf3e5457a3d621246ba7feb2cf8e9716182cb21d Mon Sep 17 00:00:00 2001 From: Michael Krotscheck Date: Thu, 27 Aug 2015 15:51:28 -0700 Subject: [PATCH] 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 --- .eslintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 568ee54..0b5b417 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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