X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6db326aa1f084a062a3b658876bc01bf650f5702..751e8ad32c864f50eae9e9359d74a11dc44de007:/config/eslint.json diff --git a/config/eslint.json b/config/eslint.json index 8790b5edf..7a9e7d4e4 100644 --- a/config/eslint.json +++ b/config/eslint.json @@ -7,12 +7,10 @@ "eslint:recommended" ], "globals": { - "bowser": "readonly", "I18n": "readonly", "L": "readonly", "OSM": "writable", "Piwik": "readonly", - "querystring": "readonly", "require": "readonly", "updateLinks": "readonly" }, @@ -29,16 +27,26 @@ "comma-style": "error", "computed-property-spacing": "error", "curly": ["error", "multi-line", "consistent"], + "dot-location": ["error", "property"], "dot-notation": "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", "no-array-constructor": "error", "no-caller": "error", + "no-console": "warn", "no-div-regex": "error", + "no-eq-null": "error", "no-eval": "error", "no-extend-native": "error", "no-extra-bind": "error", @@ -47,6 +55,7 @@ "no-implicit-coercion": "warn", "no-implicit-globals": "warn", "no-implied-eval": "error", + "no-invalid-this": "error", "no-iterator": "error", "no-labels": "error", "no-label-var": "error", @@ -55,6 +64,7 @@ "no-loop-func": "error", "no-mixed-operators": "error", "no-multiple-empty-lines": "error", + "no-multi-spaces": "error", "no-multi-str": "error", "no-negated-condition": "error", "no-nested-ternary": "error", @@ -63,14 +73,16 @@ "no-new-object": "error", "no-new-wrappers": "error", "no-octal-escape": "error", + "no-param-reassign": "error", "no-process-env": "error", "no-proto": "error", "no-script-url": "error", "no-self-compare": "error", "no-sequences": "error", - "no-shadow-restricted-names": "error", "no-throw-literal": "error", "no-trailing-spaces": "error", + "no-undef-init": "error", + "no-undefined": "error", "no-unmodified-loop-condition": "error", "no-unneeded-ternary": "error", "no-unused-expressions": "off", @@ -82,7 +94,6 @@ "no-void": "error", "no-warning-comments": "warn", "no-whitespace-before-property": "error", - "no-with": "error", "object-curly-newline": ["error", { "consistent": true }], "object-curly-spacing": ["error", "always"], "object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],