]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/5651'
authorTom Hughes <tom@compton.nu>
Tue, 11 Feb 2025 09:48:43 +0000 (09:48 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 11 Feb 2025 09:48:43 +0000 (09:48 +0000)
config/eslint.js

index 2dcd0d5a1a26e2abf587be9978447e698299dd71..c968d9e9a568efabe1539ac70af6a5e63901bdd0 100644 (file)
@@ -1,3 +1,5 @@
+/* eslint sort-keys: ["error", "asc", {minKeys: 5}] */
+
 const globals = require("globals");
 const js = require("@eslint/js");
 const erb = require("eslint-plugin-erb");
@@ -27,8 +29,8 @@ module.exports = [
         Cookies: "readonly",
         I18n: "readonly",
         L: "readonly",
-        OSM: "writable",
         Matomo: "readonly",
+        OSM: "writable",
         Turbo: "readonly",
         updateLinks: "readonly"
       }
@@ -43,7 +45,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",