Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

chore(lint): enable no-console for src/ JS — SafeLogger required (#3653)

LearningCircuit3455c4573533
diff --git a/eslint.config.js b/eslint.config.js
index 0db99f87df..9720edc938 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -234,6 +234,12 @@ export default [
// Chai-friendly variant exempts `expect(x).to.be.true` style assertions.
"no-unused-expressions": "off",
"chai-friendly/no-unused-expressions": "error",
+
+ // Force SafeLogger usage in browser code — raw console.* leaks
+ // sensitive data to client-side logs in production. SafeLogger
+ // (security/safe-logger.js) sanitises output. Tests and the
+ // SafeLogger module itself are exempted via overrides below.
+ "no-console": "error",
},
languageOptions: {
@@ -285,4 +291,28 @@ export default [
},
},
},
+
+ // SafeLogger is the canonical console.* wrapper — it MUST use raw
+ // console internally. Same pattern the pre-commit hook applies.
+ {
+ files: ["**/security/safe-logger.js"],
+ rules: {
+ "no-console": "off",
+ },
+ },
+
+ // Tests run in Node (Puppeteer/Playwright/vitest harnesses) where
+ // SafeLogger isn't loaded. Plain console.* is the right choice there.
+ // Matches the pre-commit hook's exclude pattern.
+ {
+ files: [
+ "tests/**/*.js",
+ "tests/**/*.mjs",
+ "**/*.test.js",
+ "**/*.spec.js",
+ ],
+ rules: {
+ "no-console": "off",
+ },
+ },
];