Allow passing async function to JSX attributes
The new default seems to be a bit too strict. [MAILPOET-5015]
This commit is contained in:
@ -83,6 +83,14 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
'import/no-default-export': 1, // no default exports
|
'import/no-default-export': 1, // no default exports
|
||||||
|
'@typescript-eslint/no-misused-promises': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
checksVoidReturn: {
|
||||||
|
attributes: false, // it is OK to pass an async function to JSX attributes
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user