From d333b79ee110805cd861a5187fe3786133429e16 Mon Sep 17 00:00:00 2001 From: jon r Date: Sat, 22 Feb 2025 21:59:03 +0100 Subject: [PATCH] chore(eslint): apply ts style guide to vite config --- front/ui-docs/vite.config.ts | 14 +++++++------- front/vite.config.ts | 7 +++---- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/front/ui-docs/vite.config.ts b/front/ui-docs/vite.config.ts index 63673f9b2..dca558272 100644 --- a/front/ui-docs/vite.config.ts +++ b/front/ui-docs/vite.config.ts @@ -23,18 +23,18 @@ export default defineConfig({ @import "~/style/inc/theme.scss"; @import "~/style/inc/docs.scss"; @import "~/style/funkwhale.scss"; - `, - }, - }, + ` + } + } }, build: { rollupOptions: { - external: ["vue", 'vue-i18n', '@vueuse/core', 'vue-router', 'vue-devtools'], + external: ['vue', 'vue-i18n', '@vueuse/core', 'vue-router', 'vue-devtools'], output: { globals: { - Vue: "vue" + Vue: 'vue' } } - }, - }, + } + } }) diff --git a/front/vite.config.ts b/front/vite.config.ts index 322c96e0f..e35b918d6 100644 --- a/front/vite.config.ts +++ b/front/vite.config.ts @@ -52,22 +52,21 @@ export default defineConfig(({ mode }) => ({ // see: https://github.com/Borewit/music-metadata-browser/issues/836 nodePolyfills(), - // https://unocss.dev/ UnoCSS(), - vueDevTools(), + vueDevTools() ], server: { port: +(process.env.VUE_PORT ?? 8080), watch: { - usePolling: true, + usePolling: true } }, resolve: { alias: [ { find: '#', replacement: fileURLToPath(new URL('./src/ui/workers', import.meta.url)) }, { find: '?', replacement: fileURLToPath(new URL('./test', import.meta.url)) }, - { find: '~', replacement: fileURLToPath(new URL('./src', import.meta.url)) }, + { find: '~', replacement: fileURLToPath(new URL('./src', import.meta.url)) } ] }, css: {