Allow passing async function to JSX attributes

The new default seems to be a bit too strict.

[MAILPOET-5015]
This commit is contained in:
Jan Jakes
2023-03-23 10:04:47 +01:00
committed by Jan Jakeš
parent d902ec446c
commit a919275c24

View File

@ -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: [
{ {