Skip to content

Commit

Permalink
Cleaning up a few linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinfrei committed Dec 29, 2023
1 parent 5b96d25 commit ade89b0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions electron/AudioDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,10 @@ export async function FlushImageCache(): Promise<void> {

export async function FlushMetadataCache(): Promise<void> {
const db = await GetAudioDB();
await db.clearMetadataCache();
db.clearMetadataCache();
}

export async function ClearLocalOverrides(): Promise<void> {
const db = await GetAudioDB();
await db.clearLocalMetadataOverrides();
db.clearLocalMetadataOverrides();
}
1 change: 1 addition & 0 deletions electron/cover-art.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
isSetOfString,
} from '@freik/typechk';
import albumArt from 'album-art';
// eslint-disable-next-line @typescript-eslint/naming-convention
import Jimp from 'jimp';
import { promises as fs } from 'node:fs';
import https from 'node:https';
Expand Down
12 changes: 6 additions & 6 deletions modules/shared/src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
isString,
} from '@freik/typechk';

export const enum IpcId {
export enum IpcId {
ClearHates = 'clear-hates',
ClearLikes = 'clear-likes',
ClearLocalOverrides = 'clear-local-overrides',
Expand Down Expand Up @@ -50,7 +50,7 @@ export const enum IpcId {
RescanInProgress = 'rescan-in-progress',
}

export const enum Keys {
export enum Keys {
AddFileLocation = 'O',
Albums = '2',
Artists = '3',
Expand All @@ -72,7 +72,7 @@ export const enum Keys {
}

// TODO: This stuff let's me localize my strings eventually
export const enum StrId {
export enum StrId {
// MediaInfo.tsx strings
Mono = 'mono',
Stereo = 'stereo',
Expand Down Expand Up @@ -120,7 +120,7 @@ export function st(id: StrId): string {
return id;
}

export const enum CurrentView {
export enum CurrentView {
disabled = -1,
none = 0,
recent = 1,
Expand All @@ -134,14 +134,14 @@ export const enum CurrentView {
tools = 9,
}

export const enum TranscodeFormatTargets {
export enum TranscodeFormatTargets {
m4a = 'm4a',
mp3 = 'mp3',
aac = 'aac',
}
export type TranscodeFormatTargetNames = 'm4a' | 'mp3' | 'aac';

export const enum TranscodeSourceType {
export enum TranscodeSourceType {
Playlist = 'p',
Artist = 'r',
Album = 'l',
Expand Down
1 change: 1 addition & 0 deletions src/UI/Views/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
useBoolRecoilState,
useMyTransaction,
} from '@freik/web-utils';
// eslint-disable-next-line @typescript-eslint/naming-convention
import React, { useState } from 'react';
import { useRecoilState, useRecoilValue } from 'recoil';
import { AddIgnoreItem, RemoveIgnoreItem } from '../../ipc';
Expand Down

0 comments on commit ade89b0

Please sign in to comment.