prettier: Tagged template strings shouldn't be on a new line
I’m an ember
user, which uses tagged template strings for component testing. Normally, you’d write something that looks like:
this.render(hbs`
<p>Some stuff here</p>
{{some-handlebars-stuff}}
`);
For some reason, Prettier instead turns this into:
this.render(
hbs`
<p>Some stuff here</p>
{{some-handlebars-stuff}}
`
);
It doesn’t seem like this should be necessary based on line length… is there something I’m missing? Or is this an error on Prettier’s end?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 6
- Comments: 15 (6 by maintainers)
@bakkot I’d like
` `
's behaviour to be consistent with()
,{}
and[]
. For example:What do you think?
Both the first two examples now remain as is
I’m going to close this issue as it’s mostly solved.