Skip to content

Commit

Permalink
Make report an allow list
Browse files Browse the repository at this point in the history
  • Loading branch information
kanongil authored and Marsup committed Jan 15, 2024
1 parent aa39557 commit 61215b6
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions lib/modules/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,7 @@ const internals = {
],

report: [
2304, // Cannot find name
2345, // Argument type is not assignable to parameter type
2339, // Property does not exist on type
2540, // Cannot assign to readonly property
2322, // Type is not assignable to other type
2314, // Generic type requires type arguments
2554, // Expected arguments but got other
2559, // Type T has no properties in common with type U
2769, // No overload matches this call
2673, // Constructor of class is private
2674, // Constructor of class is protected
2820 // Type T is not assignable to type U. Did you mean V?
1005 // Syntax error
]
};

Expand Down Expand Up @@ -162,7 +151,7 @@ internals.ignore = function (diagnostic, expectedErrors) {
return true;
}

if (!internals.report.includes(diagnostic.code)) {
if (internals.report.includes(diagnostic.code)) {
return false;
}

Expand Down

0 comments on commit 61215b6

Please sign in to comment.