Skip to content

Commit 8e738fe

Browse files
committed
[Fix] prop-types: positives since upgrading typescript-eslint to v8
1 parent a2306e7 commit 8e738fe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/util/propTypes.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,8 +1044,10 @@ module.exports = function propTypesInstructions(context, components, utils) {
10441044
if (
10451045
node.parent
10461046
&& node.parent.callee
1047-
&& node.parent.typeParameters
1048-
&& node.parent.typeParameters.params
1047+
&& (
1048+
(node.parent.typeParameters && node.parent.typeParameters.params)
1049+
|| (node.parent.typeArguments && node.parent.typeArguments.params)
1050+
)
10491051
&& (
10501052
node.parent.callee.name === 'forwardRef' || (
10511053
node.parent.callee.object

0 commit comments

Comments
 (0)