DEV: Update linting (#65)
This commit is contained in:
+17
-7
@@ -14,6 +14,8 @@ GEM
|
||||
securerandom (>= 0.3)
|
||||
tzinfo (~> 2.0, >= 2.0.5)
|
||||
uri (>= 0.13.1)
|
||||
addressable (2.8.9)
|
||||
public_suffix (>= 2.0.2, < 8.0)
|
||||
ast (2.4.3)
|
||||
base64 (0.3.0)
|
||||
bigdecimal (4.0.1)
|
||||
@@ -22,26 +24,34 @@ GEM
|
||||
drb (2.2.3)
|
||||
i18n (1.14.8)
|
||||
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)
|
||||
lint_roller (1.1.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)
|
||||
parallel (1.27.0)
|
||||
parser (3.3.10.1)
|
||||
parser (3.3.10.2)
|
||||
ast (~> 2.4.1)
|
||||
racc
|
||||
prettier_print (1.2.1)
|
||||
prism (1.8.0)
|
||||
prism (1.9.0)
|
||||
public_suffix (7.0.5)
|
||||
racc (1.8.1)
|
||||
rack (3.2.5)
|
||||
rainbow (3.1.1)
|
||||
regexp_parser (2.11.3)
|
||||
rubocop (1.84.0)
|
||||
rubocop (1.85.1)
|
||||
json (~> 2.3)
|
||||
language_server-protocol (~> 3.17.0.2)
|
||||
lint_roller (~> 1.1.0)
|
||||
mcp (~> 0.6)
|
||||
parallel (~> 1.10)
|
||||
parser (>= 3.3.0.2)
|
||||
rainbow (>= 2.2.2, < 4.0)
|
||||
@@ -49,7 +59,7 @@ GEM
|
||||
rubocop-ast (>= 1.49.0, < 2.0)
|
||||
ruby-progressbar (~> 1.7)
|
||||
unicode-display_width (>= 2.4.0, < 4.0)
|
||||
rubocop-ast (1.49.0)
|
||||
rubocop-ast (1.49.1)
|
||||
parser (>= 3.3.7.2)
|
||||
prism (~> 1.7)
|
||||
rubocop-capybara (2.22.1)
|
||||
@@ -102,4 +112,4 @@ DEPENDENCIES
|
||||
syntax_tree
|
||||
|
||||
BUNDLED WITH
|
||||
4.0.4
|
||||
4.0.8
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
/* eslint-disable ember/no-classic-components */
|
||||
import Component from "@ember/component";
|
||||
import { computed } from "@ember/object";
|
||||
import { tagName } from "@ember-decorators/component";
|
||||
import DButton from "discourse/components/d-button";
|
||||
import routeAction from "discourse/helpers/route-action";
|
||||
import discourseComputed from "discourse/lib/decorators";
|
||||
import { i18n } from "discourse-i18n";
|
||||
|
||||
@tagName("")
|
||||
@@ -55,9 +56,9 @@ export default class TopicInGatedCategory extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
@discourseComputed("hidden")
|
||||
shouldShow(hidden) {
|
||||
return !hidden;
|
||||
@computed("hidden")
|
||||
get shouldShow() {
|
||||
return !this.hidden;
|
||||
}
|
||||
|
||||
<template>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable ember/no-classic-components, ember/require-tagless-components */
|
||||
import Component from "@ember/component";
|
||||
import { classNames } from "@ember-decorators/component";
|
||||
import TopicInGatedCategory from "../../components/topic-in-gated-category";
|
||||
|
||||
+9
-6
@@ -1,14 +1,16 @@
|
||||
{
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@discourse/lint-configs": "2.37.2",
|
||||
"@glint/ember-tsc": "1.0.9",
|
||||
"@discourse/lint-configs": "2.43.0",
|
||||
"@glint/ember-tsc": "1.1.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",
|
||||
"eslint": "9.39.2",
|
||||
"prettier": "3.8.0",
|
||||
"stylelint": "17.0.0"
|
||||
"lint-to-the-future": "^2.6.4",
|
||||
"lint-to-the-future-eslint": "^3.3.0",
|
||||
"prettier": "3.8.1",
|
||||
"stylelint": "17.4.0"
|
||||
},
|
||||
"scripts": {
|
||||
"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: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:types": "ember-tsc -b"
|
||||
"lint:types": "ember-tsc -b",
|
||||
"lttf:ignore": "lint-to-the-future ignore"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 22",
|
||||
|
||||
Generated
+528
-379
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user