Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports.fix = ({path}) => {
replaceWith(path, path.get('property'));
};
module.exports.fix = ({path, varPath}) => {
replaceWith(varPath, path.node.id);
path.remove();
};
module.exports.fix = (path) => {
const [element] = path.node.elements;
replaceWith(path, element.argument);
};