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 upWhy ES6's Template literals not support by Standard? #583
Comments
This comment has been minimized.
This comment has been minimized.
|
Your code will set the header to the string "${ms}ms", you need to use backticks (```) in order to use template strings. e.g. const ms = new Date() - start
ctx.set('X-Response-Time', `${ms}ms`) |
feross
closed this
Aug 10, 2016
This comment has been minimized.
This comment has been minimized.
|
ok,thanks |
dcousens
added
the
question
label
Aug 11, 2016
lock
bot
locked as resolved and limited conversation to collaborators
May 10, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
ole3021 commentedAug 10, 2016
Hi i'm new to standard, and i love its simple and powerful.
But i have a question
i have write code like
but i got the warning on first line: " 'ms' is defined but never used at xx col xx ";
I wonder why this warning happen? i think it should be now take as a warning ( in Eslint it is not);
and it's there have a way to ignore this kind of warning?
Best wishes.