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 found this weird issue where props were sorted automatically via the --fix option but the last one had a camel case.
The linter would then complain about the camel cased prop being expected before the other.
Adding the flag ignoreCase: true removed the error, but obviously that still means there is a bug somewhere.
The text was updated successfully, but these errors were encountered:
Marpfie
changed the title
react/jsx-sort-props gets confused when props are sorted properly but one has upperCase
react/jsx-sort-props gets confused when props are sorted with --fix but one has upperCase
Aug 14, 2019
Marpfie
changed the title
react/jsx-sort-props gets confused when props are sorted with --fix but one has upperCase
react/jsx-sort-props gets confused when props are sorted with --fix but one has camelCase
Aug 14, 2019
I found this weird issue where props were sorted automatically via the
--fix
option but the last one had a camel case.The linter would then complain about the camel cased prop being expected before the other.
Example:
The configuration for this was
Adding the flag
ignoreCase: true
removed the error, but obviously that still means there is a bug somewhere.The text was updated successfully, but these errors were encountered: