From 813105c75ddd7fd1b81eaefa4febc2da5ddf5f64 Mon Sep 17 00:00:00 2001 From: waterWang Date: Thu, 6 Aug 2026 18:02:11 +0800 Subject: [PATCH] ci: add no-console ESLint rule to catch accidental console.log in production Adds the ESLint 'no-console' rule at 'warn' level, allowing console.warn and console.error for intentional logging. Closes #945 --- eslint.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eslint.config.js b/eslint.config.js index ff533c3e..c09eacd8 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -39,6 +39,12 @@ export default tseslint.config({ allow: [], }, ], + 'no-console': [ + 'warn', + { + allow: ['warn', 'error'], + }, + ], }, }, { files: ['**/*.mjs'],