diff --git a/package.json b/package.json index 3d27134..5f19f0b 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "prettier-check": "prettier --check .", "prettier-write": "prettier --write .", "format": "prettier --write .", - "lint": "eslint . && tsc --noEmit", + "lint": "eslint .", "eslint-inspector": "npx @eslint/config-inspector@latest", "typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false", "typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false", diff --git a/src/main/auth/manageLastFmAuth.ts b/src/main/auth/manageLastFmAuth.ts index 920e865..c154bc4 100644 --- a/src/main/auth/manageLastFmAuth.ts +++ b/src/main/auth/manageLastFmAuth.ts @@ -1,5 +1,5 @@ import { setUserData } from '../filesystem'; -import { LastFMSessionGetResponse } from '../../types/last_fm_api'; +import type { LastFMSessionGetResponse } from '../../types/last_fm_api'; import hashText from '../utils/hashText'; import { encrypt } from '../utils/safeStorage'; import { sendMessageToRenderer } from '../main'; diff --git a/src/main/core/exportAppData.ts b/src/main/core/exportAppData.ts index c82ef7c..9990c68 100644 --- a/src/main/core/exportAppData.ts +++ b/src/main/core/exportAppData.ts @@ -1,6 +1,6 @@ import fs from 'fs/promises'; import path from 'path'; -import { OpenDialogOptions, app } from 'electron'; +import { type OpenDialogOptions, app } from 'electron'; import { getAlbumsData, diff --git a/src/main/core/exportPlaylist.ts b/src/main/core/exportPlaylist.ts index e90ee4c..5c2aecd 100644 --- a/src/main/core/exportPlaylist.ts +++ b/src/main/core/exportPlaylist.ts @@ -1,6 +1,6 @@ import { writeFile } from 'fs/promises'; import { basename } from 'path'; -import { SaveDialogOptions } from 'electron'; +import type { SaveDialogOptions } from 'electron'; import logger from '../logger'; import { getPlaylistData, getSongsData } from '../filesystem'; diff --git a/src/main/core/fetchSongInfoFromLastFM.ts b/src/main/core/fetchSongInfoFromLastFM.ts index f83f1c7..e80d0a0 100644 --- a/src/main/core/fetchSongInfoFromLastFM.ts +++ b/src/main/core/fetchSongInfoFromLastFM.ts @@ -1,6 +1,6 @@ import logger from '../logger'; import { checkIfConnectedToInternet } from '../main'; -import { LastFMTrackInfoApi } from '../../types/last_fm_api'; +import type { LastFMTrackInfoApi } from '../../types/last_fm_api'; const LAST_FM_BASE_URL = 'http://ws.audioscrobbler.com/2.0/'; diff --git a/src/main/core/getArtistInfoFromNet.ts b/src/main/core/getArtistInfoFromNet.ts index 1d20a4f..e08d7c7 100644 --- a/src/main/core/getArtistInfoFromNet.ts +++ b/src/main/core/getArtistInfoFromNet.ts @@ -7,8 +7,8 @@ import { checkIfConnectedToInternet, dataUpdateEvent } from '../main'; import { getArtistArtworkPath } from '../fs/resolveFilePaths'; import getArtistInfoFromLastFM from '../other/lastFm/getArtistInfoFromLastFM'; -import { DeezerArtistInfo, DeezerArtistInfoApi } from '../../types/deezer_api'; -import { SimilarArtist } from '../../types/last_fm_artist_info_api'; +import type { DeezerArtistInfo, DeezerArtistInfoApi } from '../../types/deezer_api'; +import type { SimilarArtist } from '../../types/last_fm_artist_info_api'; const DEEZER_BASE_URL = 'https://api.deezer.com/'; diff --git a/src/main/core/importAppData.ts b/src/main/core/importAppData.ts index b8fb731..34d78e1 100644 --- a/src/main/core/importAppData.ts +++ b/src/main/core/importAppData.ts @@ -1,6 +1,6 @@ import fs from 'fs/promises'; import path from 'path'; -import { OpenDialogOptions } from 'electron'; +import type { OpenDialogOptions } from 'electron'; import { restartApp, sendMessageToRenderer, showOpenDialog } from '../main'; import logger from '../logger'; diff --git a/src/main/core/importPlaylist.ts b/src/main/core/importPlaylist.ts index db834fa..653b6cb 100644 --- a/src/main/core/importPlaylist.ts +++ b/src/main/core/importPlaylist.ts @@ -1,6 +1,6 @@ import { readFile } from 'fs/promises'; import path from 'path'; -import { OpenDialogOptions } from 'electron'; +import type { OpenDialogOptions } from 'electron'; import { sendMessageToRenderer, showOpenDialog } from '../main'; import logger from '../logger'; diff --git a/src/main/core/saveArtworkToSystem.ts b/src/main/core/saveArtworkToSystem.ts index ff1020c..01a682c 100644 --- a/src/main/core/saveArtworkToSystem.ts +++ b/src/main/core/saveArtworkToSystem.ts @@ -1,4 +1,4 @@ -import { SaveDialogOptions } from 'electron'; +import type { SaveDialogOptions } from 'electron'; import sharp from 'sharp'; import logger from '../logger'; diff --git a/src/main/filesystem.ts b/src/main/filesystem.ts index f6a0796..43395b8 100644 --- a/src/main/filesystem.ts +++ b/src/main/filesystem.ts @@ -17,7 +17,7 @@ import { userDataMigrations } from './migrations'; import { encrypt } from './utils/safeStorage'; -import { LastFMSessionData } from '../types/last_fm_api'; +import type { LastFMSessionData } from '../types/last_fm_api'; import { DEFAULT_SONG_PALETTE } from './other/generatePalette'; import isPathADir from './utils/isPathADir'; import { clearDiscordRpcActivity } from './other/discordRPC'; diff --git a/src/main/fs/addWatchersToFolders.ts b/src/main/fs/addWatchersToFolders.ts index 05c7636..01d08e6 100644 --- a/src/main/fs/addWatchersToFolders.ts +++ b/src/main/fs/addWatchersToFolders.ts @@ -1,6 +1,6 @@ import path from 'path'; import fs from 'fs/promises'; -import fsSync, { WatchEventType } from 'fs'; +import fsSync, { type WatchEventType } from 'fs'; import { getUserData, supportedMusicExtensions } from '../filesystem'; import logger from '../logger'; import checkFolderForUnknownModifications from './checkFolderForUnknownContentModifications'; diff --git a/src/main/fs/addWatchersToParentFolders.ts b/src/main/fs/addWatchersToParentFolders.ts index 1d81b4f..cd56894 100644 --- a/src/main/fs/addWatchersToParentFolders.ts +++ b/src/main/fs/addWatchersToParentFolders.ts @@ -1,4 +1,4 @@ -import fsSync, { WatchEventType } from 'fs'; +import fsSync, { type WatchEventType } from 'fs'; import path from 'path'; import { getUserData } from '../filesystem'; import logger from '../logger'; diff --git a/src/main/main.ts b/src/main/main.ts index a4cc99d..2a501da 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -13,13 +13,13 @@ import { Tray, Menu, nativeImage, - OpenDialogOptions, powerMonitor, - SaveDialogOptions, net, powerSaveBlocker, screen, - Display + type OpenDialogOptions, + type SaveDialogOptions, + type Display } from 'electron'; import { @@ -433,7 +433,7 @@ function addEventsToCache(dataType: DataUpdateEventTypes, data = [] as string[], const handleFileProtocol = async (request: GlobalRequest): Promise => { try { const urlWithQueries = decodeURI(request.url).replace( - /^(nora:[\/\\]{1,2}localfiles[\/\\]{1,2})|(\?ts\=\d+)?$/gm, + /(nora:[\/\\]{1,2}localfiles[\/\\]{1,2})|(\?ts\=\d+$)?/gm, '' ); const [filePath] = urlWithQueries.split('?'); diff --git a/src/main/other/lastFm/generateApiRequestBodyForLastFMPostRequests.ts b/src/main/other/lastFm/generateApiRequestBodyForLastFMPostRequests.ts index 831e44f..4e3543e 100644 --- a/src/main/other/lastFm/generateApiRequestBodyForLastFMPostRequests.ts +++ b/src/main/other/lastFm/generateApiRequestBodyForLastFMPostRequests.ts @@ -1,5 +1,5 @@ import hashText from '../../utils/hashText'; -import { +import type { AuthData, LoveParams, ScrobbleParams, diff --git a/src/main/other/lastFm/getAlbumInfoFromLastFM.ts b/src/main/other/lastFm/getAlbumInfoFromLastFM.ts index b4c978c..1fa86d6 100644 --- a/src/main/other/lastFm/getAlbumInfoFromLastFM.ts +++ b/src/main/other/lastFm/getAlbumInfoFromLastFM.ts @@ -1,7 +1,7 @@ import { checkIfConnectedToInternet } from '../../main'; import { getAlbumsData, getSongsData } from '../../filesystem'; import logger from '../../logger'; -import { +import type { LastFMAlbumInfoAPI, AlbumInfo, ParsedAlbumTrack, diff --git a/src/main/other/lastFm/getArtistInfoFromLastFM.ts b/src/main/other/lastFm/getArtistInfoFromLastFM.ts index e2f8fa6..0b4560e 100644 --- a/src/main/other/lastFm/getArtistInfoFromLastFM.ts +++ b/src/main/other/lastFm/getArtistInfoFromLastFM.ts @@ -1,4 +1,4 @@ -import { LastFmArtistInfoAPI } from '../../../types/last_fm_artist_info_api'; +import type { LastFmArtistInfoAPI } from '../../../types/last_fm_artist_info_api'; import logger from '../../logger'; import { checkIfConnectedToInternet } from '../../main'; diff --git a/src/main/other/lastFm/getSimilarTracks.ts b/src/main/other/lastFm/getSimilarTracks.ts index 54965c4..b5e759c 100644 --- a/src/main/other/lastFm/getSimilarTracks.ts +++ b/src/main/other/lastFm/getSimilarTracks.ts @@ -1,6 +1,6 @@ import logger from '../../logger'; import { getSongsData } from '../../filesystem'; -import { +import type { LastFMSimilarTracksAPI, ParsedSimilarTrack, SimilarTrack, diff --git a/src/main/other/lastFm/scrobbleSong.ts b/src/main/other/lastFm/scrobbleSong.ts index 03a512a..158d6fd 100644 --- a/src/main/other/lastFm/scrobbleSong.ts +++ b/src/main/other/lastFm/scrobbleSong.ts @@ -1,6 +1,6 @@ import { getSongsData, getUserData } from '../../filesystem'; import logger from '../../logger'; -import { LastFMScrobblePostResponse, ScrobbleParams } from '../../../types/last_fm_api'; +import type { LastFMScrobblePostResponse, ScrobbleParams } from '../../../types/last_fm_api'; import { checkIfConnectedToInternet } from '../../main'; import { generateApiRequestBodyForLastFMPostRequests } from './generateApiRequestBodyForLastFMPostRequests'; import getLastFmAuthData from './getLastFMAuthData'; diff --git a/src/main/other/lastFm/sendFavoritesDataToLastFM.ts b/src/main/other/lastFm/sendFavoritesDataToLastFM.ts index 6178891..77322e4 100644 --- a/src/main/other/lastFm/sendFavoritesDataToLastFM.ts +++ b/src/main/other/lastFm/sendFavoritesDataToLastFM.ts @@ -1,7 +1,11 @@ import { getUserData } from '../../filesystem'; import logger from '../../logger'; import hashText from '../../utils/hashText'; -import { AuthData, LastFMLoveUnlovePostResponse, LoveParams } from '../../../types/last_fm_api'; +import type { + AuthData, + LastFMLoveUnlovePostResponse, + LoveParams +} from '../../../types/last_fm_api'; import { checkIfConnectedToInternet } from '../../main'; import getLastFmAuthData from './getLastFMAuthData'; diff --git a/src/main/other/lastFm/sendNowPlayingSongDataToLastFM.ts b/src/main/other/lastFm/sendNowPlayingSongDataToLastFM.ts index 1004caa..51ae930 100644 --- a/src/main/other/lastFm/sendNowPlayingSongDataToLastFM.ts +++ b/src/main/other/lastFm/sendNowPlayingSongDataToLastFM.ts @@ -1,6 +1,9 @@ import { getSongsData, getUserData } from '../../filesystem'; import logger from '../../logger'; -import { LastFMScrobblePostResponse, updateNowPlayingParams } from '../../../types/last_fm_api'; +import type { + LastFMScrobblePostResponse, + updateNowPlayingParams +} from '../../../types/last_fm_api'; import { checkIfConnectedToInternet, getSongsOutsideLibraryData } from '../../main'; import generateApiRequestBodyForLastFMPostRequests from './generateApiRequestBodyForLastFMPostRequests'; import getLastFmAuthData from './getLastFMAuthData'; diff --git a/src/main/utils/fetchLyricsFromMusixmatch.ts b/src/main/utils/fetchLyricsFromMusixmatch.ts index 706c5fc..fba4200 100644 --- a/src/main/utils/fetchLyricsFromMusixmatch.ts +++ b/src/main/utils/fetchLyricsFromMusixmatch.ts @@ -1,4 +1,4 @@ -import { +import type { MusixmatchLyrics, MusixmatchLyricsAPI, MusixmatchLyricsLine, diff --git a/src/main/utils/fetchSongArtworksFromSpotify.ts b/src/main/utils/fetchSongArtworksFromSpotify.ts index afb61b5..a29ac00 100644 --- a/src/main/utils/fetchSongArtworksFromSpotify.ts +++ b/src/main/utils/fetchSongArtworksFromSpotify.ts @@ -9,7 +9,7 @@ // https://i.scdn.co/image/ ab6761670000 ecd483b611804e9de647b18110be import logger from '../logger'; -import { SpotifyEmbedApi } from '../../types/spotify_embed_api'; +import type { SpotifyEmbedApi } from '../../types/spotify_embed_api'; const SPOTIFY_EMBED_BASE_URL = 'https://open.spotify.com/oembed?url=https://open.spotify.com/track/'; diff --git a/src/main/utils/fetchSongMetadataFromInternet.ts b/src/main/utils/fetchSongMetadataFromInternet.ts index 893055b..4528368 100644 --- a/src/main/utils/fetchSongMetadataFromInternet.ts +++ b/src/main/utils/fetchSongMetadataFromInternet.ts @@ -1,10 +1,10 @@ -import { AppleITunesMusicAPI } from '../../types/apple_itunes_music_api'; +import type { AppleITunesMusicAPI } from '../../types/apple_itunes_music_api'; import logger from '../logger'; -import { LastFMHitCache, LastFMTrackInfoApi } from '../../types/last_fm_api'; +import type { LastFMHitCache, LastFMTrackInfoApi } from '../../types/last_fm_api'; -import { GeniusLyricsAPI, GeniusSongMetadataResponse } from '../../types/genius_lyrics_api'; -import { DeezerTrackDataAPI, DeezerTrackResultsAPI } from '../../types/deezer_api'; -import { MusixmatchHitCache, MusixmatchLyricsAPI } from '../../types/musixmatch_lyrics_api'; +import type { GeniusLyricsAPI, GeniusSongMetadataResponse } from '../../types/genius_lyrics_api'; +import type { DeezerTrackDataAPI, DeezerTrackResultsAPI } from '../../types/deezer_api'; +import type { MusixmatchHitCache, MusixmatchLyricsAPI } from '../../types/musixmatch_lyrics_api'; import parseSongMetadataFromMusixmatchApiData from './parseSongMetadataFromMusixmatchApiData'; import { parseMusicmatchDataFromLyrics } from './fetchLyricsFromMusixmatch'; diff --git a/src/main/utils/getTranslatedLyrics.ts b/src/main/utils/getTranslatedLyrics.ts index 8571155..9d52640 100644 --- a/src/main/utils/getTranslatedLyrics.ts +++ b/src/main/utils/getTranslatedLyrics.ts @@ -8,7 +8,7 @@ import { getLrcLyricLinesFromParsedLyrics, getLrcLyricsMetadata } from '../core/saveLyricsToLrcFile'; -import { RawResponse } from '@vitalets/google-translate-api/dist/cjs/types'; +import type { RawResponse } from '@vitalets/google-translate-api/dist/cjs/types'; const getTranslatedLyricLines = (raw: RawResponse, translatedLang: string) => { if (translatedLang === raw.src) { diff --git a/src/main/utils/hashText.ts b/src/main/utils/hashText.ts index 159c0ec..6a2ca96 100644 --- a/src/main/utils/hashText.ts +++ b/src/main/utils/hashText.ts @@ -1,4 +1,4 @@ -import { BinaryToTextEncoding, createHash } from 'crypto'; +import { type BinaryToTextEncoding, createHash } from 'crypto'; type HashingAlgorithm = 'md5' | 'sha256' | 'sha512'; diff --git a/src/main/utils/makeDir.ts b/src/main/utils/makeDir.ts index ae59316..9e18f20 100644 --- a/src/main/utils/makeDir.ts +++ b/src/main/utils/makeDir.ts @@ -1,4 +1,4 @@ -import { MakeDirectoryOptions, Mode, PathLike, mkdirSync } from 'fs'; +import { type MakeDirectoryOptions, type Mode, type PathLike, mkdirSync } from 'fs'; import { mkdir } from 'fs/promises'; import { isAnErrorWithCode } from './isAnErrorWithCode'; diff --git a/src/main/utils/parseSongMetadataFromMusixmatchApiData.ts b/src/main/utils/parseSongMetadataFromMusixmatchApiData.ts index b91e53b..e38ce61 100644 --- a/src/main/utils/parseSongMetadataFromMusixmatchApiData.ts +++ b/src/main/utils/parseSongMetadataFromMusixmatchApiData.ts @@ -1,5 +1,8 @@ import logger from '../logger'; -import { MusixmatchLyricsAPI, MusixmatchLyricsMetadata } from '../../types/musixmatch_lyrics_api'; +import type { + MusixmatchLyricsAPI, + MusixmatchLyricsMetadata +} from '../../types/musixmatch_lyrics_api'; import fetchSongArtworksFromSpotify from './fetchSongArtworksFromSpotify'; async function parseSongMetadataFromMusixmatchApiData( diff --git a/src/preload/index.ts b/src/preload/index.ts index 27136d2..3094a15 100644 --- a/src/preload/index.ts +++ b/src/preload/index.ts @@ -446,7 +446,7 @@ const utils = { join: (...args: string[]) => args.join('/') }, getExtension: (dir: string) => { - const regex = /(?.+)\.(?\w+)(?.+)$/; + const regex = /(?.+)\.(?[\w\d]+)(?\?.+)?$/; const match = dir.match(regex); const ext = match?.groups?.ext || ''; return ext; diff --git a/src/renderer/src/components/AlbumInfoPage/AlbumInfoPage.tsx b/src/renderer/src/components/AlbumInfoPage/AlbumInfoPage.tsx index 91e2e32..6728d60 100644 --- a/src/renderer/src/components/AlbumInfoPage/AlbumInfoPage.tsx +++ b/src/renderer/src/components/AlbumInfoPage/AlbumInfoPage.tsx @@ -10,7 +10,7 @@ import TitleContainer from '../TitleContainer'; import AlbumImgAndInfoContainer from './AlbumImgAndInfoContainer'; import OnlineAlbumInfoContainer from './OnlineAlbumInfoContainer'; import { songSortOptions } from '../SongsPage/SongOptions'; -import { type LastFMAlbumInfo } from 'src/types/last_fm_album_info_api'; +import type { LastFMAlbumInfo } from 'src/types/last_fm_album_info_api'; import VirtualizedList from '../VirtualizedList'; import { useStore } from '@tanstack/react-store'; import { store } from '../../store'; diff --git a/src/renderer/src/components/AlbumInfoPage/OnlineAlbumInfoContainer.tsx b/src/renderer/src/components/AlbumInfoPage/OnlineAlbumInfoContainer.tsx index 3a5fa24..98c6154 100644 --- a/src/renderer/src/components/AlbumInfoPage/OnlineAlbumInfoContainer.tsx +++ b/src/renderer/src/components/AlbumInfoPage/OnlineAlbumInfoContainer.tsx @@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next'; import Biography from '../Biography/Biography'; import TitleContainer from '../TitleContainer'; import UnAvailableTrack from '../SongInfoPage/UnAvailableTrack'; -import { type LastFMAlbumInfo } from 'src/types/last_fm_album_info_api'; +import type { LastFMAlbumInfo } from 'src/types/last_fm_album_info_api'; import { useStore } from '@tanstack/react-store'; import { store } from '../../store'; diff --git a/src/renderer/src/components/Biography/Biography.tsx b/src/renderer/src/components/Biography/Biography.tsx index f9ed425..547b834 100644 --- a/src/renderer/src/components/Biography/Biography.tsx +++ b/src/renderer/src/components/Biography/Biography.tsx @@ -2,7 +2,7 @@ import { useMemo } from 'react'; import { Trans, useTranslation } from 'react-i18next'; import Hyperlink from '../Hyperlink'; import HashTag from './HashTag'; -import { type Tag } from '../../../../types/last_fm_artist_info_api'; +import type { Tag } from '../../../../types/last_fm_artist_info_api'; import { useStore } from '@tanstack/react-store'; import { store } from '@renderer/store'; diff --git a/src/renderer/src/components/Biography/HashTag.tsx b/src/renderer/src/components/Biography/HashTag.tsx index 6c4e4fd..a9f27de 100644 --- a/src/renderer/src/components/Biography/HashTag.tsx +++ b/src/renderer/src/components/Biography/HashTag.tsx @@ -1,5 +1,5 @@ import { useTranslation } from 'react-i18next'; -import { type Tag } from '../../../../types/last_fm_artist_info_api'; +import type { Tag } from '../../../../types/last_fm_artist_info_api'; import Hyperlink from '../Hyperlink'; const HashTag = (props: Tag) => { diff --git a/src/renderer/src/components/SongInfoPage/SimilarTracksContainer.tsx b/src/renderer/src/components/SongInfoPage/SimilarTracksContainer.tsx index dc57369..0800dfb 100644 --- a/src/renderer/src/components/SongInfoPage/SimilarTracksContainer.tsx +++ b/src/renderer/src/components/SongInfoPage/SimilarTracksContainer.tsx @@ -1,7 +1,7 @@ import { useCallback, useContext, useEffect, useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { AppUpdateContext } from '../../contexts/AppUpdateContext'; -import { type SimilarTracksOutput } from 'src/types/last_fm_similar_tracks_api'; +import type { SimilarTracksOutput } from 'src/types/last_fm_similar_tracks_api'; import UnAvailableTrack from './UnAvailableTrack'; import TitleContainer from '../TitleContainer'; import Song from '../SongsPage/Song'; diff --git a/src/renderer/src/components/SongInfoPage/UnAvailableTrack.tsx b/src/renderer/src/components/SongInfoPage/UnAvailableTrack.tsx index 74c674c..d567151 100644 --- a/src/renderer/src/components/SongInfoPage/UnAvailableTrack.tsx +++ b/src/renderer/src/components/SongInfoPage/UnAvailableTrack.tsx @@ -3,7 +3,7 @@ import { Trans, useTranslation } from 'react-i18next'; import { AppUpdateContext } from '../../contexts/AppUpdateContext'; -import { type ParsedSimilarTrack } from '../../../../types/last_fm_similar_tracks_api'; +import type { ParsedSimilarTrack } from '../../../../types/last_fm_similar_tracks_api'; const OpenLinkConfirmPrompt = lazy(() => import('../OpenLinkConfirmPrompt')); diff --git a/tsconfig.json b/tsconfig.json index 47d8b7d..3e7a70c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,7 @@ "types": [ "electron-vite/node" ], "allowJs": true, "useUnknownInCatchVariables": true, - // "verbatimModuleSyntax": true, - // "erasableSyntaxOnly": true + "verbatimModuleSyntax": true, + "erasableSyntaxOnly": true } } diff --git a/tsconfig.node.json b/tsconfig.node.json index 2e9d71c..02b7863 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -18,7 +18,7 @@ "@main/*": [ "./src/main/*" ], }, "noImplicitAny": true, "useUnknownInCatchVariables": true, - // "verbatimModuleSyntax": true, - // "erasableSyntaxOnly": true + "verbatimModuleSyntax": true, + "erasableSyntaxOnly": true } } diff --git a/tsconfig.web.json b/tsconfig.web.json index 7577a42..02731e7 100644 --- a/tsconfig.web.json +++ b/tsconfig.web.json @@ -19,12 +19,9 @@ "@renderer/*": [ "src/renderer/src/*" ], - "@types/*": [ - "src/types/*" - ] }, "types": [ "vite/client" ], - // "verbatimModuleSyntax": true, - // "erasableSyntaxOnly": true + "verbatimModuleSyntax": true, + "erasableSyntaxOnly": true } }