From dc3e84d8206d9ecf4af52eee5da2a7a113335fa9 Mon Sep 17 00:00:00 2001 From: xiaoyu <7547189+xytoki@users.noreply.github.com> Date: Wed, 5 Jun 2024 00:00:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=88=20style:=20fix=20prettier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.mjs | 9 ++++++--- vue.config.js | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/vite.config.mjs b/vite.config.mjs index 27e3231..8f9f8a2 100644 --- a/vite.config.mjs +++ b/vite.config.mjs @@ -78,9 +78,12 @@ export default defineConfig(({ command, mode }) => { checker({ typescript: true, vueTsc: true, - eslint: { - lintCommand: 'eslint ./**/*.{js,ts,vue} --ext .js,.ts,.vue', - }, + eslint: + command === 'build' + ? undefined + : { + lintCommand: 'eslint ./**/*.{js,ts,vue} --ext .js,.ts,.vue', + }, }), vue(), AutoImport({ diff --git a/vue.config.js b/vue.config.js index 621d4ad..99bb5d4 100644 --- a/vue.config.js +++ b/vue.config.js @@ -29,7 +29,7 @@ const useSWC = isCI ? 'compile' : 'true' const useSentry = false - // !process.argv.includes('--no-sentry') && process.env.NODE_ENV === 'production' && !!process.env.SENTRY_KEY +// !process.argv.includes('--no-sentry') && process.env.NODE_ENV === 'production' && !!process.env.SENTRY_KEY process.env.VUE_APP_BUILD = require('dayjs')().format('YYMMDDHHmm') process.env.VUE_APP_ROUTER_HASH = singleFile ? 'true' : 'false' process.env.VUE_APP_SINGLEFILE = singleFile ? 'true' : 'false'