- Migrated from `.eslintrc.cjs` to `eslint.config.js` to leverage flat configuration format. - Updated ESLint rules and integrated Vue 3, TypeScript, and global considerations. - Adjusted project structure with improved component rendering patterns and prop validation logic. - Introduced asynchronous imports for better performance. - Cleaned up unused styles and refined templates/layouts, enhancing cohesion and readability. - Updated `yarn.lock` to align with dependency changes and removed unused packages. - Added `.nanocoder` commands for common tasks including `component`, `refactor`, `review`, and `test`. - Improved tooling support (`agents.config.json`) with provider integrations and streamlined permissions.
33 lines
748 B
TypeScript
33 lines
748 B
TypeScript
/// <reference types="vitest" />
|
|
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
import Vue from '@vitejs/plugin-vue'
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
plugins: [Vue()],
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./src/test/setup.ts'],
|
|
include: ['src/**/*.spec.ts', 'src/**/*.test.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html'],
|
|
exclude: [
|
|
'node_modules/',
|
|
'src/test/',
|
|
'**/*.d.ts',
|
|
'src/auto-imports.d.ts',
|
|
'src/components.d.ts',
|
|
'src/typed-router.d.ts',
|
|
],
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
})
|