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,