From 22a37fdf1d94ba20f43e15786b6697fb3c6bd02a Mon Sep 17 00:00:00 2001 From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com> Date: Tue, 11 Feb 2025 10:21:35 +0100 Subject: [PATCH] Force only big objects in eslint configuration to be sorted --- config/eslint.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/eslint.js b/config/eslint.js index 2dcd0d5a1..c968d9e9a 100644 --- a/config/eslint.js +++ b/config/eslint.js @@ -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", -- 2.39.5