]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Updated ESLint rules 8182/head
authorColin Marshall <colin.michael.marshall@gmail.com>
Wed, 17 Feb 2016 04:05:33 +0000 (21:05 -0700)
committerColin Marshall <colin.michael.marshall@gmail.com>
Wed, 17 Feb 2016 04:52:18 +0000 (21:52 -0700)
.eslintrc

index 512d32e59efc3315505db0227cb5c4170fa3fce6..e457c2f6f71f28ffef54e7ac519d82ef8f20aae7 100644 (file)
--- a/.eslintrc
+++ b/.eslintrc
     "Foundation": true
     },
   "parser": "babel-eslint",
+  "parserOptions": {
+    "ecmaFeatures": {
+      "impliedStrict": true,
+      "jsx": false
+    },
+    "ecmaVersion": 6,
+    "sourceType": "module"
+  },
   "rules": {
     "block-scoped-var": 2,
     "camelcase": 2,
-    "comma-style": [
-      2,
-      "last"
-    ],
-    "curly": [
-      2,
-      "all"
-    ],
+    "comma-style": [2, "last"],
+    "curly": [0, "all"],
     "dot-notation": [
       2,
       {
         "allowKeywords": true
       }
     ],
-    "eqeqeq": [
-      2,
-      "allow-null"
-    ],
+    "eqeqeq": [2, "allow-null"],
     "guard-for-in": 2,
     "new-cap": 2,
     "no-bitwise": 2,
     "no-caller": 2,
-    "no-cond-assign": [
-      2,
-      "except-parens"
-    ],
+    "no-cond-assign": [2, "except-parens"],
     "no-debugger": 2,
     "no-empty": 2,
     "no-eval": 2,
     "no-extend-native": 2,
-    "no-extra-parens": 2,
+    "no-extra-parens": 1,
     "no-irregular-whitespace": 2,
     "no-iterator": 2,
     "no-loop-func": 2,
     "no-multi-str": 2,
     "no-new": 2,
-    "no-plusplus": 2,
+    "no-plusplus": 0,
     "no-proto": 2,
     "no-script-url": 2,
     "no-sequences": 2,
-    "no-shadow": 2,
+    "no-shadow": 1,
     "no-undef": 2,
-    "no-unused-vars": 2,
+    "no-unused-vars": 1,
     "no-with": 2,
-    "quotes": [
-      2,
-      "single"
-    ],
-    "semi": [
-      0,
-      "never"
-    ],
-    "strict": [2, "global"],
+    "quotes": 0,
+    "semi": [0, "never"],
+    "strict": [1, "global"],
     "valid-typeof": 2,
-    "wrap-iife": [
-      2,
-      "inside"
-    ]
+    "wrap-iife": [2, "inside"]
   }
 }
\ No newline at end of file