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 Brandon Rising
parent 70d7b1c756
commit f24b3c64d3

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,
},