Open boris-petrov opened 4 years ago
Ya, we should probably disable that rule for inline templates.
So if #35 goes in and the template-linter has access to the filePath for inline templates, we could either:
insert_final_newline = false
for some pattern **/tests/**/*.js
or something (since editorconfig
is the default config for the rule now)eol-last
rule directly to use the filePath and ignore any .js
I think the rule should be aware that the file path is not .hbs
and allow relaxing the rule. You could probably do that with overrides already.
yeah, overrides would work. although #35 / (fixing #40) still needed, b/c it is hard to do overrides without the filePath right now
I use inline templates only in tests and there I have something like:
And ESLint complains:
Putting an
\n
at the end doesn't seem to silence it. Besides, I don't want to do that in all places. Apart from having a different config for ESLint's template linting, can something be done in the plugin?