You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add refactoring option to convert string concatenation to template literals #18267
Consider adding the refactoring option to turn a string concatenation
console.log("My name is "+firstName+" "+lastName+".");
to ES2015 template literals:
console.log(`My name is ${firstName}${lastName}.`);
Reacted by Kitson Kelly, Aluan Haddad, Frederic Morel, Sam, Steven, Miloš Lajtman, Ruslan Bikkinin, Daniel Derevjanik, Kerem Kat, Dave Holoway and 9 more
Activity
alex-kinokon commentedon May 7, 2018
Would you welcome a pull request for this?
mhegazy commentedon May 7, 2018
Yes.
alex-kinokon commentedon Jun 5, 2018
I definitely need some help on this one...
mhegazy commentedon Jun 6, 2018
I would look at https://github.com/Microsoft/TypeScript/blob/master/src/services/refactors/generateGetAccessorAndSetAccessor.ts for a reference
bigaru commentedon Nov 28, 2018
@glixlur is it okay for you?
If I would provide a PR for this issue
alex-kinokon commentedon Nov 28, 2018
Arooran Thanabalasingam (@bigaru) Yes!
complete interface stubbing for object literal
DanielRosenwasser commentedon Jan 3, 2020
Thanks Arooran Thanabalasingam (@bigaru)!