]> git.openstreetmap.org Git - rails.git/blobdiff - config/eslint.json
Enable some more eslint checks
[rails.git] / config / eslint.json
index 5b058e354103ca4e3489c886317034347962cb35..c207e35951b3c79fc9226cfef5d8a6e9f91a438f 100644 (file)
     "updateLinks": "readonly"
   },
   "rules": {
+    "accessor-pairs": "error",
+    "array-callback-return": "error",
+    "block-scoped-var": "error",
     "dot-notation": "error",
     "eqeqeq": ["error", "smart"],
     "keyword-spacing": "error",
+    "no-alert": "warn",
     "no-caller": "error",
     "no-div-regex": "error",
+    "no-eval": "error",
     "no-extend-native": "error",
     "no-extra-bind": "error",
+    "no-extra-label": "error",
     "no-floating-decimal": "error",
+    "no-implicit-coercion": "warn",
+    "no-implicit-globals": "warn",
     "no-implied-eval": "error",
     "no-iterator": "error",
     "no-labels": "error",
     "no-shadow-restricted-names": "error",
     "no-throw-literal": "error",
     "no-trailing-spaces": "error",
+    "no-unmodified-loop-condition": "error",
     "no-unneeded-ternary": "error",
     "no-unused-expressions": "off",
     "no-unused-vars": "error",
+    "no-useless-call": "error",
+    "no-useless-concat": "error",
+    "no-useless-return": "error",
     "no-use-before-define": ["error", {"functions": false}],
     "no-void": "error",
     "no-warning-comments": "warn",
@@ -56,6 +68,8 @@
     "semi": ["error", "always"],
     "semi-spacing": "error",
     "space-unary-ops": "error",
-    "wrap-regex": "off"
+    "wrap-iife": "error",
+    "wrap-regex": "error",
+    "yoda": "error"
   }
 }