Run new lint rules (#5413)
This commit is contained in:
@@ -22,7 +22,7 @@ export default function ({ types: t }) {
|
||||
if (bind.object) {
|
||||
bind.callee = t.sequenceExpression([
|
||||
t.assignmentExpression("=", tempId, bind.object),
|
||||
bind.callee
|
||||
bind.callee,
|
||||
]);
|
||||
} else {
|
||||
bind.callee.object = t.assignmentExpression("=", tempId, bind.callee.object);
|
||||
@@ -47,7 +47,7 @@ export default function ({ types: t }) {
|
||||
const { node, scope } = path;
|
||||
const context = inferBindContext(node, scope);
|
||||
path.replaceWith(t.callExpression(t.memberExpression(node.callee, t.identifier("bind")), [context]));
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user