chore: update eslint rules, remove console.log at build
This commit is contained in:
@@ -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: "^_",
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -3,6 +3,9 @@ import Icons from "unplugin-icons/vite";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
export default defineConfig({
|
||||
esbuild: {
|
||||
pure: ["console.log"],
|
||||
},
|
||||
build: {
|
||||
assetsInlineLimit: Infinity,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user