We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c54655 commit ade24b6Copy full SHA for ade24b6
lib/rules/forbid-foreign-prop-types.js
@@ -109,7 +109,7 @@ module.exports = {
109
&& !ast.isAssignmentLHS(node)
110
&& !isAllowedAssignment(node)
111
)) || (
112
- // @ts-expect-error: Literal is not a valid type
+ // @ts-expect-error: The JSXText type is not present in the estree type definitions
113
(node.property.type === 'Literal' || node.property.type === 'JSXText')
114
&& 'value' in node.property
115
&& node.property.value === 'propTypes'
0 commit comments