chore: 优化 ESLint 规则,调整 no-console 和 no-debugger 的位置

This commit is contained in:
2025-12-11 03:43:46 +07:00
parent 0af835e17c
commit 508275403a

View File

@@ -24,11 +24,11 @@ export default antfu({
ecmaVersion: 2020,
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-unused-vars": "off",
"unused-imports/no-unused-vars": "off",
"unused-imports/no-unused-imports": "off",
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"vue/no-deprecated-slot-attribute": "off",
"@typescript-eslint/no-explicit-any": "off",
},