Skip to content

Conversation

@arbrandes
Copy link
Contributor

@arbrandes arbrandes commented Dec 15, 2025

While I also prefer the nullish coalescing operator wherever possible, it is not strictly equivalent to the alternatives, and thus it should not be forced upon developers.

An example:

openedx/frontend-app-authn@aa5240f#r2619834128

While I also prefer the nullish coalescing operator wherever possible,
it is not strictly equivalent to the alternatives, and thus it should
not be forced upon developers.
Copy link
Contributor

@brian-smith-tcril brian-smith-tcril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. I didn't realize that rule handled thingThatCanBeFalsy || "thing when it is falsy" and not just thingThatCanBeFalsy ? thingThatCanBeFalsy : thing when it is falsy.

LGTM!

@arbrandes arbrandes merged commit 9fb4ef1 into openedx:main Dec 17, 2025
5 checks passed
@arbrandes arbrandes deleted the disable-nullish-coalescing branch December 17, 2025 16:40
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