Skip to content

Commit 0a0c48a

Browse files
authored
DEV: Update linting
1 parent bb09c29 commit 0a0c48a

File tree

4 files changed

+125
-122
lines changed

4 files changed

+125
-122
lines changed

Gemfile.lock

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (8.1.2)
4+
activesupport (8.1.3)
55
base64
66
bigdecimal
77
concurrent-ruby (~> 1.0, >= 1.3.1)
@@ -14,8 +14,6 @@ GEM
1414
securerandom (>= 0.3)
1515
tzinfo (~> 2.0, >= 2.0.5)
1616
uri (>= 0.13.1)
17-
addressable (2.8.9)
18-
public_suffix (>= 2.0.2, < 8.0)
1917
ast (2.4.3)
2018
base64 (0.3.0)
2119
bigdecimal (4.0.1)
@@ -24,15 +22,10 @@ GEM
2422
drb (2.2.3)
2523
i18n (1.14.8)
2624
concurrent-ruby (~> 1.0)
27-
json (2.19.1)
28-
json-schema (6.2.0)
29-
addressable (~> 2.8)
30-
bigdecimal (>= 3.1, < 5)
25+
json (2.19.3)
3126
language_server-protocol (3.17.0.5)
3227
lint_roller (1.1.0)
3328
logger (1.7.0)
34-
mcp (0.8.0)
35-
json-schema (>= 4.1)
3629
minitest (6.0.2)
3730
drb (~> 2.0)
3831
prism (~> 1.5)
@@ -42,16 +35,14 @@ GEM
4235
racc
4336
prettier_print (1.2.1)
4437
prism (1.9.0)
45-
public_suffix (7.0.5)
4638
racc (1.8.1)
4739
rack (3.2.5)
4840
rainbow (3.1.1)
4941
regexp_parser (2.11.3)
50-
rubocop (1.85.1)
42+
rubocop (1.86.0)
5143
json (~> 2.3)
5244
language_server-protocol (~> 3.17.0.2)
5345
lint_roller (~> 1.1.0)
54-
mcp (~> 0.6)
5546
parallel (~> 1.10)
5647
parser (>= 3.3.0.2)
5748
rainbow (>= 2.2.2, < 4.0)
@@ -65,7 +56,7 @@ GEM
6556
rubocop-capybara (2.22.1)
6657
lint_roller (~> 1.1)
6758
rubocop (~> 1.72, >= 1.72.1)
68-
rubocop-discourse (3.14.0)
59+
rubocop-discourse (3.16.0)
6960
activesupport (>= 6.1)
7061
lint_roller (>= 1.1.0)
7162
rubocop-capybara (>= 2.22.0)
@@ -111,4 +102,4 @@ DEPENDENCIES
111102
syntax_tree
112103

113104
BUNDLED WITH
114-
4.0.8
105+
4.0.9

assets/javascripts/app/helpers/animated-bound-avatar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { htmlSafe } from "@ember/template";
1+
import { trustHTML } from "@ember/template";
22
import boundAvatar from "discourse/helpers/bound-avatar";
33
import { prefersReducedMotion } from "discourse/lib/utilities";
44

@@ -9,5 +9,5 @@ export default function (user, size) {
99
return avatar;
1010
}
1111

12-
return htmlSafe(avatar.toString().replace(/\.png/, ".gif"));
12+
return trustHTML(avatar.toString().replace(/\.png/, ".gif"));
1313
}

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
{
22
"private": true,
33
"devDependencies": {
4-
"@discourse/lint-configs": "2.43.0",
4+
"@discourse/lint-configs": "2.44.1",
55
"@glint/ember-tsc": "1.1.1",
66
"concurrently": "^9.2.1",
7-
"discourse": "npm:@discourse/types@2026.3.0-887c5be4",
7+
"discourse": "npm:@discourse/types@2026.3.0-d02b2966",
88
"ember-template-lint": "7.9.3",
99
"eslint": "9.39.2",
1010
"lint-to-the-future": "^2.6.4",
1111
"lint-to-the-future-eslint": "^3.3.0",
1212
"prettier": "3.8.1",
13-
"stylelint": "17.4.0"
13+
"stylelint": "17.5.0"
1414
},
1515
"scripts": {
1616
"lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\"",
1717
"lint:fix": "concurrently \"pnpm:lint:*:fix\" --names \"fix:\"",
18-
"lint:css": "pnpm stylelint assets/stylesheets/**/*.scss --allow-empty-input",
19-
"lint:css:fix": "pnpm stylelint assets/stylesheets/**/*.scss --fix --allow-empty-input",
18+
"lint:css": "pnpm stylelint 'assets/stylesheets/**/*.scss' --allow-empty-input",
19+
"lint:css:fix": "pnpm stylelint 'assets/stylesheets/**/*.scss' --fix --allow-empty-input",
2020
"lint:js": "eslint {assets,admin/assets,test}/javascripts --cache --no-error-on-unmatched-pattern",
2121
"lint:js:fix": "eslint {assets,admin/assets,test}/javascripts --fix --no-error-on-unmatched-pattern",
22-
"lint:hbs": "ember-template-lint {assets,admin/assets,test}/javascripts/**/*.gjs --no-error-on-unmatched-pattern",
23-
"lint:hbs:fix": "ember-template-lint {assets,admin/assets,test}/javascripts/**/*.gjs --fix --no-error-on-unmatched-pattern",
24-
"lint:prettier": "pnpm prettier assets/stylesheets/**/*.scss {assets,admin/assets,test}/javascripts/**/*.{js,gjs} --check --no-error-on-unmatched-pattern",
25-
"lint:prettier:fix": "pnpm prettier assets/stylesheets/**/*.scss {assets,admin/assets,test}/javascripts/**/*.{js,gjs} -w --no-error-on-unmatched-pattern",
22+
"lint:hbs": "ember-template-lint '{assets,admin/assets,test}/javascripts/**/*.gjs' --no-error-on-unmatched-pattern",
23+
"lint:hbs:fix": "ember-template-lint '{assets,admin/assets,test}/javascripts/**/*.gjs' --fix --no-error-on-unmatched-pattern",
24+
"lint:prettier": "pnpm prettier 'assets/stylesheets/**/*.scss' '{assets,admin/assets,test}/javascripts/**/*.{js,gjs}' --check --no-error-on-unmatched-pattern",
25+
"lint:prettier:fix": "pnpm prettier 'assets/stylesheets/**/*.scss' '{assets,admin/assets,test}/javascripts/**/*.{js,gjs}' -w --no-error-on-unmatched-pattern",
2626
"lint:types": "ember-tsc -b",
2727
"lttf:ignore": "lint-to-the-future ignore"
2828
},

0 commit comments

Comments
 (0)