Suggestion: enable `eol-last` rule for eslint and ember-template-lint

Its a general dev practice to add a newline at the end of the file as github always complains about it. My suggestion is to enable the eol-last rule for eslint and ember-template-lint. I see this code here which has it under a comment.

https://github.com/discourse/discourse/blob/dc6b547ed89f652b5406489d76140b76cf8e0d1d/.template-lintrc.js#L6

Thoughts @riking ?

2 Likes

Oops, I forgot about that one!

I put rules that had too many violations / diffs as “pending” while working on that file. So the way to see the explanation is to enable it and see what gets changed.

1 Like

There were only a handlful of errors, so I ended up fixing them and making a PR.
Also, Am I correct in thinking that the CI used the updated config to run the checks?
https://github.com/discourse/discourse/pull/12678

1 Like