Skip to content

fix: always add semi-colon for nullish coalesce - #176

Merged
43081j merged 1 commit into
mainfrom
jg/nullish-semis
Oct 19, 2026
Merged

43081j merged 1 commit into
mainfrom
jg/nullish-semis

Conversation

@43081j

@43081j 43081j commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Since we're converting from a complex expression (an if), the safest
option is to always add a semi-colon in the fixer.

Fixes #167.

Since we're converting from a complex expression (an `if`), the safest
option is to always add a semi-colon in the fixer.

Fixes #167.
@43081j
43081j merged commit 27ab908 into main Oct 19, 2026
3 checks passed
@43081j
43081j deleted the jg/nullish-semis branch October 19, 2026 20:35
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.

prefer-nullish-coalescing: fixer drops the semicolon, so the next line can merge into the assignment

1 participant