$ npm install @putout/plugin-add-missing-parens
The JavaScript exception "tagged template cannot be used with optional chain" occurs when the tag expression of a tagged template literal is an optional chain, or if there's an optional chain between the tag and the template.
(c) MDN
🐊Putout plugin adds ability to add missing parens. Check out in 🐊Putout Editor.
npm i @putout/plugin-add-missing-parens
{
"rules": {
"add-missing-parens": "on"
}
}
getConsoleLog?.()``;
String?.raw``;
String?.raw!``;
(getConsoleLog?.())``;
(String?.raw)``;
String?.raw!``;
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE