Skip to content

Commit fdc31ba

Browse files
author
Orta Therox
authored
Fix types in the boolean trivial lint rule (microsoft#44801)
1 parent f47ddbc commit fdc31ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/eslint/rules/boolean-trivia.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export = createRule({
2323
const sourceCodeText = sourceCode.getText();
2424

2525
const isSetOrAssert = (name: string): boolean => name.startsWith("set") || name.startsWith("assert");
26-
const isTrivia = (node: TSESTree.CallExpressionArgument): boolean => {
26+
const isTrivia = (node: TSESTree.Node): boolean => {
2727
if (node.type === AST_NODE_TYPES.Identifier) {
2828
return node.name === "undefined";
2929
}
@@ -69,7 +69,7 @@ export = createRule({
6969
return false;
7070
};
7171

72-
const checkArg = (node: TSESTree.CallExpressionArgument): void => {
72+
const checkArg = (node: TSESTree.Node): void => {
7373
if (!isTrivia(node)) {
7474
return;
7575
}

0 commit comments

Comments
 (0)