wp-parsely
wp-parsely copied to clipboard
Consider using no-misused-promises and no-floating-promises ESLint rules
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"