Open ismail-syed opened 7 years ago
Enforce consistent styling for ternary operators with multi line tsx.
Good
return onClick ? ( <button onClick={onClick} className={className} disabled={disabled}> {children} </button> ) : ( <UnstyledLink className={className} to={to} target={external ? '_blank' : ''} disabled={disabled}> {children} </UnstyledLink> );
Bad
Enforce consistent styling for ternary operators with multi line tsx.
Good
Bad