diff --git a/eslint.config.mjs b/eslint.config.mjs index 26c8db13b6..a864bea059 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -207,6 +207,9 @@ export default defineConfig( {prefer: 'type-imports', fixStyle: 'inline-type-imports'}, ], '@typescript-eslint/no-require-imports': 'off', + '@typescript-eslint/no-unused-expressions': ['error', { + allowTernary: true, + }], /** * Maintain previous behavior - these are stricter in typescript-eslint * v8 `warn` ones are probably worth fixing. `off` ones are a bit too diff --git a/src/components/Dialog/index.web.tsx b/src/components/Dialog/index.web.tsx index 085d936c44..cf250faf79 100644 --- a/src/components/Dialog/index.web.tsx +++ b/src/components/Dialog/index.web.tsx @@ -80,8 +80,9 @@ export function Outer({ ) const handleBackgroundPress = React.useCallback( - async (e: GestureResponderEvent) => - webOptions?.onBackgroundPress ? webOptions.onBackgroundPress(e) : close(), + async (e: GestureResponderEvent) => { + webOptions?.onBackgroundPress ? webOptions.onBackgroundPress(e) : close() + }, [webOptions, close], )