]> git.openstreetmap.org Git - rails.git/blobdiff - config/eslint.json
Enforce consistent indentation in javascript code
[rails.git] / config / eslint.json
index 8790b5edf88b39266b05313b11628f42ddf63f4f..090b3f238382a4ba77a99181278f3cc958cdd5e6 100644 (file)
     "eol-last": "error",
     "eqeqeq": ["error", "smart"],
     "func-call-spacing": "error",
     "eol-last": "error",
     "eqeqeq": ["error", "smart"],
     "func-call-spacing": "error",
+    "indent": ["error", 2, {
+      "SwitchCase": 1,
+      "VariableDeclarator": "first",
+      "FunctionDeclaration": { "parameters": "first" },
+      "FunctionExpression": { "parameters": "first" },
+      "CallExpression": { "arguments": "first" }
+    }],
     "key-spacing": "error",
     "keyword-spacing": "error",
     "no-alert": "warn",
     "key-spacing": "error",
     "keyword-spacing": "error",
     "no-alert": "warn",