Skip to content

Commit 6f415b2

Browse files
authored
DEV: Update linting
1 parent 5b4ee03 commit 6f415b2

4 files changed

Lines changed: 126 additions & 125 deletions

File tree

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/discourse/components/modal/chart-ui-builder.gjs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { Input } from "@ember/component";
44
import { fn } from "@ember/helper";
55
import { on } from "@ember/modifier";
66
import { action } from "@ember/object";
7+
import { trackedArray } from "@ember/reactive/collections";
78
import didInsert from "@ember/render-modifiers/modifiers/did-insert";
8-
import { TrackedArray } from "@ember-compat/tracked-built-ins";
99
import DButton from "discourse/components/d-button";
1010
import DModal from "discourse/components/d-modal";
1111
import { debounce } from "discourse/lib/decorators";
@@ -16,7 +16,7 @@ export default class ChartUiBuilder extends Component {
1616
title: null,
1717
xAxisTitle: null,
1818
};
19-
@tracked rows = new TrackedArray([this.initializeRow()]);
19+
@tracked rows = trackedArray([this.initializeRow()]);
2020
@tracked disabled = true;
2121

2222
@action
@@ -26,9 +26,7 @@ export default class ChartUiBuilder extends Component {
2626

2727
@action
2828
removeRow(rowToBeRemoved) {
29-
this.rows = new TrackedArray(
30-
this.rows.filter((row) => row !== rowToBeRemoved)
31-
);
29+
this.rows = trackedArray(this.rows.filter((row) => row !== rowToBeRemoved));
3230

3331
if (this.rows.length === 0) {
3432
this.addRow();

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)