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

lint error on floating promises #8198

Merged
merged 3 commits into from
Aug 15, 2023
Merged

lint error on floating promises #8198

merged 3 commits into from
Aug 15, 2023

Conversation

turadg
Copy link
Member

@turadg turadg commented Aug 15, 2023

closes: #7888

Description

Since #8058 it's been enabled in CI. (#8061 will consolidate the two jobs into one, but that's outside the scope of this issue).

This PR enables it outside CI too (so that it always has type info and always warns on floating promisees).

Then it upgrades the warn to an error and suppresses the rule in all files that don't yet comply. It's separate work to resolve all of those: #6000.

Security Considerations

--

Scaling Considerations

--

Documentation Considerations

Notify developers of the new error and that their IDE and local lint output will no emit warnings.

Testing Considerations

CI

Upgrade Considerations

n/a

@turadg turadg enabled auto-merge August 15, 2023 21:13
@turadg turadg added this pull request to the merge queue Aug 15, 2023
Copy link
Contributor

@raphdev raphdev left a comment

Choose a reason for hiding this comment

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

Approving as we discussed offline. The rule is in a state where it's feasible to run locally and we can start addressing.

Merged via the queue into master with commit eb7e9eb Aug 15, 2023
65 of 67 checks passed
@turadg turadg deleted the 7888-error-floating-promises branch August 15, 2023 22:04
@turadg turadg mentioned this pull request Aug 22, 2023
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.

Enable an equivalent of no-floating-promises to run as error in every lint run
2 participants