From: Holger Jeromin Date: Tue, 11 Feb 2025 10:08:33 +0000 (+0100) Subject: eslint: Move file config to eslint section X-Git-Tag: live~153^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/0043cd6b9a33b162a28d6d2b51d56235658d9d25 eslint: Move file config to eslint section --- diff --git a/config/eslint.js b/config/eslint.js index c968d9e9a..895ab380c 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"); @@ -171,6 +169,9 @@ module.exports = [ globals: { ...globals.commonjs } + }, + rules: { + "sort-keys": ["error", "asc", { minKeys: 5 }] } } ];