build(ui): do not fail build on eslint error in dev mode

This commit is contained in:
psychedelicious 2024-02-24 17:01:38 +11:00 committed by Kent Keirsey
parent 393e32f8a7
commit 0f10faf0d4

View File

@ -57,7 +57,12 @@ export default defineConfig(({ mode }) => {
return {
base: './',
plugins: [react(), mode !== 'test' && eslint(), tsconfigPaths(), visualizer() as unknown as PluginOption],
plugins: [
react(),
mode !== 'test' && eslint({ failOnError: mode === 'production', failOnWarning: mode === 'production' }),
tsconfigPaths(),
visualizer() as unknown as PluginOption,
],
build: {
chunkSizeWarningLimit: 1500,
},