Skip to content

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

DEV: Enable and fix the 'no-duplicate-attributes' lint

Kane York17211b940fc6
diff --git a/.template-lintrc.js b/.template-lintrc.js
index 41c0cd5e341..85a2b8381ea 100644
--- a/.template-lintrc.js
+++ b/.template-lintrc.js
@@ -16,7 +16,7 @@ module.exports = {
"no-args-paths": true,
"no-attrs-in-components": true,
"no-debugger": true,
- "no-duplicate-attributes": false,
+ "no-duplicate-attributes": true,
"no-extra-mut-helper-argument": true,
"no-html-comments": true,
"no-index-component-invocation": true,
diff --git a/app/assets/javascripts/discourse/templates/composer.hbs b/app/assets/javascripts/discourse/templates/composer.hbs
index f255cd5d4dc..e86aefbfe37 100644
--- a/app/assets/javascripts/discourse/templates/composer.hbs
+++ b/app/assets/javascripts/discourse/templates/composer.hbs
@@ -213,7 +213,7 @@
{{else}}
<div class='saving-text'>
{{#if model.createdPost}}
- {{i18n 'composer.saved'}} <a href class='permalink' href={{createdPost.url}} {{action "viewNewReply"}}>{{i18n 'composer.view_new_post'}}</a>
+ {{i18n 'composer.saved'}} <a class='permalink' href={{createdPost.url}} {{action "viewNewReply"}}>{{i18n 'composer.view_new_post'}}</a>
{{else}}
{{i18n 'composer.saving'}} {{loading-spinner size="small"}}
{{/if}}
diff --git a/app/assets/javascripts/discourse/templates/topic.hbs b/app/assets/javascripts/discourse/templates/topic.hbs
index 7b8c2d1b81e..c79b3da18a5 100644
--- a/app/assets/javascripts/discourse/templates/topic.hbs
+++ b/app/assets/javascripts/discourse/templates/topic.hbs
@@ -36,7 +36,6 @@
options=(hash
filterable=true
categoryId=buffered.category_id
- filterable=true
)
}}
{{/if}}