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", "extends": "eslint-config-discourse",
"rules": { "rules": {
"discourse-ember/global-ember": 2 "discourse-ember/global-ember": 2,
"eol-last": 2
}, },
"globals": { "globals": {
"moduleFor": "off", "moduleFor": "off",

View File

@ -2,12 +2,10 @@ module.exports = {
extends: "recommended", extends: "recommended",
ignore: ["**/*.raw"], ignore: ["**/*.raw"],
// Pending:
// "eol-last": "always",
rules: { rules: {
"block-indentation": true, "block-indentation": true,
"deprecated-render-helper": true, "deprecated-render-helper": true,
"eol-last": "always",
"linebreak-style": true, "linebreak-style": true,
"link-rel-noopener": "strict", "link-rel-noopener": "strict",
"no-abstract-roles": true, "no-abstract-roles": true,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -104,4 +104,4 @@
{{plugin-outlet name="user-custom-controls" args=(hash model=model)}} {{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"> <div class="tag-group-content">
<p class="about">{{i18n "tagging.groups.about"}}</p> <p class="about">{{i18n "tagging.groups.about"}}</p>
</div> </div>

View File

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