Remove console.log from debugging

This commit is contained in:
Julian Stirling 2026-05-15 10:57:54 +00:00
parent f0648a1613
commit 177f1c437d
2 changed files with 3 additions and 7 deletions

View file

@ -5,7 +5,7 @@ import prettierConfig from "eslint-config-prettier";
import globals from "globals";
import pinia from "eslint-plugin-pinia";
const isProd = process.env.NODE_ENV === "production";
const isDev = process.env.NODE_ENV === "development";
export default [
{
@ -38,8 +38,8 @@ export default [
rules: {
"prettier/prettier": "warn",
// Environment-based rules
"no-console": isProd ? "warn" : "off",
"no-debugger": isProd ? "warn" : "off",
"no-console": isDev ? "off" : ["warn", { allow: ["warn", "error"] }],
"no-debugger": isDev ? "off" : "warn",
// Vue deprecations
"vue/no-deprecated-slot-attribute": "warn",