chore: fix eslint crashing issues (#1951)

This commit is contained in:
Mo
2022-11-04 17:09:54 -05:00
committed by GitHub
parent 5aa36ff071
commit 417c90a6f2
118 changed files with 315 additions and 424 deletions

View File

@@ -12,7 +12,7 @@ type Props = {
const SubscriptionInformation = ({ subscriptionState, application }: Props) => {
const manageSubscription = async () => {
openSubscriptionDashboard(application)
void openSubscriptionDashboard(application)
}
return (

View File

@@ -78,12 +78,12 @@ const DataBackups = ({ application, viewControllerManager }: Props) => {
.getArchiveService()
.formattedDateForExports()}`
const sanitizedFilename = sanitizeFileName(filename) + '.txt'
downloadOrShareBlobBasedOnPlatform(application, blobData, sanitizedFilename)
void downloadOrShareBlobBasedOnPlatform(application, blobData, sanitizedFilename)
} else {
const zippedDecryptedItemsBlob = await application.getArchiveService().getZippedDecryptedItemsBlob(data)
const filename = `Standard Notes Backup - ${application.getArchiveService().formattedDateForExports()}`
const sanitizedFilename = sanitizeFileName(filename) + '.zip'
downloadOrShareBlobBasedOnPlatform(application, zippedDecryptedItemsBlob, sanitizedFilename)
void downloadOrShareBlobBasedOnPlatform(application, zippedDecryptedItemsBlob, sanitizedFilename)
}
}

View File

@@ -29,7 +29,7 @@ const PlaintextDefaults = ({ application }: Props) => {
const handleLineHeightChange = (value: string) => {
setLineHeight(value as EditorLineHeight)
application.setPreference(PrefKey.EditorLineHeight, value as EditorLineHeight)
void application.setPreference(PrefKey.EditorLineHeight, value as EditorLineHeight)
}
const lineHeightDropdownOptions = useMemo(
@@ -47,7 +47,7 @@ const PlaintextDefaults = ({ application }: Props) => {
const handleFontSizeChange = (value: string) => {
setFontSize(value as EditorFontSize)
application.setPreference(PrefKey.EditorFontSize, value as EditorFontSize)
void application.setPreference(PrefKey.EditorFontSize, value as EditorFontSize)
}
const fontSizeDropdownOptions = useMemo(