Adjust options for @typescript-eslint/no-misused-promises
to allow promises as JSX attributes
#15
Labels
@typescript-eslint/no-misused-promises
to allow promises as JSX attributes
#15
We are currently using the default options of this recommended rule
@typescript-eslint/no-misused-promises
, but it results in errors trying to pass functions that return promises as React props to components that are only expecting a() => void
type, including built in React event handlers likeonClick
.This fix for this is to update the options for the rule disable checking void returns for attributes like this:
The text was updated successfully, but these errors were encountered: