You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a prop that is declared using string literal. I expect that it should be sorted by its name and not by the single or double quote.
The way the props are compared doesn't take into account the quotes.
I expect that 'data-t': PropTypes.string.isRequired should be after children: PropTypes.node.isRequired.
classButtonextendsComponent{render(){const{children, ...restProps}=this.props;return(<button{...restProps}>{children}</button>);}}Button.propTypes={children: PropTypes.node.isRequired,'data-t': PropTypes.string.isRequired,// ESLint warning: Prop types declarations should be sorted alphabeticallyclassName: PropTypes.string,};
The text was updated successfully, but these errors were encountered:
I have a prop that is declared using string literal. I expect that it should be sorted by its name and not by the single or double quote.
The way the props are compared doesn't take into account the quotes.
I expect that
'data-t': PropTypes.string.isRequired
should be afterchildren: PropTypes.node.isRequired
.The text was updated successfully, but these errors were encountered: