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

chore: eslint config to catch floating-promises #728

Merged
merged 3 commits into from
Jan 17, 2025

Conversation

volodkevych
Copy link
Contributor

@volodkevych volodkevych commented Jan 16, 2025

Problem

Related to the bug: #725

Solution

Enable @typescript-eslint/no-floating-promises to catch similar cases in the future.

You can see, given the fix has not been merged yet, the build is failing: https://github.com/aws/language-servers/actions/runs/12808835517/job/35712403951?pr=728

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@volodkevych volodkevych force-pushed the eslint-config-floating-promises branch from c4444fe to f9ab988 Compare January 16, 2025 12:22
@volodkevych volodkevych marked this pull request as ready for review January 16, 2025 12:22
@volodkevych volodkevych requested a review from a team as a code owner January 16, 2025 12:22
volodkevych and others added 3 commits January 16, 2025 15:20
* chore(release): release packages from branch main

* chore: trigger github actions for release please

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ege Ozcan <[email protected]>
@volodkevych volodkevych force-pushed the eslint-config-floating-promises branch from 7718e0c to 8ef777b Compare January 16, 2025 14:20
rules: {
'import/no-nodejs-modules': 'warn',
'@typescript-eslint/no-floating-promises': 'error',
Copy link
Contributor

@natdurlik natdurlik Jan 17, 2025

Choose a reason for hiding this comment

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

Why not add these rules to the top-level .eslintrc.js for the entire monorepo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because it will generate much more failures. I started with the project where we develop and the rest (requires more work) needs to be handled as part of different task that I created.

@volodkevych volodkevych merged commit 1c38b0c into main Jan 17, 2025
6 checks passed
@volodkevych volodkevych deleted the eslint-config-floating-promises branch January 17, 2025 13:43
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.

3 participants