wp-parsely icon indicating copy to clipboard operation
wp-parsely copied to clipboard

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

Open acicovic opened this issue 6 months ago • 0 comments

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"

acicovic avatar Aug 26 '24 12:08 acicovic