Skip to content

Commit

Permalink
DEV: Update linting (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq authored Nov 20, 2024
1 parent bff24e3 commit 3fa4416
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{featured-tiles category=category}}
{{featured-tiles category=this.category}}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

{{preference-checkbox
labelKey=(theme-prefix "preference_description")
checked=model.show_featured_topics_banner
checked=this.model.show_featured_topics_banner
}}
</div>
18 changes: 9 additions & 9 deletions javascripts/discourse/templates/components/featured-tile.hbs
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<a href={{url}}>
{{#if topic.thumbnails}}
<a href={{this.url}}>
{{#if this.topic.thumbnails}}
<img
src={{fallbackSrc}}
srcset={{srcset}}
width={{width}}
height={{height}}
src={{this.fallbackSrc}}
srcset={{this.srcset}}
width={{this.width}}
height={{this.height}}
loading="lazy"
class="topic-tile-thumbnail"
/>
{{/if}}

<div class="topic-info">
<span class="topic-title">{{topic.title}}</span>
<span class="topic-title">{{this.topic.title}}</span>
<span class="author">
{{#user-link user=topic.creator}}
{{avatar topic.creator imageSize="large"}}
{{#user-link user=this.topic.creator}}
{{avatar this.topic.creator imageSize="large"}}
{{/user-link}}
</span>
</div>
Expand Down
4 changes: 2 additions & 2 deletions javascripts/discourse/templates/components/featured-tiles.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#if shouldDisplay}}
{{#if this.shouldDisplay}}
<div class="featured-tiles-container">
{{#each filteredTopics as |topic|}}
{{#each this.filteredTopics as |topic|}}
{{featured-tile topic=topic}}
{{/each}}
</div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"devDependencies": {
"@discourse/lint-configs": "2.0.1",
"@discourse/lint-configs": "2.2.1",
"ember-template-lint": "6.0.0",
"eslint": "9.14.0",
"prettier": "2.8.8"
Expand Down
23 changes: 18 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3fa4416

Please sign in to comment.