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