Skip to content

Not sure how to handle/fix "template must end with newline" #33

@boris-petrov

Description

@boris-petrov

I use inline templates only in tests and there I have something like:

await render(hbs`{{some-component this.someValue}}`);

And ESLint complains:

13:18  error  1 error(s): template must end with newline  hbs/check-hbs-template-literals

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions