FIX: template-lint uses strict rel-noopener rule which requires noreferrer (#9449)

FIX: template-lint uses strict rel-noopener rule which requires noreferrer (#9449)

diff --git a/.template-lintrc.js b/.template-lintrc.js
index b0a14bb..d7b4a10 100644
--- a/.template-lintrc.js
+++ b/.template-lintrc.js
@@ -10,7 +10,7 @@ module.exports = {
     "deprecated-render-helper": true,
     "require-valid-alt-text": false,
     "linebreak-style": true,
-    "link-rel-noopener": true,
+    "link-rel-noopener": "strict",
     "no-abstract-roles": true,
     "no-args-paths": true,
     "no-attrs-in-components": true,
@@ -43,7 +43,7 @@ module.exports = {
     "no-unnecessary-concat": true,
     "no-unnecessary-component-helper": true,
     "no-unused-block-params": true,
-    "quotes": "double",
+    quotes: "double",
     "require-button-type": true,
     "require-iframe-title": true,
     "require-valid-alt-text": false,
diff --git a/app/assets/javascripts/admin/templates/badges-index.hbs b/app/assets/javascripts/admin/templates/badges-index.hbs
index 7e2f21b..4f26fde 100644
--- a/app/assets/javascripts/admin/templates/badges-index.hbs
+++ b/app/assets/javascripts/admin/templates/badges-index.hbs
@@ -5,7 +5,7 @@
       <h1>{{i18n "admin.badges.badge_intro.title"}}</h1>
       <div class="external-resources">
         {{#each badgeIntroLinks as |link|}}
-          <a href={{link.href}} class="external-link" target="_blank" rel="noopener">
+          <a href={{link.href}} class="external-link" target="_blank" rel="noopener noreferrer">
             {{d-icon link.icon}}
             <span>{{i18n link.text}}</span>
           </a>
diff --git a/app/assets/javascripts/admin/templates/components/admin-report.hbs b/app/assets/javascripts/admin/templates/components/admin-report.hbs
index eeb7894..2aa3143 100644
--- a/app/assets/javascripts/admin/templates/components/admin-report.hbs
+++ b/app/assets/javascripts/admin/templates/components/admin-report.hbs
@@ -24,7 +24,7 @@
 
                 {{#if model.description}}
                   {{#if model.description_link}}
-                    <a target="_blank" rel="noopener" href={{model.description_link}} class="info" data-tooltip={{model.description}}>
+                    <a target="_blank" rel="noopener noreferrer" href={{model.description_link}} class="info" data-tooltip={{model.description}}>
                       {{d-icon "question-circle"}}
                     </a>
                   {{else}}
diff --git a/app/assets/javascripts/admin/templates/components/version-checks.hbs b/app/assets/javascripts/admin/templates/components/version-checks.hbs
index aa2fcc9..9471bcc 100644
--- a/app/assets/javascripts/admin/templates/components/version-checks.hbs
+++ b/app/assets/javascripts/admin/templates/components/version-checks.hbs
@@ -18,7 +18,7 @@
     {{#if versionCheck.gitLink}}
       <div class="sha-link">
         (
-        <a href={{versionCheck.gitLink}} rel="noopener" target="_blank">
+        <a href={{versionCheck.gitLink}} rel="noopener noreferrer" target="_blank">
           {{versionCheck.shortSha}}
         </a>
         )
diff --git a/app/assets/javascripts/admin/templates/customize-themes-edit.hbs b/app/assets/javascripts/admin/templates/customize-themes-edit.hbs
index 31ad084..a4e7fa5 100644
--- a/app/assets/javascripts/admin/templates/customize-themes-edit.hbs
+++ b/app/assets/javascripts/admin/templates/customize-themes-edit.hbs
@@ -15,7 +15,7 @@
     <div class="admin-footer">
       <div class="status-actions">
         {{#unless model.changed}}
-          <a href={{previewUrl}} rel="noopener" title={{i18n "admin.customize.explain_preview"}} class="preview-link" target="_blank">
+          <a href={{previewUrl}} rel="noopener noreferrer" title={{i18n "admin.customize.explain_preview"}} class="preview-link" target="_blank">
             {{i18n "admin.customize.preview"}}
           </a>
         {{/unless}}
diff --git a/app/assets/javascripts/admin/templates/customize-themes-index.hbs b/app/assets/javascripts/admin/templates/customize-themes-index.hbs
index 7402ef2..fd1914a 100644
--- a/app/assets/javascripts/admin/templates/customize-themes-index.hbs
+++ b/app/assets/javascripts/admin/templates/customize-themes-index.hbs
@@ -7,7 +7,7 @@
     </div>
     <div class="external-resources">
       {{#each externalResources as |resource|}}
-        <a href={{resource.link}} class="external-link" rel="noopener" target="_blank">
+        <a href={{resource.link}} class="external-link" rel="noopener noreferrer" target="_blank">
           {{d-icon resource.icon}}
           {{i18n resource.key}}
         </a>
diff --git a/app/assets/javascripts/admin/templates/customize-themes-show.hbs b/app/assets/javascripts/admin/templates/customize-themes-show.hbs
index 186cd9b..9f46d47 100644
--- a/app/assets/javascripts/admin/templates/customize-themes-show.hbs
+++ b/app/assets/javascripts/admin/templates/customize-themes-show.hbs
@@ -206,7 +206,7 @@
       <ul class="removable-list">
         {{#each model.uploads as |upload|}}
           <li>
-            <span class="col">${{upload.name}}: <a href={{upload.url}} rel="noopener" target="_blank">{{upload.filename}}</a></span>
+            <span class="col">${{upload.name}}: <a href={{upload.url}} rel="noopener noreferrer" target="_blank">{{upload.filename}}</a></span>
             <span class="col">
               {{d-button action=(action "removeUpload") actionParam=upload class="second btn-default btn-default cancel-edit" icon="times"}}
             </span>
@@ -241,8 +241,8 @@
     </div>
   {{/if}}
 
-  <a href={{previewUrl}} title={{i18n "admin.customize.explain_preview"}} rel="noopener" target="_blank" class="btn btn-default">{{d-icon "desktop"}}{{i18n "admin.customize.theme.preview"}}</a>
-  <a class="btn btn-default export" rel="noopener" target="_blank" href={{downloadUrl}}>{{d-icon "download"}} {{i18n "admin.export_json.button_text"}}</a>
+  <a href={{previewUrl}} title={{i18n "admin.customize.explain_preview"}} rel="noopener noreferrer" target="_blank" class="btn btn-default">{{d-icon "desktop"}}{{i18n "admin.customize.theme.preview"}}</a>
+  <a class="btn btn-default export" rel="noopener noreferrer" target="_blank" href={{downloadUrl}}>{{d-icon "download"}} {{i18n "admin.export_json.button_text"}}</a>
 
   {{d-button action=(action "switchType") label="admin.customize.theme.convert" icon=convertIcon class="btn-default btn-normal" title=convertTooltip}}
 
diff --git a/app/assets/javascripts/admin/templates/dashboard_general.hbs b/app/assets/javascripts/admin/templates/dashboard_general.hbs
index 2eca2b7..16214a9 100644
--- a/app/assets/javascripts/admin/templates/dashboard_general.hbs
+++ b/app/assets/javascripts/admin/templates/dashboard_general.hbs
@@ -121,7 +121,7 @@
             <div>
               <h4>{{i18n "admin.dashboard.discourse_last_updated"}} </h4>
               <p>{{format-date model.attributes.discourse_updated_at leaveAgo="true"}}</p>
-              <a rel="noopener" target="_blank" href={{model.attributes.release_notes_link}} class="btn btn-default">
+              <a rel="noopener noreferrer" target="_blank" href={{model.attributes.release_notes_link}} class="btn btn-default">
                 {{i18n "admin.dashboard.whats_new_in_discourse"}}
               </a>
             </div>
diff --git a/app/assets/javascripts/admin/templates/modal/admin-install-theme.hbs b/app/assets/javascripts/admin/templates/modal/admin-install-theme.hbs
index 6c8ab04..604befe 100644
--- a/app/assets/javascripts/admin/templates/modal/admin-install-theme.hbs
+++ b/app/assets/javascripts/admin/templates/modal/admin-install-theme.hbs
@@ -11,7 +11,7 @@
         {{#each themes as |theme|}}
           <div class="popular-theme-item">
             <div class="popular-theme-name">
-              <a href={{theme.meta_url}} rel="noopener" target="_blank">
+              <a href={{theme.meta_url}} rel="noopener noreferrer" target="_blank">
                 {{#if theme.component}}
                   {{d-icon "puzzle-piece" title="admin.customize.theme.component"}}
                 {{/if}}
@@ -33,7 +33,7 @@

[... diff too long, it was truncated ...]

GitHub sha: 98039e6c

This commit appears in #9449 which was merged by jjaffeux.