Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

[bug] fixed sort-imports rule (closes #363) #364

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

worldlee78
Copy link

Discovered that 'none' option is being skipped when sorting, as the enum evaluates to 0 which is considered false, so it is not added to the sort order. This allows a bug that will falsely say that 'none' must come before 'all' even when 'none' is the first value.

Lee Vaughn-Ogin added 2 commits December 5, 2018 17:29
… because 'none' evaluates to 0 and 0 is false. The statement should instead check that memberSyntaxTypeMap[t] is actually undefined instead of checking to see if it evaluates to false.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant