Skip to content

Commit

Permalink
test: narrow disabled lines of eslint no-invalid-this
Browse files Browse the repository at this point in the history
  • Loading branch information
teppeis committed Aug 4, 2019
1 parent 04e3e34 commit f25fc46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/visitor.ts
@@ -1,11 +1,11 @@
/* eslint-disable no-invalid-this */
import { EstraverseController } from "estraverse-fb";
import { Identifier, JSXIdentifier, JSXMemberExpression, MemberExpression, Node } from "estree-jsx";

/**
* Visitor for estraverse.
*/
export function leave(this: EstraverseController, node: Node, uses: UsedNamespace[]) {
/* eslint-disable no-invalid-this */
switch (node.type) {
case "MemberExpression":
case "JSXMemberExpression":
Expand All @@ -28,6 +28,7 @@ export function leave(this: EstraverseController, node: Node, uses: UsedNamespac
default:
break;
}
/* eslint-enable no-invalid-this */
}

function nonNullable<T>(value: T): NonNullable<T> {
Expand Down

0 comments on commit f25fc46

Please sign in to comment.