X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/807750023aa02896117a1d5d67a750eccd31d90b..c4c0e8105a8edc35205add749f461ec7be689aef:/config/eslint.json?ds=sidebyside diff --git a/config/eslint.json b/config/eslint.json index 8790b5edf..090b3f238 100644 --- a/config/eslint.json +++ b/config/eslint.json @@ -33,6 +33,13 @@ "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",