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 5 more zero-cost ESLint safety rules (#3620)

LearningCircuit0dcc36f34102
diff --git a/eslint.config.js b/eslint.config.js
index b351221c0d..ba6d2c5d30 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -199,6 +199,13 @@ export default [
// Exhaustiveness
"default-case": "error",
"new-cap": ["error", { "newIsCapExceptions": ["jsPDFLib"] }],
+
+ // --- Zero-cost safety bundle v5 ---
+ "no-constant-binary-expression": "error",
+ "no-compare-neg-zero": "error",
+ "for-direction": "error",
+ "no-buffer-constructor": "error",
+ "no-path-concat": "error",
},
languageOptions: {
diff --git a/tests/ui_tests/library/test_library_documents.js b/tests/ui_tests/library/test_library_documents.js
index 40662d80e7..4fbe7f071c 100644
--- a/tests/ui_tests/library/test_library_documents.js
+++ b/tests/ui_tests/library/test_library_documents.js
@@ -275,7 +275,7 @@ describe('Library Documents UI Tests', () => {
if (require.main === module) {
const { execSync } = require('child_process');
try {
- execSync('npx jest ' + __filename + ' --testTimeout=60000', { stdio: 'inherit' });
+ execSync(`npx jest ${__filename} --testTimeout=60000`, { stdio: 'inherit' });
} catch {
process.exit(1);
}