Allow ternary

This commit is contained in:
Eric Bailey
2026-01-16 16:11:25 -06:00
parent 5622d522cf
commit 8f16625998
2 changed files with 6 additions and 2 deletions
+3
View File
@@ -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
+3 -2
View File
@@ -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],
)