Skip to content

Commit

Permalink
Move disabling of any from top of files
Browse files Browse the repository at this point in the history
  • Loading branch information
elliothershberg committed Mar 19, 2021
1 parent 9523379 commit cd17d45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/core/util/io/ElectronLocalFile.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { GenericFilehandle, FilehandleOptions } from 'generic-filehandle'

declare global {
interface Window {
electron?: import('electron').AllElectron
}
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const { electron } = typeof window !== 'undefined' ? window : ({} as any)

type PathLike = import('fs').PathLike
Expand Down
4 changes: 3 additions & 1 deletion packages/core/util/io/ElectronRemoteFile.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any,no-underscore-dangle */
/* eslint-disable no-underscore-dangle */
import uri2path from 'file-uri-to-path'
import {
Fetcher,
Expand All @@ -15,6 +15,8 @@ declare global {
electron?: import('electron').AllElectron
}
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const { electron } = typeof window !== 'undefined' ? window : ({} as any)

class ElectronRemoteFileError extends Error {
Expand Down

0 comments on commit cd17d45

Please sign in to comment.