]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Migrate ESLint rules config to ESLint 2.0.0
authorChris Rebert <code@chrisrebert.com>
Tue, 31 May 2016 07:39:36 +0000 (00:39 -0700)
committerChris Rebert <code@chrisrebert.com>
Tue, 31 May 2016 07:39:39 +0000 (00:39 -0700)
Refs http://eslint.org/docs/user-guide/migrating-to-2.0.0

js/.eslintrc.json

index 619df7cb3d531da8e7e8533d44046f843a29e696..b866b125bfd1023799c5a5a39c6a74aae24f3a58 100644 (file)
@@ -55,7 +55,6 @@
         "no-case-declarations": 2,
         "no-div-regex": 2,
         "no-else-return": 2,
-        "no-empty-label": 2,
         "no-eq-null": 2,
         "no-eval": 2,
         "no-extend-native": 2,
         "func-style": 0,
         "indent": [2, 2, {"SwitchCase": 1}],
         "key-spacing": 0,
+        "keyword-spacing": 2,
         "linebreak-style": 2,
         "lines-around-comment": 0,
         "new-cap": 0,
         "semi": [2, "never"],
         "semi-spacing": 2,
         "sort-vars": 2,
-        "space-after-keywords": 2,
         "space-before-blocks": 2,
         "space-before-function-paren": 0,
         "spaced-comment": 2,
         "space-infix-ops": 2,
         "space-in-parens": 2,
-        "space-return-throw-case": 2,
         "space-unary-ops": 2,
 
         // es6