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 recently started receiving errors about my static propTypes being out of order. It looks like with the grouping logic, all static variables must be in alphabetical order. This causes my prop types to be forced down.
I've gotten around this by adding the following regex to my config which will push displayName, propTypes, and defaultProps to the top while allowing all other static methods to be below them.
Hello!
I recently started receiving errors about my
static propTypes
being out of order. It looks like with the grouping logic, allstatic
variables must be in alphabetical order. This causes my prop types to be forced down.I've gotten around this by adding the following regex to my config which will push displayName, propTypes, and defaultProps to the top while allowing all other static methods to be below them.
example error:
The text was updated successfully, but these errors were encountered: