X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6edb8dae058979f9c5cb198ad4f7af3f700ba84b..984dd624dd27140ea554c305117fd5a175a595a2:/config/eslint.js?ds=inline diff --git a/config/eslint.js b/config/eslint.js index 2dcd0d5a1..6055634aa 100644 --- a/config/eslint.js +++ b/config/eslint.js @@ -27,8 +27,8 @@ module.exports = [ Cookies: "readonly", I18n: "readonly", L: "readonly", - OSM: "writable", Matomo: "readonly", + OSM: "writable", Turbo: "readonly", updateLinks: "readonly" } @@ -43,7 +43,6 @@ module.exports = [ reportUnusedDisableDirectives: "off" }, rules: { - /* eslint sort-keys: ["warn"] */ "@stylistic/array-bracket-newline": ["error", "consistent"], "@stylistic/array-bracket-spacing": "error", "@stylistic/block-spacing": "error", @@ -142,9 +141,11 @@ module.exports = [ "no-useless-call": "error", "no-useless-concat": "error", "no-useless-return": "error", + "no-var": "error", "no-void": "error", "no-warning-comments": "warn", "operator-assignment": "error", + "prefer-const": "error", "prefer-object-spread": "error", "radix": ["error", "always"], "yoda": "error" @@ -170,6 +171,9 @@ module.exports = [ globals: { ...globals.commonjs } + }, + rules: { + "sort-keys": ["error", "asc", { minKeys: 5 }] } } ];