Skip to content

Commit a67122f

Browse files
DEV: Update linting (#65)
1 parent 6538eeb commit a67122f

File tree

15 files changed

+49
-36
lines changed

15 files changed

+49
-36
lines changed

javascripts/connectors/before-list-area/tc-right-sidebar.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{#if showSidebar}}
1+
{{#if this.showSidebar}}
22
<div class="tc-right-sidebar">
33
{{right-sidebar-blocks}}
44
</div>

javascripts/discourse/components/popular-tags.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ export default class PopularTags extends Component {
77
@service router;
88
@tracked topTags = null;
99

10+
willDestroy() {
11+
super.willDestroy(...arguments);
12+
this.topTags = null;
13+
}
14+
1015
get shouldShowBlock() {
1116
const currentRoute = this.router.currentRoute;
1217
const count = this.args?.params?.count || 10;
@@ -49,9 +54,4 @@ export default class PopularTags extends Component {
4954
displayInSpecificCategories.includes(categoryId)
5055
);
5156
}
52-
53-
willDestroy() {
54-
super.willDestroy(...arguments);
55-
this.topTags = null;
56-
}
5757
}

javascripts/discourse/components/subcategory-list.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ export default class SubcategoryList extends Component {
66
@service router;
77
@tracked parentCategory = null;
88

9+
willDestroy() {
10+
super.willDestroy(...arguments);
11+
this.parentCategory = null;
12+
}
13+
914
get shouldShowBlock() {
1015
const currentRoute = this.router.currentRoute;
1116

@@ -33,9 +38,4 @@ export default class SubcategoryList extends Component {
3338
displayInCategories.includes(parentCategoryId)
3439
);
3540
}
36-
37-
willDestroy() {
38-
super.willDestroy(...arguments);
39-
this.parentCategory = null;
40-
}
4141
}

javascripts/discourse/components/top-contributors.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ export default class TopContributors extends Component {
1717
});
1818
}
1919

20+
willDestroy() {
21+
super.willDestroy(...arguments);
22+
this.topContributors = null;
23+
}
24+
2025
get requestURL() {
2126
return `/directory_items.json?period=${this.period}&order=${this.order}&exclude_groups=${this.excludedGroupNames}&limit=${this.count}`;
2227
}
2328

2429
get viewAllUrl() {
2530
return `/u?order=${this.order}&period=${this.period}&exclude_groups=${this.excludedGroupNames}`;
2631
}
27-
28-
willDestroy() {
29-
super.willDestroy(...arguments);
30-
this.topContributors = null;
31-
}
3232
}

javascripts/discourse/templates/components/category-list.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<h3 class="category-list__heading">
2-
{{blockTitle}}
2+
{{this.blockTitle}}
33
</h3>
44

55
<div class="category-list__container">
6-
{{#each categoryList as |category|}}
6+
{{#each this.categoryList as |category|}}
77
<div class="category-list__category">
88
{{category-link category}}
99
</div>

javascripts/discourse/templates/components/category-topics.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
{{category-link category}}
1+
{{category-link this.category}}
22

33
<div class="category-topics--content">
4-
{{#each topics as |topic|}}
4+
{{#each this.topics as |topic|}}
55
<a href={{topic.url}} class="category-topics--topic">
66
{{html-safe (replace-emoji topic.fancy_title)}}
77
<span class="category-topics--posts-count">
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{html-safe params.content}}
1+
{{html-safe this.params.content}}

javascripts/discourse/templates/components/popular-tags.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
{{#if shouldShowBlock}}
1+
{{#if this.shouldShowBlock}}
22
<h3 class="popular-tags-heading">
33
{{theme-i18n "popular_tags.heading"}}
44
</h3>
55

66
<div class="popular-tags__container">
7-
{{#each topTags as |t|}}
7+
{{#each this.topTags as |t|}}
88
<a href="/tag/{{t}}" class="popular-tags__tag">
99
{{t}}
1010
</a>

javascripts/discourse/templates/components/recent-replies.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
</h3>
44

55
<div class="recent-replies--container">
6-
{{#each replies as |reply|}}
6+
{{#each this.replies as |reply|}}
77
<div class="recent-replies--reply">
88
<div class="recent-replies--col">
99
{{avatar reply imageSize="small"}}

javascripts/discourse/templates/components/right-sidebar-blocks.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<PluginOutlet @name="above-right-sidebar-blocks" />
22

3-
{{#each blocks as |block|}}
3+
{{#each this.blocks as |block|}}
44
<div class={{block.classNames}}>
55
{{component block.internalName params=block.parsedParams}}
66
</div>

0 commit comments

Comments
 (0)