Allow ternary
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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],
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user