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
If .tsx files are exclusively used for React components, a workaround could be to be more strict in those files and apply typescript/member-ordering there.
Note that this will have some false positives, but it might be a pragmatic solution.
I'm not sure if this is a good idea though. A lot of codebases use .tsx for all TypeScript files, regardless if they contain JSX or not. When in doubt, we should maybe leave this turned off.
The text was updated successfully, but these errors were encountered:
The background is that
react/sort-prop-types
currently doesn't work for TypeScript prop types.If
.tsx
files are exclusively used for React components, a workaround could be to be more strict in those files and applytypescript/member-ordering
there.Note that this will have some false positives, but it might be a pragmatic solution.
I'm not sure if this is a good idea though. A lot of codebases use
.tsx
for all TypeScript files, regardless if they contain JSX or not. When in doubt, we should maybe leave this turned off.The text was updated successfully, but these errors were encountered: