$ cnpm 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. Merged to @putout/plugin-parens.
npm i @putout/plugin-add-missing-parens
{
"rules": {
"add-missing-parens": "on"
}
}
getConsoleLog?.()``;
String?.raw``;
String?.raw!``;
await asyncFn()?.filter((x) => x);
(getConsoleLog?.())``;
(String?.raw)``;
String?.raw!``;
(await asyncFn())?.filter((x) => x);
MIT
Copyright 2013 - present © cnpmjs.org | Home |