Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict';
const traverse = require('@babel/traverse').default;
const {merge} = traverse.visitors;
const {generate} = require('@putout/engine-parser');
const runFix = require('./run-fix');
const {getPosition} = require('./get-position');
const shouldSkip = (a) => !a.parent;
module.exports = (pluginsToMerge, {fix, shebang, template}) => {
const mergeItems = [];
const pushed = {};
for (const {rule, plugin, msg, options} of pluginsToMerge) {
const {push, pull} = getStore(plugin, {
fix,
rule,
shebang,
'use strict';
const babelTraverse = require('@babel/traverse').default;
const {types} = require('@babel/types');
const {generate} = require('@putout/engine-parser');
const {merge} = babelTraverse.visitors;
module.exports = function superFind({rule, find, ast, options, template}) {
const pushItems = [];
const push = (a) => {
pushItems.push(a);
};
const returnItems = find(ast, {
traverse: traverse({rule, options, template}),
generate,
types,
push,
options,
});
return [