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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid null coalescing and optional chaining #1905

Merged

Conversation

kriskowal
Copy link
Member

Agoric’s load generator test uses node -r esm which doesn’t support the ?? nor ?. operators.

This change introduces a lint rule to help us avoid this trip-fall and then ensures that existing packages pass the new rules.

@kriskowal kriskowal requested a review from erights December 19, 2023 00:11
Copy link
Contributor

@erights erights left a comment

Choose a reason for hiding this comment

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

Please leave TODOs or some such behind in these locations, as markers for what code should be restored to a more readable state when we can.

LGTM, thanks!

packages/bundle-source/src/is-entrypoint.js Outdated Show resolved Hide resolved
@kriskowal kriskowal force-pushed the kriskowal-avoid-null-coalescing-and-optional-chaining branch from c1e4983 to 3e689d2 Compare December 19, 2023 00:44
@kriskowal kriskowal force-pushed the kriskowal-avoid-null-coalescing-and-optional-chaining branch from 3e689d2 to 3355c04 Compare December 19, 2023 00:44
@kriskowal kriskowal merged commit 9a8ec30 into master Dec 19, 2023
14 checks passed
@kriskowal kriskowal deleted the kriskowal-avoid-null-coalescing-and-optional-chaining branch December 19, 2023 01:04
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