chore: upgrade eslint and prettier (#2376)
* chore: upgrade eslint and prettier * chore: add restrict-template-expressions
This commit is contained in:
@@ -45,13 +45,13 @@
|
||||
"@typescript-eslint/parser": "*",
|
||||
"babel-jest": "^29.3.1",
|
||||
"detox": "^20.0.3",
|
||||
"eslint": "^8.27.0",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"eslint": "*",
|
||||
"eslint-plugin-prettier": "*",
|
||||
"get-yarn-workspaces": "^1.0.2",
|
||||
"metro-react-native-babel-preset": "^0.76.7",
|
||||
"npm-check-updates": "*",
|
||||
"pod-install": "^0.1.38",
|
||||
"prettier": "^2.7.1",
|
||||
"prettier": "*",
|
||||
"prettier-plugin-organize-imports": "^3.2.0",
|
||||
"react": "18.2.0",
|
||||
"react-native": "0.72.3",
|
||||
|
||||
@@ -2,7 +2,10 @@ import { DatabaseItemMetadata, isNotUndefined, TransferPayload } from '@standard
|
||||
import { FlashKeyValueStore } from './FlashKeyValueStore'
|
||||
|
||||
export class DatabaseMetadata {
|
||||
constructor(private identifier: string, private flashStorage: FlashKeyValueStore) {}
|
||||
constructor(
|
||||
private identifier: string,
|
||||
private flashStorage: FlashKeyValueStore,
|
||||
) {}
|
||||
|
||||
runMigration(payloads: TransferPayload[]) {
|
||||
const metadataItems = this.setMetadataForPayloads(payloads)
|
||||
|
||||
@@ -423,7 +423,7 @@ export class MobileDevice implements MobileDeviceInterface {
|
||||
failOnCancel: false,
|
||||
})
|
||||
} catch (error) {
|
||||
this.consoleLog(`${error}`)
|
||||
this.consoleLog(error)
|
||||
} finally {
|
||||
if (downloadedTempFilePath) {
|
||||
void this.deleteFileAtPathIfExists(downloadedTempFilePath)
|
||||
@@ -456,7 +456,7 @@ export class MobileDevice implements MobileDeviceInterface {
|
||||
await writeFile(path, base64.replace(/data.*base64,/, ''), 'base64')
|
||||
return path
|
||||
} catch (error) {
|
||||
this.consoleLog(`${error}`)
|
||||
this.consoleLog(error)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user