Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign uptabs should be allowed in template literal strings #1096
Comments
This comment has been minimized.
This comment has been minimized.
Yamboy1
commented
Apr 25, 2018
|
Why are you using tabs specifically? Why not indent it using spaces? |
This comment has been minimized.
This comment has been minimized.
|
Because I need tabs not spaces ;-) In this case it was a unit test validating tab-separated output from a function. But, more generally, a lint checker should not be checking anything at all inside a template literal string (except the code inside the |
This comment has been minimized.
This comment has been minimized.
I personally think that this is debatable. I see your point and use case, and it's definitely valid. But I also think that it might be hard to spot that when glancing over the file, and personally would prefer explicitly writing Just my 2¢ |
This comment has been minimized.
This comment has been minimized.
Yamboy1
commented
Apr 26, 2018
|
That was my thought as well |
This comment has been minimized.
This comment has been minimized.
|
@DarrenCook Does @LinusU's solution of using an explicit |

DarrenCook commentedMar 23, 2018
I'm getting "Unexpected tab character." complaints on the above string. I think specifying exact whitespace is one of the points of using template literals, so it should not be complaining?
Yeah, I've put:
at the top of the file and moved on. But that seems like overkill - a template literal string is the only place I can think that I would want tab characters.