mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:44:49 +08:00
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:
parent
abe588c2c8
commit
c45dbe4159
|
@ -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",
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
checked=checked
|
checked=checked
|
||||||
click=(action "onChange")
|
click=(action "onChange")
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -21,4 +21,4 @@
|
||||||
label="admin.user_fields.create"
|
label="admin.user_fields.create"
|
||||||
icon="plus"}}
|
icon="plus"}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -25,4 +25,4 @@
|
||||||
title=fullscreenTitle
|
title=fullscreenTitle
|
||||||
ariaLabel=fullscreenTitle}}
|
ariaLabel=fullscreenTitle}}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,4 +4,4 @@
|
||||||
{{message}}
|
{{message}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{{tagRecord.id}}
|
{{tagRecord.id}}
|
||||||
|
|
|
@ -13,4 +13,4 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{{outlet}}
|
{{outlet}}
|
||||||
|
|
|
@ -54,4 +54,4 @@
|
||||||
disabled=submitDisabled
|
disabled=submitDisabled
|
||||||
label="topic.slow_mode_update.remove"}}
|
label="topic.slow_mode_update.remove"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{{#d-section pageClass="tags" tagName=""}}
|
{{#d-section pageClass="tags" tagName=""}}
|
||||||
{{outlet}}
|
{{outlet}}
|
||||||
{{/d-section}}
|
{{/d-section}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user