Inconsistent code style of template literals
sapegin opened this issue · comments
Artem Sapegin commented
In some places you put spaces inside curly braces:
const message = `The sum of ${ input.join(`+`) } is ${ sum }`
but in others you don’t:
const summary = `${units}x ${name} ($${unitPrice}) = $${totalPrice}`
Nicolás Bevacqua commented
I'm guessing you wouldn't be up to contribute a fix for this? I prefer spaces everywhere 👍
Artem Sapegin commented
Any ideas how to automate it and won’t make a lot of mistakes? ;-)
Artem Sapegin commented
Actually you don’t have a lot of them and most already have spaces. I’ll send a PR ;-)
Nicolás Bevacqua commented
❤️!