From e2270f549924f6c136f625a2da1ae3b0916db8b0 Mon Sep 17 00:00:00 2001 From: Arpith Siromoney Date: Sun, 27 Nov 2016 14:31:39 +0530 Subject: [PATCH] Tighten eslint rules with zero errors to airbnb values. block-scoped-vars, guard-for-in, radix and valid-typeof are eslint rules that were set to warning in the eslintrc. Since there are no errors, they have been toggled to the appropriate values from the airbnb style guide. --- .eslintrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.eslintrc b/.eslintrc index ff1ed9cae2..9e4bba2f89 100644 --- a/.eslintrc +++ b/.eslintrc @@ -146,13 +146,13 @@ "no-redeclare": 2, "no-regex-spaces": 2, "brace-style": [1, "1tbs"], - "block-scoped-var": 0, + "block-scoped-var": 2, "camelcase": 1, "complexity": [0, 4], "curly": 2, "dot-notation": 2, "eqeqeq": 2, - "guard-for-in": 0, + "guard-for-in": 2, "max-depth": [0, 4], "max-len": [0, 80, 4], "max-params": [0, 3], @@ -162,14 +162,14 @@ "one-var": 1, "quotes": [1, "single"], "quote-props": 0, - "radix": 0, + "radix": 2, "semi": 2, "keyword-spacing": 1, "space-before-blocks": 1, "strict": 1, "unnecessary-strict": 0, "use-isnan": 2, - "valid-typeof": 0, + "valid-typeof": ['error', { requireStringLiterals: true }], "wrap-iife": 2, "wrap-regex": 0, "yoda": 1