|
@@ -1,5 +1,6 @@
|
|
|
import { defineConfig } from 'vite'
|
|
import { defineConfig } from 'vite'
|
|
|
import vue from '@vitejs/plugin-vue'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
|
+import eslint from 'vite-plugin-eslint'
|
|
|
import path from 'path'
|
|
import path from 'path'
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
// https://vitejs.dev/config/
|
|
@@ -14,7 +15,7 @@ export default defineConfig({
|
|
|
'@': path.resolve(__dirname, './src')
|
|
'@': path.resolve(__dirname, './src')
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- plugins: [vue()],
|
|
|
|
|
|
|
+ plugins: [vue(), eslint({ fix: true, include: ['**/*.ts', '**/*.vue'] })],
|
|
|
server: {
|
|
server: {
|
|
|
host: 'localhost',
|
|
host: 'localhost',
|
|
|
port: 6547,
|
|
port: 6547,
|