refactor: lint (#6511)

* refactor: lint

* chore: remove eslint-plugin/config-prettier
This commit is contained in:
Slinetrac
2026-03-15 07:40:11 +00:00
committed by GitHub
parent 41c3a166a5
commit c672a6fef3
264 changed files with 18749 additions and 18942 deletions
+15 -15
View File
@@ -1,39 +1,39 @@
import path from "node:path";
import path from 'node:path'
import legacy from "@vitejs/plugin-legacy";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import svgr from "vite-plugin-svgr";
import legacy from '@vitejs/plugin-legacy'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import svgr from 'vite-plugin-svgr'
export default defineConfig({
root: "src",
root: 'src',
server: { port: 3000 },
plugins: [
svgr(),
react(),
legacy({
modernTargets: ["edge>=109", "safari>=14"],
modernTargets: ['edge>=109', 'safari>=14'],
renderLegacyChunks: false,
modernPolyfills: ["es.object.has-own", "web.structured-clone"],
modernPolyfills: ['es.object.has-own', 'web.structured-clone'],
additionalModernPolyfills: [
path.resolve("./src/polyfills/matchMedia.js"),
path.resolve("./src/polyfills/WeakRef.js"),
path.resolve("./src/polyfills/RegExp.js"),
path.resolve('./src/polyfills/matchMedia.js'),
path.resolve('./src/polyfills/WeakRef.js'),
path.resolve('./src/polyfills/RegExp.js'),
],
}),
],
build: {
outDir: "../dist",
outDir: '../dist',
emptyOutDir: true,
chunkSizeWarningLimit: 4000,
},
resolve: {
alias: {
"@": path.resolve("./src"),
"@root": path.resolve("."),
'@': path.resolve('./src'),
'@root': path.resolve('.'),
},
},
define: {
OS_PLATFORM: `"${process.platform}"`,
},
});
})