- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 2.7k
 
Closed
Description
I just upgraded to v 7.21.4 And it seems this rule is not properly detecting the spacing in a couple places that had worked before this version. (The @typescript-eslint/indent I also have is working fine). I attached the photo where its not correctly noticing the spacing I have as it is fine as is and I am doing very similar types of spacing in my codebase where this rul is not complaining. This kinda exposed the fact it seems like I have redundant rules and can just rely on the @typescript-eslint rule but I figured I'd put this here anyways.

export const DKListingDetailItem = ({
  label,
  text,
  classNames = '',
  testid = '',
  children,
}: Props) => {
  const detail = typeof text === 'string'
    ? <p>{text}</p>
    // eslint-disable-next-line react/no-array-index-key
    : text.map((textDetail, i) => <p key={`textDetail${i}`}>{textDetail}</p>);
  return (
    <div
      className={`dk-listing-detail-item__section-container ${classNames}`.trim()}
      data-testid={testid}
    >
      <h4 className='dk-listing-detail-item__section-label'>{label}</h4>
      {detail}
      {children}
    </div>
  );
};
polyrainbow
Metadata
Metadata
Assignees
Labels
No labels