-
Notifications
You must be signed in to change notification settings - Fork 358
Closed
Description
hello (/** @type {string} */ (a), b);becames:
hello/** @type {string} */(b, a, b);After:
export default function transformer(file, api) {
const j = api.jscodeshift;
return j(file.source)
.find(j.CallExpression)
.forEach(path => {
const [, arg] = path.node.arguments;
path.node.arguments.unshift(arg);
})
.toSource();
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels