From c6d16ca9c2fd82b4e7a4d70c1588b0e70efc6385 Mon Sep 17 00:00:00 2001 From: Ku6epXBOCTuK Date: Mon, 16 Feb 2026 10:09:02 +0500 Subject: [PATCH] chore: update eslint rules, remove console.log at build --- eslint.config.js | 10 ++++++++++ vite.config.ts | 3 +++ 2 files changed, 13 insertions(+) diff --git a/eslint.config.js b/eslint.config.js index c42333a..052448c 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -24,6 +24,16 @@ export default defineConfig( languageOptions: { globals: { ...globals.browser, ...globals.node } }, rules: { "no-undef": "off", + "no-unused-vars": "off", + "no-console": ["error", { allow: ["warn", "error"] }], + "@typescript-eslint/no-unused-vars": [ + "error", + { + argsIgnorePattern: "^_", + varsIgnorePattern: "^_", + caughtErrorsIgnorePattern: "^_", + }, + ], }, }, { diff --git a/vite.config.ts b/vite.config.ts index 2bb6dd5..8ed9200 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,6 +3,9 @@ import Icons from "unplugin-icons/vite"; import { defineConfig } from "vite"; export default defineConfig({ + esbuild: { + pure: ["console.log"], + }, build: { assetsInlineLimit: Infinity, },