enable eol-last for eslint and ember-template-lint (#12678)

enable eol-last for eslint and ember-template-lint (#12678)

enable eol-last for eslint and ember-template-lint

Fixed a handlful of .hbs files where newlines weren’t present

diff --git a/.eslintrc b/.eslintrc
index e05e8de..8706c9f 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -1,7 +1,8 @@
 {
   "extends": "eslint-config-discourse",
   "rules": {
-    "discourse-ember/global-ember": 2
+    "discourse-ember/global-ember": 2,
+    "eol-last": 2
   },
   "globals": {
     "moduleFor": "off",
diff --git a/.template-lintrc.js b/.template-lintrc.js
index 9148dda..66890f8 100644
--- a/.template-lintrc.js
+++ b/.template-lintrc.js
@@ -2,12 +2,10 @@ module.exports = {
   extends: "recommended",
   ignore: ["**/*.raw"],
 
-  // Pending:
-  // "eol-last": "always",
-
   rules: {
     "block-indentation": true,
     "deprecated-render-helper": true,
+    "eol-last": "always",
     "linebreak-style": true,
     "link-rel-noopener": "strict",
     "no-abstract-roles": true,
diff --git a/app/assets/javascripts/admin/addon/templates/components/report-filters/bool.hbs b/app/assets/javascripts/admin/addon/templates/components/report-filters/bool.hbs
index 4d96755..de106ad 100644
--- a/app/assets/javascripts/admin/addon/templates/components/report-filters/bool.hbs
+++ b/app/assets/javascripts/admin/addon/templates/components/report-filters/bool.hbs
@@ -2,4 +2,4 @@
   type="checkbox"
   checked=checked
   click=(action "onChange")
-}}
\ No newline at end of file
+}}
diff --git a/app/assets/javascripts/admin/addon/templates/user-fields.hbs b/app/assets/javascripts/admin/addon/templates/user-fields.hbs
index ed0c5ba..a14119e 100644
--- a/app/assets/javascripts/admin/addon/templates/user-fields.hbs
+++ b/app/assets/javascripts/admin/addon/templates/user-fields.hbs
@@ -21,4 +21,4 @@
              label="admin.user_fields.create"
              icon="plus"}}
 
-</div>
\ No newline at end of file
+</div>
diff --git a/app/assets/javascripts/discourse/app/templates/components/composer-toggles.hbs b/app/assets/javascripts/discourse/app/templates/components/composer-toggles.hbs
index 6e115b2..4325365 100644
--- a/app/assets/javascripts/discourse/app/templates/components/composer-toggles.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/composer-toggles.hbs
@@ -25,4 +25,4 @@
       title=fullscreenTitle
       ariaLabel=fullscreenTitle}}
   {{/unless}}
-</div>
\ No newline at end of file
+</div>
diff --git a/app/assets/javascripts/discourse/app/templates/components/create-topics-notice.hbs b/app/assets/javascripts/discourse/app/templates/components/create-topics-notice.hbs
index af83ebb..fa23799 100644
--- a/app/assets/javascripts/discourse/app/templates/components/create-topics-notice.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/create-topics-notice.hbs
@@ -4,4 +4,4 @@
       {{message}}
     </div>
   </div>
-{{/unless}}
\ No newline at end of file
+{{/unless}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/discourse-tag-bound.hbs b/app/assets/javascripts/discourse/app/templates/components/discourse-tag-bound.hbs
index d7eb83a..2285c9e 100644
--- a/app/assets/javascripts/discourse/app/templates/components/discourse-tag-bound.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/discourse-tag-bound.hbs
@@ -1 +1 @@
-{{tagRecord.id}}
\ No newline at end of file
+{{tagRecord.id}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/slow-mode-info.hbs b/app/assets/javascripts/discourse/app/templates/components/slow-mode-info.hbs
index 21ae5a3..530ead3 100644
--- a/app/assets/javascripts/discourse/app/templates/components/slow-mode-info.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/slow-mode-info.hbs
@@ -13,4 +13,4 @@
       {{/if}}
     </h3>
   </div>
-{{/if}}
\ No newline at end of file
+{{/if}}
diff --git a/app/assets/javascripts/discourse/app/templates/components/software-update-prompt.hbs b/app/assets/javascripts/discourse/app/templates/components/software-update-prompt.hbs
index 0186225..617ffe7 100644
--- a/app/assets/javascripts/discourse/app/templates/components/software-update-prompt.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/software-update-prompt.hbs
@@ -2,4 +2,4 @@
   <a href={{rootUrl}} aria-live="polite">
     {{d-icon "redo"}} {{html-safe (i18n "software_update_prompt")}}
   </a>
-</div>
\ No newline at end of file
+</div>
diff --git a/app/assets/javascripts/discourse/app/templates/invites.hbs b/app/assets/javascripts/discourse/app/templates/invites.hbs
index e2147ca..c24cd68 100644
--- a/app/assets/javascripts/discourse/app/templates/invites.hbs
+++ b/app/assets/javascripts/discourse/app/templates/invites.hbs
@@ -1 +1 @@
-{{outlet}}
\ No newline at end of file
+{{outlet}}
diff --git a/app/assets/javascripts/discourse/app/templates/modal/edit-slow-mode.hbs b/app/assets/javascripts/discourse/app/templates/modal/edit-slow-mode.hbs
index fdf231d..19f54b2 100644
--- a/app/assets/javascripts/discourse/app/templates/modal/edit-slow-mode.hbs
+++ b/app/assets/javascripts/discourse/app/templates/modal/edit-slow-mode.hbs
@@ -54,4 +54,4 @@
                disabled=submitDisabled
                label="topic.slow_mode_update.remove"}}
   {{/if}}
-</div>
\ No newline at end of file
+</div>
diff --git a/app/assets/javascripts/discourse/app/templates/preferences/profile.hbs b/app/assets/javascripts/discourse/app/templates/preferences/profile.hbs
index 66e2a81..d83d631 100644
--- a/app/assets/javascripts/discourse/app/templates/preferences/profile.hbs
+++ b/app/assets/javascripts/discourse/app/templates/preferences/profile.hbs
@@ -104,4 +104,4 @@
 
 {{plugin-outlet name="user-custom-controls" args=(hash model=model)}}
 
-{{save-controls model=model action=(action "save") saved=saved}}
\ No newline at end of file
+{{save-controls model=model action=(action "save") saved=saved}}
diff --git a/app/assets/javascripts/discourse/app/templates/tag-groups-index.hbs b/app/assets/javascripts/discourse/app/templates/tag-groups-index.hbs
index 51a1f5a..937ff10 100644
--- a/app/assets/javascripts/discourse/app/templates/tag-groups-index.hbs
+++ b/app/assets/javascripts/discourse/app/templates/tag-groups-index.hbs
@@ -1,3 +1,3 @@
 <div class="tag-group-content">
   <p class="about">{{i18n "tagging.groups.about"}}</p>
-</div>
\ No newline at end of file
+</div>
diff --git a/app/assets/javascripts/discourse/app/templates/tags.hbs b/app/assets/javascripts/discourse/app/templates/tags.hbs
index 471f92a..f1017e6 100644
--- a/app/assets/javascripts/discourse/app/templates/tags.hbs
+++ b/app/assets/javascripts/discourse/app/templates/tags.hbs
@@ -1,3 +1,3 @@
 {{#d-section pageClass="tags" tagName=""}}
   {{outlet}}
-{{/d-section}}
\ No newline at end of file
+{{/d-section}}

GitHub sha: c45dbe41

This commit appears in #12678 which was approved by riking. It was merged by riking.