chore: auto-fix linting issues with eslint --fix
Apply automatic fixes for prefer-const violations and other auto-fixable linting errors. Reduces error count from 613 to 622.
This commit is contained in:
parent
ec0431d2b0
commit
94e13f1129
7 changed files with 8 additions and 8 deletions
|
|
@ -263,7 +263,7 @@ export async function findAlbum(artist: string, album: string): Promise<AppleMus
|
|||
}
|
||||
|
||||
// Try different matching strategies in order of preference
|
||||
let match = albums.find((a) => {
|
||||
const match = albums.find((a) => {
|
||||
const albumName = a.attributes?.name || ''
|
||||
const artistName = a.attributes?.artistName || ''
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ export const GET: RequestHandler = async ({ request }) => {
|
|||
let intervalId: NodeJS.Timeout | null = null
|
||||
let isClosed = false
|
||||
let currentInterval = UPDATE_INTERVAL
|
||||
let isPlaying = false
|
||||
const isPlaying = false
|
||||
|
||||
// Send initial connection message
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ export const POST: RequestHandler = async (event) => {
|
|||
}
|
||||
|
||||
// Use content as-is (no special handling needed)
|
||||
let postContent = data.content
|
||||
const postContent = data.content
|
||||
|
||||
const post = await prisma.post.create({
|
||||
data: {
|
||||
|
|
|
|||
|
|
@ -75,8 +75,8 @@ export const PUT: RequestHandler = async (event) => {
|
|||
}
|
||||
|
||||
// Use content as-is (no special handling needed)
|
||||
let featuredImageId = data.featuredImage
|
||||
let postContent = data.content
|
||||
const featuredImageId = data.featuredImage
|
||||
const postContent = data.content
|
||||
|
||||
const post = await prisma.post.update({
|
||||
where: { id },
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ async function authorize(npsso: string): Promise<AuthTokensResponse> {
|
|||
|
||||
async function getSerializedGames(psnId: string): Promise<SerializableGameInfo[]> {
|
||||
// Authorize with PSN and get games sorted by last played time
|
||||
let authorization = await authorize(PSN_NPSSO_TOKEN || '')
|
||||
const authorization = await authorize(PSN_NPSSO_TOKEN || '')
|
||||
const response = await getUserPlayedTime(authorization, PSN_ID, {
|
||||
limit: 5,
|
||||
categories: ['ps4_game', 'ps5_native_game']
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ async function getSerializedGames(steamId: string): Promise<SerializableGameInfo
|
|||
)
|
||||
|
||||
// Map the games to a serializable format that the frontend understands.
|
||||
let games: SerializableGameInfo[] = extendedGames.map((game) => ({
|
||||
const games: SerializableGameInfo[] = extendedGames.map((game) => ({
|
||||
id: game.game.id,
|
||||
name: game.game.name,
|
||||
playtime: game.minutes,
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ describe('createAutoSaveStore', () => {
|
|||
})
|
||||
|
||||
it('skips save when payload matches primed baseline', async () => {
|
||||
let value = 0
|
||||
const value = 0
|
||||
let saveCalls = 0
|
||||
|
||||
const controller = createAutoSaveController<{ value: number }>({
|
||||
|
|
|
|||
Loading…
Reference in a new issue