mirror of
https://github.com/ente-io/ente.git
synced 2025-08-06 14:43:20 +00:00
Add an exception
This commit is contained in:
parent
a2e93489f2
commit
d2fd7dea97
@ -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,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user