Skip to content

Fix bug in sort-styles when props included shorthands #273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

draperunner
Copy link
Contributor

@draperunner draperunner commented Oct 2, 2020

If the style properties had a 'isEitherShorthand' case, it would return out of the whole checkIsSorted function instead of continuing the for loop. This caused some properties to not be reported as unsorted.

It would be sufficient to replace return with continue, but there was a ESLint rule disallowing the usage of continue.

I added a new test case for this scenario.

If the style properties had a 'isEitherShorthand' case, it would
return out of the whole checkIsSorted function instead of
continuing the for loop. This caused some properties to not be
reported as unsorted.
It would be sufficient to replace `return` with `continue`, but
there was a ESLint rule disallowing the usage of continue
@Intellicode Intellicode merged commit e99936a into Intellicode:master Nov 29, 2020
@Intellicode
Copy link
Owner

thanks @draperunner!

@draperunner draperunner deleted the fix-sort-case-including-shorthand branch November 29, 2020 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants