Run new lint rules (#5413)
This commit is contained in:
@@ -22,7 +22,7 @@ export default function (opts: {
|
||||
const expr = path.node.expression;
|
||||
if (!isAssignment(expr)) return;
|
||||
|
||||
const nodes = [];
|
||||
const nodes = [];
|
||||
const exploded = explode(expr.left, nodes, file, path.scope, true);
|
||||
|
||||
nodes.push(t.expressionStatement(
|
||||
@@ -36,7 +36,7 @@ export default function (opts: {
|
||||
const { node, scope } = path;
|
||||
if (!isAssignment(node)) return;
|
||||
|
||||
const nodes = [];
|
||||
const nodes = [];
|
||||
const exploded = explode(node.left, nodes, file, scope);
|
||||
nodes.push(buildAssignment(exploded.ref, opts.build(exploded.uid, node.right)));
|
||||
path.replaceWithMultiple(nodes);
|
||||
|
||||
Reference in New Issue
Block a user