Skip to content

A platform for community discussion. Free, open, simple.

DEV: enforces ember-template-lint: no-unused-block-params (#9138)

Joffrey JAFFEUX8612bfb1529e
diff --git a/.template-lintrc.js b/.template-lintrc.js
index f36c6313d2c..32bbe415edd 100644
--- a/.template-lintrc.js
+++ b/.template-lintrc.js
@@ -8,6 +8,7 @@ module.exports = {
"style-concatenation": true,
"no-invalid-interactive": true,
"link-rel-noopener": true,
- "no-unnecessary-concat": true
+ "no-unnecessary-concat": true,
+ "no-unused-block-params": true
}
};
diff --git a/app/assets/javascripts/admin/templates/components/admin-report-table.hbs b/app/assets/javascripts/admin/templates/components/admin-report-table.hbs
index f42189eb9a3..8188fb3abda 100644
--- a/app/assets/javascripts/admin/templates/components/admin-report-table.hbs
+++ b/app/assets/javascripts/admin/templates/components/admin-report-table.hbs
@@ -2,7 +2,7 @@
<thead>
<tr>
{{#if model.computedLabels}}
- {{#each model.computedLabels as |label index|}}
+ {{#each model.computedLabels as |label|}}
{{admin-report-table-header
showSortingUI=showSortingUI
currentSortDirection=sortDirection
diff --git a/app/assets/javascripts/discourse/templates/user/summary.hbs b/app/assets/javascripts/discourse/templates/user/summary.hbs
index e7d92afb828..b17c6b0254f 100644
--- a/app/assets/javascripts/discourse/templates/user/summary.hbs
+++ b/app/assets/javascripts/discourse/templates/user/summary.hbs
@@ -75,12 +75,12 @@
{{#user-summary-section title="top_links" class="links-section pull-left"}}
{{#if model.links.length}}
<ul>
+ {{!-- template-lint-disable --}}
{{#each model.links as |link|}}
<li>
- {{!-- template-lint-disable --}}
<a class='domain'
- href='{{unbound link.url}}'
- title='{{unbound link.title}}'
+ href={{unbound link.url}}
+ title={{unbound link.title}}
rel='noopener {{unless user.removeNoFollow 'nofollow ugc'}}'
target='_blank'>
{{shorten-url link.url}}