chore: Update eslint

This commit is contained in:
Sidharth Vinod
2025-09-03 01:41:51 +05:30
parent eb9121de12
commit d991139b0a
26 changed files with 1373 additions and 932 deletions
+10 -14
View File
@@ -1,7 +1,8 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { FileSystemIconLoader } from 'unplugin-icons/loaders';
import Icons from 'unplugin-icons/vite';
import { defineConfig } from 'vitest/config';
import { defineConfig } from 'vite';
import devtoolsJson from 'vite-plugin-devtools-json';
/**
* HMR creates state inconsistencies, so we always reload the page.
@@ -24,17 +25,12 @@ export default defineConfig({
custom: FileSystemIconLoader('./static/icons')
}
}),
alwaysFullReload
alwaysFullReload,
devtoolsJson()
],
envPrefix: 'MERMAID_',
server: {
port: 3000,
host: true
},
preview: {
port: 3000,
host: true
},
server: { port: 3000, host: true },
preview: { port: 3000, host: true },
test: {
environment: 'jsdom',
// in-source testing
@@ -42,10 +38,10 @@ export default defineConfig({
// Ignore E2E tests
exclude: [
'tests/**/*',
'**\/node_modules/**',
'**\/dist/**',
'**\/.{idea,git,cache,output,temp}/**',
'**\/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*'
'**/node_modules/**',
'**/dist/**',
'**/.{idea,git,cache,output,temp}/**',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*'
],
setupFiles: ['./src/tests/setup.ts'],
coverage: {