23 lines
453 B
TypeScript
23 lines
453 B
TypeScript
import { defineConfig } from "vite";
|
|
import { checker } from "vite-plugin-checker";
|
|
import react from "@vitejs/plugin-react";
|
|
import eslint from "vite-plugin-eslint";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
server: {
|
|
host: true,
|
|
},
|
|
plugins: [
|
|
{
|
|
...react(),
|
|
...checker({
|
|
typescript: true,
|
|
eslint: {
|
|
lintCommand: 'eslint "./src/**/*.{ts,tsx}"',
|
|
},
|
|
}),
|
|
},
|
|
],
|
|
});
|