From ae192bb945ccf30d4644c8d5aab1d485ae39fb36 Mon Sep 17 00:00:00 2001 From: Malte-Thorben Bruns Date: Thu, 17 Sep 2015 16:36:10 +0200 Subject: [PATCH] eslint: update rules for 1.x --- .eslintrc | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.eslintrc b/.eslintrc index a17df7e..cb1e104 100644 --- a/.eslintrc +++ b/.eslintrc @@ -6,7 +6,7 @@ "no-dupe-keys": 2, "no-duplicate-case": 2, "no-empty": 1, - "no-empty-class": 2, + "no-empty-character-class": 2, "no-extra-bind": 2, "no-extra-semi": 2, "no-extra-parens": 1, @@ -17,6 +17,8 @@ "no-multi-spaces": 2, "no-new-func": 2, "no-new-object": 2, + "no-path-concat": 2, + "callback-return": 1, "no-process-exit": 2, "no-redeclare": 2, "no-shadow": 1, @@ -33,10 +35,10 @@ "consistent-return": 0, "consistent-this": [2, "self"], "curly": [2, "all"], - "dot-notation": [2, "allowKeywords"], + "dot-notation": [2, {"allowKeywords": true}], "eol-last": 2, "eqeqeq": [2, "smart"], - "indent": [2, 2], + "indent": [2, 2, {"SwitchCase": 1}], "key-spacing": [2, {"beforeColon": false, "afterColon": true}], "new-parens": 2, "operator-linebreak": [2, "after"], @@ -44,12 +46,14 @@ "semi": [2, "always"], "space-after-keywords": [2, "always"], "space-before-blocks": [2, "always"], - "space-before-function-parentheses": [2, "never"], - "space-in-brackets": [2, "never"], + "space-before-function-paren": [2, "never"], + "object-curly-spacing": [2, "never"], + "array-bracket-spacing": [2, "never"], + "computed-property-spacing": [2, "never"], "space-infix-ops": 2, "space-unary-ops": [2, {"words": true, "nonwords": false}], "space-return-throw-case": 2, - "spaced-line-comment": [2, "always"], + "spaced-comment": [2, "always"], "strict": [2, "global"], "valid-typeof": 2, "yoda": [2, "never"],