X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4252069afd6c991138f36d55a14838fba67703a5..984dd624dd27140ea554c305117fd5a175a595a2:/config/eslint.js 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 }] } } ];