From dafd3c3b47f116c6c1dc56cb18df614c11747733 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 6 Feb 2020 17:26:06 +0100 Subject: [PATCH] DEV: enforces no self-closing-void-elements (#8879) --- .template-lintrc.js | 4 ++-- app/assets/javascripts/admin/templates/badges-award.hbs | 2 +- .../admin/templates/components/admin-user-field-item.hbs | 2 +- .../templates/components/site-customization-change-field.hbs | 2 +- .../javascripts/admin/templates/components/tags-uploader.hbs | 2 +- .../admin/templates/components/watched-word-uploader.hbs | 2 +- .../javascripts/admin/templates/customize-colors-show.hbs | 2 +- .../javascripts/admin/templates/email-advanced-test.hbs | 4 ++-- app/assets/javascripts/admin/templates/permalinks.hbs | 2 +- .../javascripts/admin/templates/site-settings-category.hbs | 2 +- .../javascripts/admin/templates/user-tl3-requirements.hbs | 4 ++-- .../discourse/templates/components/avatar-uploader.hbs | 2 +- .../discourse/templates/components/backup-uploader.hbs | 2 +- .../discourse/templates/components/color-input.hbs | 2 +- .../discourse/templates/components/csv-uploader.hbs | 2 +- .../discourse/templates/components/emoji-uploader.hbs | 2 +- .../discourse/templates/components/image-uploader.hbs | 2 +- .../discourse/templates/components/images-uploader.hbs | 2 +- .../discourse/templates/components/tag-groups-form.hbs | 4 ++-- .../javascripts/discourse/templates/components/tag-info.hbs | 2 +- .../javascripts/discourse/templates/components/tag-list.hbs | 2 +- app/assets/javascripts/discourse/templates/groups/new.hbs | 2 +- app/assets/javascripts/discourse/templates/invites/show.hbs | 4 ++-- .../javascripts/discourse/templates/modal/jump-to-post.hbs | 2 +- app/assets/javascripts/discourse/templates/password-reset.hbs | 2 +- .../javascripts/discourse/templates/preferences/account.hbs | 4 ++-- .../discourse/templates/preferences/categories.hbs | 2 +- .../javascripts/discourse/templates/preferences/emails.hbs | 2 +- .../javascripts/discourse/templates/preferences/interface.hbs | 2 +- .../discourse/templates/preferences/notifications.hbs | 2 +- .../javascripts/discourse/templates/preferences/profile.hbs | 2 +- .../javascripts/discourse/templates/preferences/tags.hbs | 2 +- app/assets/javascripts/discourse/templates/tag-groups.hbs | 2 +- app/assets/javascripts/discourse/templates/tags/index.hbs | 2 +- .../discourse/templates/user-private-messages-tags.hbs | 2 +- .../wizard/templates/components/wizard-field-image.hbs | 2 +- lefthook.yml | 4 +++- 37 files changed, 45 insertions(+), 43 deletions(-) diff --git a/.template-lintrc.js b/.template-lintrc.js index d7b0d52d41a..6411efaf099 100644 --- a/.template-lintrc.js +++ b/.template-lintrc.js @@ -1,8 +1,8 @@ module.exports = { - extends: "recommended", + // extends: "recommended", ignore: ["**/*.raw"], rules: { - quotes: false + "self-closing-void-elements": true } }; diff --git a/app/assets/javascripts/admin/templates/badges-award.hbs b/app/assets/javascripts/admin/templates/badges-award.hbs index 423c40883c3..b13462bf33b 100644 --- a/app/assets/javascripts/admin/templates/badges-award.hbs +++ b/app/assets/javascripts/admin/templates/badges-award.hbs @@ -14,7 +14,7 @@

{{I18n 'admin.badges.mass_award.upload_csv'}}

- +