DEV: Update linting

This commit is contained in:
Jarek Radosz 2025-03-17 23:24:47 +01:00
parent e00b4e1992
commit d08e85c017
No known key found for this signature in database
GPG Key ID: 98C198E7019429B3
6 changed files with 1188 additions and 1297 deletions

View File

@ -1,8 +1,9 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
activesupport (7.2.1.1) activesupport (8.0.2)
base64 base64
benchmark (>= 0.3)
bigdecimal bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1) concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5) connection_pool (>= 2.2.5)
@ -12,68 +13,81 @@ GEM
minitest (>= 5.1) minitest (>= 5.1)
securerandom (>= 0.3) securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5) tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
ast (2.4.2) ast (2.4.2)
base64 (0.2.0) base64 (0.2.0)
bigdecimal (3.1.8) benchmark (0.4.0)
concurrent-ruby (1.3.4) bigdecimal (3.1.9)
connection_pool (2.4.1) concurrent-ruby (1.3.5)
connection_pool (2.5.0)
drb (2.2.1) drb (2.2.1)
i18n (1.14.6) i18n (1.14.7)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
json (2.7.2) json (2.10.2)
language_server-protocol (3.17.0.3) language_server-protocol (3.17.0.4)
logger (1.6.1) lint_roller (1.1.0)
minitest (5.25.1) logger (1.6.6)
minitest (5.25.5)
parallel (1.26.3) parallel (1.26.3)
parser (3.3.5.0) parser (3.3.7.1)
ast (~> 2.4.1) ast (~> 2.4.1)
racc racc
prettier_print (1.2.1) prettier_print (1.2.1)
racc (1.8.1) racc (1.8.1)
rack (3.1.10) rack (3.1.12)
rainbow (3.1.1) rainbow (3.1.1)
regexp_parser (2.9.2) regexp_parser (2.10.0)
rubocop (1.67.0) rubocop (1.74.0)
json (~> 2.3) json (~> 2.3)
language_server-protocol (>= 3.17.0) language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (~> 1.10) parallel (~> 1.10)
parser (>= 3.3.0.2) parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0) rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.4, < 3.0) regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.32.2, < 2.0) rubocop-ast (>= 1.38.0, < 2.0)
ruby-progressbar (~> 1.7) ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0) unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.32.3) rubocop-ast (1.39.0)
parser (>= 3.3.1.0) parser (>= 3.3.1.0)
rubocop-capybara (2.21.0) rubocop-capybara (2.22.1)
rubocop (~> 1.41) lint_roller (~> 1.1)
rubocop-discourse (3.8.2) rubocop (~> 1.72, >= 1.72.1)
rubocop-discourse (3.12.1)
activesupport (>= 6.1) activesupport (>= 6.1)
rubocop (>= 1.59.0) lint_roller (>= 1.1.0)
rubocop-capybara (>= 2.0.0) rubocop (>= 1.73.2)
rubocop-factory_bot (>= 2.0.0) rubocop-capybara (>= 2.22.0)
rubocop-rails (>= 2.25.0) rubocop-factory_bot (>= 2.27.0)
rubocop-rails (>= 2.30.3)
rubocop-rspec (>= 3.0.1) rubocop-rspec (>= 3.0.1)
rubocop-rspec_rails (>= 2.30.0) rubocop-rspec_rails (>= 2.31.0)
rubocop-factory_bot (2.26.1) rubocop-factory_bot (2.27.1)
rubocop (~> 1.61) lint_roller (~> 1.1)
rubocop-rails (2.26.2) rubocop (~> 1.72, >= 1.72.1)
rubocop-rails (2.30.3)
activesupport (>= 4.2.0) activesupport (>= 4.2.0)
lint_roller (~> 1.1)
rack (>= 1.1) rack (>= 1.1)
rubocop (>= 1.52.0, < 2.0) rubocop (>= 1.72.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0) rubocop-ast (>= 1.38.0, < 2.0)
rubocop-rspec (3.1.0) rubocop-rspec (3.5.0)
rubocop (~> 1.61) lint_roller (~> 1.1)
rubocop-rspec_rails (2.30.0) rubocop (~> 1.72, >= 1.72.1)
rubocop (~> 1.61) rubocop-rspec_rails (2.31.0)
rubocop-rspec (~> 3, >= 3.0.1) lint_roller (~> 1.1)
rubocop (~> 1.72, >= 1.72.1)
rubocop-rspec (~> 3.5)
ruby-progressbar (1.13.0) ruby-progressbar (1.13.0)
securerandom (0.3.1) securerandom (0.4.1)
syntax_tree (6.2.0) syntax_tree (6.2.0)
prettier_print (>= 1.2.0) prettier_print (>= 1.2.0)
tzinfo (2.0.6) tzinfo (2.0.6)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
unicode-display_width (2.6.0) unicode-display_width (3.1.4)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)
uri (1.0.3)
PLATFORMS PLATFORMS
arm64-darwin-23 arm64-darwin-23
@ -84,4 +98,4 @@ DEPENDENCIES
syntax_tree syntax_tree
BUNDLED WITH BUNDLED WITH
2.5.21 2.6.6

View File

@ -3,6 +3,7 @@ $bg-dark: "none";
@if $background-image-light != "" { @if $background-image-light != "" {
$bg-light: url($background-image-light); $bg-light: url($background-image-light);
@if $background-image-dark != "" { @if $background-image-dark != "" {
$bg-dark: url($background-image-dark); $bg-dark: url($background-image-dark);
} @else { } @else {

View File

@ -29,6 +29,7 @@ $max-width: 600px;
position: relative; position: relative;
padding: 2.5em 0 3em; padding: 2.5em 0 3em;
margin: 1em auto; margin: 1em auto;
@include breakpoint(tablet) { @include breakpoint(tablet) {
padding: 1em 8px 1.25em; padding: 1em 8px 1.25em;
margin-top: 0.5em; margin-top: 0.5em;
@ -57,6 +58,7 @@ $max-width: 600px;
.d-icon-search { .d-icon-search {
margin: 0; margin: 0;
} }
.browser-search-tip { .browser-search-tip {
display: none; display: none;
} }
@ -71,6 +73,7 @@ $max-width: 600px;
h1 { h1 {
font-size: var(--font-up-6); font-size: var(--font-up-6);
line-height: $line-height-medium; line-height: $line-height-medium;
@include breakpoint(tablet) { @include breakpoint(tablet) {
font-size: var(--font-up-4); font-size: var(--font-up-4);
} }
@ -89,6 +92,7 @@ $max-width: 600px;
height: 100%; height: 100%;
position: absolute; position: absolute;
left: 0; left: 0;
.rtl & { .rtl & {
right: 0; right: 0;
left: unset; left: unset;
@ -98,22 +102,27 @@ $max-width: 600px;
&:hover { &:hover {
background: transparent; background: transparent;
color: var(--primary); color: var(--primary);
.d-icon { .d-icon {
color: currentColor; color: currentcolor;
} }
} }
} }
+ .search-menu-container .search-input { + .search-menu-container .search-input {
padding-left: 1.75em; padding-left: 1.75em;
.rtl & { .rtl & {
padding-left: unset; padding-left: unset;
padding-right: 1.75em; padding-right: 1.75em;
} }
} }
+ .search-menu-container .search-input .search-context { + .search-menu-container .search-input .search-context {
margin-left: 4px; margin-left: 4px;
} }
} }
.btn.search-icon.has-search-button-text { .btn.search-icon.has-search-button-text {
order: 2; order: 2;
margin-left: 0.5em; margin-left: 0.5em;
@ -121,9 +130,11 @@ $max-width: 600px;
background-color: var(--tertiary); background-color: var(--tertiary);
color: var(--secondary); color: var(--secondary);
flex: none; flex: none;
&:hover { &:hover {
background-color: var(--tertiary-hover); background-color: var(--tertiary-hover);
} }
.d-icon { .d-icon {
color: var(--secondary); color: var(--secondary);
} }
@ -141,14 +152,17 @@ $max-width: 600px;
top: 2.75em; top: 2.75em;
right: 0; right: 0;
padding: 0.5em; padding: 0.5em;
@include breakpoint(mobile-extra-large) { @include breakpoint(mobile-extra-large) {
width: 100%; width: 100%;
} }
ul, ul,
ol { ol {
list-style-type: none; list-style-type: none;
margin: 0; margin: 0;
} }
.d-icon-search { .d-icon-search {
display: none; display: none;
} }

View File

@ -1,10 +1,11 @@
{ {
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"@discourse/lint-configs": "2.4.0", "@discourse/lint-configs": "2.11.1",
"ember-template-lint": "6.1.0", "ember-template-lint": "7.0.1",
"eslint": "9.19.0", "eslint": "9.22.0",
"prettier": "2.8.8" "prettier": "3.5.3",
"stylelint": "16.16.0"
}, },
"engines": { "engines": {
"node": ">= 22", "node": ">= 22",

File diff suppressed because it is too large Load Diff

3
stylelint.config.mjs Normal file
View File

@ -0,0 +1,3 @@
export default {
extends: ["@discourse/lint-configs/stylelint"],
};