Skip to content

Commit

Permalink
Revert incorrect comment change
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue committed Nov 27, 2024
1 parent 2c54655 commit ade24b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/forbid-foreign-prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ module.exports = {
&& !ast.isAssignmentLHS(node)
&& !isAllowedAssignment(node)
)) || (
// @ts-expect-error: Literal is not a valid type
// @ts-expect-error: The JSXText type is not present in the estree type definitions
(node.property.type === 'Literal' || node.property.type === 'JSXText')
&& 'value' in node.property
&& node.property.value === 'propTypes'
Expand Down

0 comments on commit ade24b6

Please sign in to comment.