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

LearningCircuit03a863d758d5
diff --git a/eslint.config.js b/eslint.config.js
index cd369200d7..b351221c0d 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -175,6 +175,30 @@ export default [
"require-yield": "error",
"symbol-description": "error",
"yoda": "error",
+
+ // --- Zero-cost safety bundle v4 ---
+ // Correctness / real-bug catchers
+ "accessor-pairs": "error",
+ "getter-return": "error",
+ "no-dupe-class-members": "error",
+ "no-ex-assign": "error",
+ "no-fallthrough": "error",
+ "no-global-assign": "error",
+ "no-misleading-character-class": "error",
+ "no-regex-spaces": "error",
+ "no-sparse-arrays": "error",
+ "no-unexpected-multiline": "error",
+ "no-unsafe-optional-chaining": "error",
+ // Dead / pointless code
+ "no-div-regex": "error",
+ "no-empty-character-class": "error",
+ "no-empty-pattern": "error",
+ "no-empty-static-block": "error",
+ "no-extra-label": "error",
+ "no-inner-declarations": "error",
+ // Exhaustiveness
+ "default-case": "error",
+ "new-cap": ["error", { "newIsCapExceptions": ["jsPDFLib"] }],
},
languageOptions: {
diff --git a/tests/ui_tests/check_test_status.js b/tests/ui_tests/check_test_status.js
index e1d1605423..bd9d49fc12 100644
--- a/tests/ui_tests/check_test_status.js
+++ b/tests/ui_tests/check_test_status.js
@@ -101,6 +101,9 @@ async function main() {
console.log(' 💥 ERROR');
results.error.push(test);
break;
+ default:
+ console.log(` ❔ UNKNOWN (${result.status})`);
+ break;
}
}
diff --git a/tests/ui_tests/mobile/test_mobile_navigation_ci.js b/tests/ui_tests/mobile/test_mobile_navigation_ci.js
index 360f15145d..f481304f3f 100644
--- a/tests/ui_tests/mobile/test_mobile_navigation_ci.js
+++ b/tests/ui_tests/mobile/test_mobile_navigation_ci.js
@@ -98,6 +98,7 @@ class TestResults {
case '&': return '&';
case '\'': return ''';
case '"': return '"';
+ default: return c;
}
});
}