chore: 更新 ESLint 配置,禁用未使用变量和导入的规则

This commit is contained in:
2025-12-11 03:36:18 +07:00
parent 5f5d4e05ce
commit 2b0fe71283

View File

@@ -24,6 +24,9 @@ export default antfu({
ecmaVersion: 2020, ecmaVersion: 2020,
}, },
rules: { rules: {
"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-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off", "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"vue/no-deprecated-slot-attribute": "off", "vue/no-deprecated-slot-attribute": "off",