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, },