Skip to content

Commit 6ffce62

Browse files
committed
Add back // @ts-expect-error
1 parent 3c96ffb commit 6ffce62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/rules/forbid-foreign-prop-types.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ module.exports = {
109109
&& !ast.isAssignmentLHS(node)
110110
&& !isAllowedAssignment(node)
111111
)) || (
112+
// @ts-expect-error: Literal is not a valid type
112113
(node.property.type === 'Literal' || node.property.type === 'JSXText')
113114
&& 'value' in node.property
114115
&& node.property.value === 'propTypes'

0 commit comments

Comments
 (0)