X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/22a37fdf1d94ba20f43e15786b6697fb3c6bd02a..d095dfe3d4c1ec90cebdfb3307564022cbeaf878:/config/eslint.js?ds=sidebyside diff --git a/config/eslint.js b/config/eslint.js index c968d9e9a..6055634aa 100644 --- a/config/eslint.js +++ b/config/eslint.js @@ -1,5 +1,3 @@ -/* eslint sort-keys: ["error", "asc", {minKeys: 5}] */ - const globals = require("globals"); const js = require("@eslint/js"); const erb = require("eslint-plugin-erb"); @@ -143,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" @@ -171,6 +171,9 @@ module.exports = [ globals: { ...globals.commonjs } + }, + rules: { + "sort-keys": ["error", "asc", { minKeys: 5 }] } } ];