Skip to content

Commit

Permalink
style: code style change
Browse files Browse the repository at this point in the history
  • Loading branch information
developer-bandi committed Jan 16, 2024
1 parent a8fb30a commit c1c273c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/rules/prop-types.js
Expand Up @@ -196,8 +196,10 @@ module.exports = {
const argumentIsForwardRef = component.node.arguments && component.node.arguments[0].callee && component.node.arguments[0].callee.name === 'forwardRef';
if (componentIsMemo && argumentIsForwardRef) {
const forwardComponent = list.find(
(innerComponent) => innerComponent.node.range[0] === component.node.arguments[0].range[0]
&& innerComponent.node.range[0] === component.node.arguments[0].range[0]);
(innerComponent) => (
innerComponent.node.range[0] === component.node.arguments[0].range[0]
&& innerComponent.node.range[0] === component.node.arguments[0].range[0]
));

const isValidated = mustBeValidated(forwardComponent);
const isIgnorePropsValidation = forwardComponent.ignorePropsValidation;
Expand Down

0 comments on commit c1c273c

Please sign in to comment.