Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

fix(rome_js_analyze): handle default clause in useSingleCaseStetement #4069

Merged
merged 1 commit into from
Feb 15, 2023
Merged

fix(rome_js_analyze): handle default clause in useSingleCaseStetement #4069

merged 1 commit into from
Feb 15, 2023

Conversation

Conaclos
Copy link
Contributor

Summary

Closes #4068.
I also updated the diagnostic for better consistency with other rules.

By the way, the rule should certainly be renamed to useSingleSwitchClauseStatement.
Unfortunately, this is a stable rule.

I personally could rather deprecate the rule, once noSwitchDeclarations becomes merged or stable.

Test Plan

New Unit test for default switch clauses.

Documentation

  • The PR requires documentation
  • I will create a new PR to update the documentation

@netlify
Copy link

netlify bot commented Dec 17, 2022

Deploy Preview for docs-rometools canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit a027703
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/63ed422c8ec57300083da2fc

@Conaclos Conaclos requested review from leops and removed request for xunilrj and ematipico December 19, 2022 22:03
@github-actions
Copy link

github-actions bot commented Jan 3, 2023

This PR is stale because it has been open 14 days with no activity.

@Conaclos Conaclos removed the S-Stale label Feb 13, 2023
@Conaclos Conaclos requested review from ematipico and removed request for leops February 14, 2023 21:55
@Conaclos Conaclos added this pull request to the merge queue Feb 15, 2023
Merged via the queue into rome:main with commit 972f540 Feb 15, 2023
@Conaclos Conaclos deleted the use_single_default_statement branch February 15, 2023 22:36
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.

📎 useSingleCaseStatement should handle default clauses
3 participants