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
This commit is contained in:
Faizaan Gagan 2021-04-13 05:52:00 +05:30 committed by GitHub
parent abe588c2c8
commit c45dbe4159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 15 additions and 16 deletions

View File

@ -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",

View File

@ -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,

View File

@ -2,4 +2,4 @@
type="checkbox"
checked=checked
click=(action "onChange")
}}
}}

View File

@ -21,4 +21,4 @@
label="admin.user_fields.create"
icon="plus"}}
</div>
</div>

View File

@ -25,4 +25,4 @@
title=fullscreenTitle
ariaLabel=fullscreenTitle}}
{{/unless}}
</div>
</div>

View File

@ -4,4 +4,4 @@
{{message}}
</div>
</div>
{{/unless}}
{{/unless}}

View File

@ -1 +1 @@
{{tagRecord.id}}
{{tagRecord.id}}

View File

@ -13,4 +13,4 @@
{{/if}}
</h3>
</div>
{{/if}}
{{/if}}

View File

@ -2,4 +2,4 @@
<a href={{rootUrl}} aria-live="polite">
{{d-icon "redo"}} {{html-safe (i18n "software_update_prompt")}}
</a>
</div>
</div>

View File

@ -1 +1 @@
{{outlet}}
{{outlet}}

View File

@ -54,4 +54,4 @@
disabled=submitDisabled
label="topic.slow_mode_update.remove"}}
{{/if}}
</div>
</div>

View File

@ -104,4 +104,4 @@
{{plugin-outlet name="user-custom-controls" args=(hash model=model)}}
{{save-controls model=model action=(action "save") saved=saved}}
{{save-controls model=model action=(action "save") saved=saved}}

View File

@ -1,3 +1,3 @@
<div class="tag-group-content">
<p class="about">{{i18n "tagging.groups.about"}}</p>
</div>
</div>

View File

@ -1,3 +1,3 @@
{{#d-section pageClass="tags" tagName=""}}
{{outlet}}
{{/d-section}}
{{/d-section}}