Add an exception
This commit is contained in:
@@ -6,7 +6,6 @@ module.exports = {
|
||||
"react/react-in-jsx-scope": "off",
|
||||
"react/prop-types": "off",
|
||||
"react-hooks/exhaustive-deps": "off",
|
||||
"@typescript-eslint/no-misused-promises": "off",
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"react-refresh/only-export-components": "off",
|
||||
},
|
||||
|
||||
@@ -25,5 +25,20 @@ module.exports = {
|
||||
ignoreArrowShorthand: true,
|
||||
},
|
||||
],
|
||||
/*
|
||||
Allow async functions to be passed as JSX attributes expected to be
|
||||
functions that return void (typically onFoo event handlers).
|
||||
|
||||
This should be safe since we have registered global unhandled Promise
|
||||
handlers.
|
||||
*/
|
||||
"@typescript-eslint/no-misused-promises": [
|
||||
"error",
|
||||
{
|
||||
checksVoidReturn: {
|
||||
attributes: false,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user