chore: upgrade eslint and prettier (#2376)

* chore: upgrade eslint and prettier

* chore: add restrict-template-expressions
This commit is contained in:
Mo
2023-07-27 14:36:05 -05:00
committed by GitHub
parent acc41edb02
commit 4a29e2a24c
1283 changed files with 4416 additions and 5131 deletions

View File

@@ -18,7 +18,10 @@ export class PreferencesSessionController {
private _menu: PreferencesMenuItem[]
private _extensionLatestVersions: PackageProvider = new PackageProvider(new Map())
constructor(private application: WebApplication, private readonly _enableUnfinishedFeatures: boolean) {
constructor(
private application: WebApplication,
private readonly _enableUnfinishedFeatures: boolean,
) {
const menuItems = this._enableUnfinishedFeatures
? PREFERENCES_MENU_ITEMS.slice()
: READY_PREFERENCES_MENU_ITEMS.slice()

View File

@@ -86,6 +86,7 @@ const DataBackups = ({ application, viewControllerManager }: Props) => {
}
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const readFile = async (file: File): Promise<any> => {
if (file.type === 'application/zip') {
application.alerts.alert(STRING_IMPORTING_ZIP_FILE).catch(console.error)

View File

@@ -16,7 +16,10 @@ export class TwoFactorAuth {
private _status: TwoFactorStatus | 'fetching' = 'fetching'
private _errorMessage: string | null
constructor(private readonly mfaProvider: MfaProvider, private readonly userProvider: UserProvider) {
constructor(
private readonly mfaProvider: MfaProvider,
private readonly userProvider: UserProvider,
) {
this._errorMessage = null
makeAutoObservable<TwoFactorAuth, '_status' | '_errorMessage' | 'deactivateMfa' | 'startActivation'>(