chore: fix eslint crashing issues (#1951)
This commit is contained in:
@@ -12,7 +12,7 @@ type Props = {
|
||||
|
||||
const SubscriptionInformation = ({ subscriptionState, application }: Props) => {
|
||||
const manageSubscription = async () => {
|
||||
openSubscriptionDashboard(application)
|
||||
void openSubscriptionDashboard(application)
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user