DEV: Update linting (#340)

This commit is contained in:
Jarek Radosz
2025-03-17 12:00:55 +00:00
committed by GitHub
parent 17d0f09ed1
commit 4e3521fd25
7 changed files with 1185 additions and 1323 deletions
@@ -1,6 +1,3 @@
import TopicListItem from "discourse/components/topic-list-item";
import discourseComputed from "discourse/lib/decorators";
import { withSilencedDeprecations } from "discourse/lib/deprecated";
import { withPluginApi } from "discourse/lib/plugin-api";
export default {
@@ -8,20 +5,6 @@ export default {
initialize() {
withPluginApi("1.39.0", (api) => {
// TODO: cvx - remove after the glimmer topic list transition
withSilencedDeprecations("discourse.hbr-topic-list-overrides", () => {
TopicListItem.reopen({
@discourseComputed()
unboundClassNames() {
let classList = this._super(...arguments);
if (this.topic.has_accepted_answer) {
classList += " status-solved";
}
return classList;
},
});
});
api.registerValueTransformer(
"topic-list-item-class",
({ value, context }) => {