Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const defaultOpts = (opts = {}) => {
const {
parser = 'babel',
fix = true,
fixCount = 2,
loadPlugins = loader.loadPlugins,
runPlugins = runner.runPlugins,
} = opts;
return {
...opts,
parser,
fix,
fixCount,
loadPlugins,
runPlugins,
};
};