From ab48e08d6136487ae919de32708eceb36d96b5e3 Mon Sep 17 00:00:00 2001 From: Michael Krotscheck Date: Mon, 23 Nov 2015 08:11:29 -0800 Subject: [PATCH] Enable "no-case-declarations" This rule disallows lexical declarations in case statements. http://eslint.org/docs/rules/no-case-declarations Change-Id: Iaf209d0f5cd57da34f1ce5285badeb4ced6f9754 --- .eslintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index e8c2a1f..13954a2 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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