Skip to content

Consider using no-misused-promises and no-floating-promises ESLint rules #2732

Description

@acicovic

Is your feature request related to a problem?

We use promises in our code, and maybe the no-misused-promise and no-floating-promises ESLint rules could be useful for us.

Describe the solution you'd like

Add the above rules to .eslintrc, and see if it would be beneficial to use them.

Additional context

To be added in .eslintrc, under "rules":

"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/no-floating-promises": "error"

Activity

  1. added this to the Future Milestone milestone on Aug 26, 2024
  2. changed the title [-]Consider using no-misused-promise and no-floating-promises ESLint rules[/-] [+]Consider using no-misused-promises and no-floating-promises ESLint rules[/+] on Aug 26, 2024
  3. added theissue type on May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    wp-parselyRequired label for all issues

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions