Navigation Menu

Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(no-if): support switch statements #515

Merged
merged 1 commit into from Jan 12, 2020
Merged

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Jan 12, 2020

@SimenB I think it might be worth refactoring this into no-conditional-expect at some point 馃

Looking over no-try-expect, I'm pretty sure they're doing almost the exact same thing - I'm going to look to reimplement one of these two rules so that they at least use the same style (one pushes booleans into an array, the other nodes, or something like that 馃し鈥嶁檪 )

Fixes #505

@SimenB
Copy link
Member

SimenB commented Jan 12, 2020

@SimenB I think it might be worth refactoring this into no-conditional-expect at some point 馃

Yeah, I think I brought that up at some point

@G-Rath
Copy link
Collaborator Author

G-Rath commented Jan 12, 2020

Yeah, I think I brought that up at some point

Yeah I think you did actually - I'll add it to my todo list for next weekend :)

@G-Rath G-Rath merged commit be4e49d into master Jan 12, 2020
@G-Rath G-Rath deleted the support-switch-in-no-if branch January 12, 2020 11:28
@SimenB
Copy link
Member

SimenB commented Jan 12, 2020

#482, almost

github-actions bot pushed a commit that referenced this pull request Jan 12, 2020
# [23.6.0](v23.5.0...v23.6.0) (2020-01-12)

### Features

* **no-if:** support `switch` statements ([#515](#515)) ([be4e49d](be4e49d))
@github-actions
Copy link

馃帀 This PR is included in version 23.6.0 馃帀

The release is available on:

Your semantic-release bot 馃摝馃殌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[no-if] Request no switch cases ([no-switch] ?)
2 participants