Eslint updates (#1281)
* eslint: Update eslintrc
* eslint: Strings must use singlequote quotes
* eslint: expected { after if-condition
* eslint: update warnings
* a little cleanup
* remove conflicted file
---------
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: Paul Frazee <pfrazee@gmail.com>
This commit is contained in:
@@ -3,10 +3,12 @@ import {AlertButton, AlertStatic} from 'react-native'
|
||||
class WebAlert implements Pick<AlertStatic, 'alert'> {
|
||||
public alert(title: string, message?: string, buttons?: AlertButton[]): void {
|
||||
if (buttons === undefined || buttons.length === 0) {
|
||||
// eslint-disable-next-line no-alert
|
||||
window.alert([title, message].filter(Boolean).join('\n'))
|
||||
return
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-alert
|
||||
const result = window.confirm([title, message].filter(Boolean).join('\n'))
|
||||
|
||||
if (result === true) {
|
||||
|
||||
Reference in New Issue
Block a user