]> git.openstreetmap.org Git - rails.git/commitdiff
eslint: Move file config to eslint section
authorHolger Jeromin <h.jeromin@beckhoff.com>
Tue, 11 Feb 2025 10:08:33 +0000 (11:08 +0100)
committerHolger Jeromin <h.jeromin@beckhoff.com>
Tue, 11 Feb 2025 10:08:33 +0000 (11:08 +0100)
config/eslint.js

index c968d9e9a568efabe1539ac70af6a5e63901bdd0..895ab380c16c275d0ff3c984fc212a728078a9c4 100644 (file)
@@ -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");
@@ -171,6 +169,9 @@ module.exports = [
       globals: {
         ...globals.commonjs
       }
+    },
+    rules: {
+      "sort-keys": ["error", "asc", { minKeys: 5 }]
     }
   }
 ];