From bf9fe07f67e0c4ed90fcc34c37936c282262f921 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Fri, 6 Jun 2025 13:15:57 +0200 Subject: [PATCH] DEV: Update linting config and run gjs-codemod (#177) --- .discourse-compatibility | 2 + Gemfile.lock | 26 +- about.json | 4 +- common/head_tag.html | 7 +- .../components/card/topic-replies-column.gjs | 2 +- .../components/sidebar-new-topic-button.gjs | 3 +- package.json | 8 +- pnpm-lock.yaml | 1197 +++++------------ scss/box-view.scss | 26 +- scss/color-exploration.scss | 2 +- scss/composer-peek-mode.scss | 2 +- scss/composer.scss | 4 +- scss/desktop-full-width.scss | 20 +- scss/desktop-horizon-fixes.scss | 2 +- scss/header.scss | 4 +- scss/main.scss | 22 +- scss/misc.scss | 2 +- scss/mobile-stuff.scss | 26 +- scss/sidebar.scss | 8 +- scss/topic-cards.scss | 18 +- scss/topic.scss | 10 +- scss/welcome-banner.scss | 24 +- 22 files changed, 444 insertions(+), 975 deletions(-) diff --git a/.discourse-compatibility b/.discourse-compatibility index e69de29..ca0835a 100644 --- a/.discourse-compatibility +++ b/.discourse-compatibility @@ -0,0 +1,2 @@ +< 3.5.0.beta5-dev: 31249c4f27d93e83c6b83d42d93974522a9a612e + diff --git a/Gemfile.lock b/Gemfile.lock index 7e28189..63d3599 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -15,16 +15,16 @@ GEM tzinfo (~> 2.0, >= 2.0.5) uri (>= 0.13.1) ast (2.4.3) - base64 (0.2.0) - benchmark (0.4.0) - bigdecimal (3.1.9) + base64 (0.3.0) + benchmark (0.4.1) + bigdecimal (3.2.2) concurrent-ruby (1.3.5) connection_pool (2.5.3) - drb (2.2.1) + drb (2.2.3) i18n (1.14.7) concurrent-ruby (~> 1.0) - json (2.11.3) - language_server-protocol (3.17.0.4) + json (2.12.2) + language_server-protocol (3.17.0.5) lint_roller (1.1.0) logger (1.7.0) minitest (5.25.5) @@ -35,10 +35,10 @@ GEM prettier_print (1.2.1) prism (1.4.0) racc (1.8.1) - rack (3.1.13) + rack (3.1.15) rainbow (3.1.1) regexp_parser (2.10.0) - rubocop (1.75.4) + rubocop (1.76.0) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) @@ -46,10 +46,10 @@ GEM parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 2.9.3, < 3.0) - rubocop-ast (>= 1.44.0, < 2.0) + rubocop-ast (>= 1.45.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.44.1) + rubocop-ast (1.45.0) parser (>= 3.3.7.2) prism (~> 1.4) rubocop-capybara (2.22.1) @@ -67,12 +67,12 @@ GEM rubocop-factory_bot (2.27.1) lint_roller (~> 1.1) rubocop (~> 1.72, >= 1.72.1) - rubocop-rails (2.31.0) + rubocop-rails (2.32.0) activesupport (>= 4.2.0) lint_roller (~> 1.1) rack (>= 1.1) rubocop (>= 1.75.0, < 2.0) - rubocop-ast (>= 1.38.0, < 2.0) + rubocop-ast (>= 1.44.0, < 2.0) rubocop-rspec (3.6.0) lint_roller (~> 1.1) rubocop (~> 1.72, >= 1.72.1) @@ -99,4 +99,4 @@ DEPENDENCIES syntax_tree BUNDLED WITH - 2.6.8 + 2.6.9 diff --git a/about.json b/about.json index 1458597..d24a599 100644 --- a/about.json +++ b/about.json @@ -6,9 +6,7 @@ "learn_more": "https://meta.discourse.org/t/installing-a-theme-or-theme-component/63682", "theme_version": "0.0.1", "modifiers": { - "svg_icons": [ - "fire" - ], + "svg_icons": ["fire"], "serialize_topic_is_hot": true }, "color_schemes": { diff --git a/common/head_tag.html b/common/head_tag.html index 9ad0067..2e776cb 100644 --- a/common/head_tag.html +++ b/common/head_tag.html @@ -1,6 +1,7 @@ \ No newline at end of file + diff --git a/javascripts/discourse/components/card/topic-replies-column.gjs b/javascripts/discourse/components/card/topic-replies-column.gjs index 82e684f..b168a63 100644 --- a/javascripts/discourse/components/card/topic-replies-column.gjs +++ b/javascripts/discourse/components/card/topic-replies-column.gjs @@ -1,5 +1,5 @@ +import { gt } from "truth-helpers"; import icon from "discourse/helpers/d-icon"; -import gt from "truth-helpers/helpers/gt"; const TopicRepliesColumn =