From 4c5b201b617b8bf63fc971be87392a4505c32b31 Mon Sep 17 00:00:00 2001 From: JulienMaille <182520+JulienMaille@users.noreply.github.com> Date: Tue, 10 Feb 2026 12:20:16 +0000 Subject: [PATCH] style: auto-fix linting issues --- neutralino.config.json | 2 +- vite.config.js | 65 +++++++++++++++++++++--------------------- 2 files changed, 34 insertions(+), 33 deletions(-) diff --git a/neutralino.config.json b/neutralino.config.json index fdbcf61..1fee33d 100644 --- a/neutralino.config.json +++ b/neutralino.config.json @@ -45,4 +45,4 @@ } ], "nativeAllowList": ["app.exit", "window.*", "extensions.*", "events.*"] -} \ No newline at end of file +} diff --git a/vite.config.js b/vite.config.js index c71c6f0..827ce43 100644 --- a/vite.config.js +++ b/vite.config.js @@ -16,41 +16,42 @@ export default defineConfig(({ mode }) => { IS_NEUTRALINO && neutralino(), authGatePlugin(), VitePWA({ - registerType: 'prompt', - workbox: { - globPatterns: ['**/*.{js,css,html,ico,png,svg,json}'], - cleanupOutdatedCaches: true, - maximumFileSizeToCacheInBytes: 3 * 1024 * 1024, // 3 MiB limit - // Define runtime caching strategies - runtimeCaching: [ - { - urlPattern: ({ request }) => request.destination === 'image', - handler: 'CacheFirst', - options: { - cacheName: 'images', - expiration: { - maxEntries: 100, - maxAgeSeconds: 60 * 24 * 60 * 60, // 60 Days + registerType: 'prompt', + workbox: { + globPatterns: ['**/*.{js,css,html,ico,png,svg,json}'], + cleanupOutdatedCaches: true, + maximumFileSizeToCacheInBytes: 3 * 1024 * 1024, // 3 MiB limit + // Define runtime caching strategies + runtimeCaching: [ + { + urlPattern: ({ request }) => request.destination === 'image', + handler: 'CacheFirst', + options: { + cacheName: 'images', + expiration: { + maxEntries: 100, + maxAgeSeconds: 60 * 24 * 60 * 60, // 60 Days + }, }, }, - }, - { - urlPattern: ({ request }) => request.destination === 'audio' || request.destination === 'video', - handler: 'CacheFirst', - options: { - cacheName: 'media', - expiration: { - maxEntries: 50, - maxAgeSeconds: 60 * 24 * 60 * 60, // 60 Days + { + urlPattern: ({ request }) => + request.destination === 'audio' || request.destination === 'video', + handler: 'CacheFirst', + options: { + cacheName: 'media', + expiration: { + maxEntries: 50, + maxAgeSeconds: 60 * 24 * 60 * 60, // 60 Days + }, + rangeRequests: true, // Support scrubbing }, - rangeRequests: true, // Support scrubbing }, - }, - ], - }, - includeAssets: ['instances.json', 'discord.html'], - manifest: false, // Use existing public/manifest.json - }), - ], + ], + }, + includeAssets: ['instances.json', 'discord.html'], + manifest: false, // Use existing public/manifest.json + }), + ], }; });