enable prefer const (#5113)
This commit is contained in:
@@ -2,7 +2,7 @@ export default function ({ types: t }) {
|
||||
return {
|
||||
visitor: {
|
||||
BinaryExpression(path) {
|
||||
let { node } = path;
|
||||
const { node } = path;
|
||||
if (node.operator === "instanceof") {
|
||||
path.replaceWith(t.callExpression(this.addHelper("instanceof"), [node.left, node.right]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user