1
0
mirror of synced 2026-05-22 15:03:15 +00:00

DEV: Update linting (#65)

This commit is contained in:
Jarek Radosz
2026-03-13 14:14:37 +01:00
committed by GitHub
parent 85d7416514
commit 6b0e482f6e
5 changed files with 560 additions and 396 deletions
+17 -7
View File
@@ -14,6 +14,8 @@ GEM
securerandom (>= 0.3) securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5) tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1) uri (>= 0.13.1)
addressable (2.8.9)
public_suffix (>= 2.0.2, < 8.0)
ast (2.4.3) ast (2.4.3)
base64 (0.3.0) base64 (0.3.0)
bigdecimal (4.0.1) bigdecimal (4.0.1)
@@ -22,26 +24,34 @@ GEM
drb (2.2.3) drb (2.2.3)
i18n (1.14.8) i18n (1.14.8)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
json (2.18.0) json (2.19.1)
json-schema (6.2.0)
addressable (~> 2.8)
bigdecimal (>= 3.1, < 5)
language_server-protocol (3.17.0.5) language_server-protocol (3.17.0.5)
lint_roller (1.1.0) lint_roller (1.1.0)
logger (1.7.0) logger (1.7.0)
minitest (6.0.1) mcp (0.8.0)
json-schema (>= 4.1)
minitest (6.0.2)
drb (~> 2.0)
prism (~> 1.5) prism (~> 1.5)
parallel (1.27.0) parallel (1.27.0)
parser (3.3.10.1) parser (3.3.10.2)
ast (~> 2.4.1) ast (~> 2.4.1)
racc racc
prettier_print (1.2.1) prettier_print (1.2.1)
prism (1.8.0) prism (1.9.0)
public_suffix (7.0.5)
racc (1.8.1) racc (1.8.1)
rack (3.2.5) rack (3.2.5)
rainbow (3.1.1) rainbow (3.1.1)
regexp_parser (2.11.3) regexp_parser (2.11.3)
rubocop (1.84.0) rubocop (1.85.1)
json (~> 2.3) json (~> 2.3)
language_server-protocol (~> 3.17.0.2) language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0) lint_roller (~> 1.1.0)
mcp (~> 0.6)
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)
@@ -49,7 +59,7 @@ GEM
rubocop-ast (>= 1.49.0, < 2.0) rubocop-ast (>= 1.49.0, < 2.0)
ruby-progressbar (~> 1.7) ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0) unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.49.0) rubocop-ast (1.49.1)
parser (>= 3.3.7.2) parser (>= 3.3.7.2)
prism (~> 1.7) prism (~> 1.7)
rubocop-capybara (2.22.1) rubocop-capybara (2.22.1)
@@ -102,4 +112,4 @@ DEPENDENCIES
syntax_tree syntax_tree
BUNDLED WITH BUNDLED WITH
4.0.4 4.0.8
@@ -1,8 +1,9 @@
/* eslint-disable ember/no-classic-components */
import Component from "@ember/component"; import Component from "@ember/component";
import { computed } from "@ember/object";
import { tagName } from "@ember-decorators/component"; import { tagName } from "@ember-decorators/component";
import DButton from "discourse/components/d-button"; import DButton from "discourse/components/d-button";
import routeAction from "discourse/helpers/route-action"; import routeAction from "discourse/helpers/route-action";
import discourseComputed from "discourse/lib/decorators";
import { i18n } from "discourse-i18n"; import { i18n } from "discourse-i18n";
@tagName("") @tagName("")
@@ -55,9 +56,9 @@ export default class TopicInGatedCategory extends Component {
} }
} }
@discourseComputed("hidden") @computed("hidden")
shouldShow(hidden) { get shouldShow() {
return !hidden; return !this.hidden;
} }
<template> <template>
@@ -1,3 +1,4 @@
/* eslint-disable ember/no-classic-components, ember/require-tagless-components */
import Component from "@ember/component"; import Component from "@ember/component";
import { classNames } from "@ember-decorators/component"; import { classNames } from "@ember-decorators/component";
import TopicInGatedCategory from "../../components/topic-in-gated-category"; import TopicInGatedCategory from "../../components/topic-in-gated-category";
+9 -6
View File
@@ -1,14 +1,16 @@
{ {
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"@discourse/lint-configs": "2.37.2", "@discourse/lint-configs": "2.43.0",
"@glint/ember-tsc": "1.0.9", "@glint/ember-tsc": "1.1.1",
"concurrently": "^9.2.1", "concurrently": "^9.2.1",
"discourse": "npm:@discourse/types@2026.1.0-2709d36", "discourse": "npm:@discourse/types@2026.3.0-887c5be4",
"ember-template-lint": "7.9.3", "ember-template-lint": "7.9.3",
"eslint": "9.39.2", "eslint": "9.39.2",
"prettier": "3.8.0", "lint-to-the-future": "^2.6.4",
"stylelint": "17.0.0" "lint-to-the-future-eslint": "^3.3.0",
"prettier": "3.8.1",
"stylelint": "17.4.0"
}, },
"scripts": { "scripts": {
"lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\"", "lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\"",
@@ -21,7 +23,8 @@
"lint:hbs:fix": "ember-template-lint javascripts/**/*.gjs --fix --no-error-on-unmatched-pattern", "lint:hbs:fix": "ember-template-lint javascripts/**/*.gjs --fix --no-error-on-unmatched-pattern",
"lint:prettier": "pnpm prettier {javascripts,desktop,mobile,common,scss}/**/*.scss {javascripts,test}/**/*.{js,gjs} --check --no-error-on-unmatched-pattern", "lint:prettier": "pnpm prettier {javascripts,desktop,mobile,common,scss}/**/*.scss {javascripts,test}/**/*.{js,gjs} --check --no-error-on-unmatched-pattern",
"lint:prettier:fix": "pnpm prettier {javascripts,desktop,mobile,common,scss}/**/*.scss {javascripts,test}/**/*.{js,gjs} -w --no-error-on-unmatched-pattern", "lint:prettier:fix": "pnpm prettier {javascripts,desktop,mobile,common,scss}/**/*.scss {javascripts,test}/**/*.{js,gjs} -w --no-error-on-unmatched-pattern",
"lint:types": "ember-tsc -b" "lint:types": "ember-tsc -b",
"lttf:ignore": "lint-to-the-future ignore"
}, },
"engines": { "engines": {
"node": ">= 22", "node": ">= 22",
+528 -379
View File
File diff suppressed because it is too large Load Diff