typescript-eslint/no-misused-promises: how to handle Promise<void> in event handlers?
<button onClick={someAsyncFetchFunction} />Click</button>
This ESLint rule didn't squash the warning:
https://github.com/typescript-eslint/typescript-eslint/pull/4623
GitHub
feat(eslint-plugin): [no-misused-promises] add granular options wit...
PR Checklist
Addresses an existing issue: fixes #4619
That issue was marked as accepting prs
Steps in CONTRIBUTING.md were taken
Overview
Allows user configurations to provide an object contai...
2 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Brilliant @aether that worked – much appreciated!