mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 12:42:16 +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",
|
||||
"rules": {
|
||||
"discourse-ember/global-ember": 2
|
||||
"discourse-ember/global-ember": 2,
|
||||
"eol-last": 2
|
||||
},
|
||||
"globals": {
|
||||
"moduleFor": "off",
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
type="checkbox"
|
||||
checked=checked
|
||||
click=(action "onChange")
|
||||
}}
|
||||
}}
|
||||
|
|
|
@ -21,4 +21,4 @@
|
|||
label="admin.user_fields.create"
|
||||
icon="plus"}}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -25,4 +25,4 @@
|
|||
title=fullscreenTitle
|
||||
ariaLabel=fullscreenTitle}}
|
||||
{{/unless}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
{{message}}
|
||||
</div>
|
||||
</div>
|
||||
{{/unless}}
|
||||
{{/unless}}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{{tagRecord.id}}
|
||||
{{tagRecord.id}}
|
||||
|
|
|
@ -13,4 +13,4 @@
|
|||
{{/if}}
|
||||
</h3>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
<a href={{rootUrl}} aria-live="polite">
|
||||
{{d-icon "redo"}} {{html-safe (i18n "software_update_prompt")}}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1 +1 @@
|
|||
{{outlet}}
|
||||
{{outlet}}
|
||||
|
|
|
@ -54,4 +54,4 @@
|
|||
disabled=submitDisabled
|
||||
label="topic.slow_mode_update.remove"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<div class="tag-group-content">
|
||||
<p class="about">{{i18n "tagging.groups.about"}}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{{#d-section pageClass="tags" tagName=""}}
|
||||
{{outlet}}
|
||||
{{/d-section}}
|
||||
{{/d-section}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user