javascript - Automatically convert string concatenation to template literals -


i have code base many strings built via string concatenation. there automated method replacing instances of string concatenation templates? example:

const = 'b ' + c; // becomes: const = `b ${c}`; 

a script-based solution awesome. editor plugin better. (i using visual studio code.)

this can done eslint. see rule: http://eslint.org/docs/rules/prefer-template.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -