chore: update eslint rules, remove console.log at build

This commit is contained in:
2026-02-16 10:09:02 +05:00
parent 387c1751c6
commit c6d16ca9c2
2 changed files with 13 additions and 0 deletions
+10
View File
@@ -24,6 +24,16 @@ export default defineConfig(
languageOptions: { globals: { ...globals.browser, ...globals.node } }, languageOptions: { globals: { ...globals.browser, ...globals.node } },
rules: { rules: {
"no-undef": "off", "no-undef": "off",
"no-unused-vars": "off",
"no-console": ["error", { allow: ["warn", "error"] }],
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
}, },
}, },
{ {
+3
View File
@@ -3,6 +3,9 @@ import Icons from "unplugin-icons/vite";
import { defineConfig } from "vite"; import { defineConfig } from "vite";
export default defineConfig({ export default defineConfig({
esbuild: {
pure: ["console.log"],
},
build: { build: {
assetsInlineLimit: Infinity, assetsInlineLimit: Infinity,
}, },