We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d521d7 commit ea0ac9eCopy full SHA for ea0ac9e
packages/tsl-dx/src/rules/nullish.ts
@@ -47,6 +47,7 @@ export const nullish = defineRule((options?: nullishOptions) => ({
47
});
48
},
49
BinaryExpression(ctx, node) {
50
+ if (node.getSourceFile().isDeclarationFile) return;
51
const newOperatorText = match(node.operatorToken.kind)
52
.with(SyntaxKind.EqualsEqualsEqualsToken, () => "==")
53
.with(SyntaxKind.ExclamationEqualsEqualsToken, () => "!=")
0 commit comments