Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

chore(eslint): pin react-hooks to proven rules only (#626)

Gabriel Stein2db3ce668871
diff --git a/eslint.config.js b/eslint.config.js
index c433559c5..a5e0e72c5 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -26,7 +26,10 @@ module.exports = [
rules: {
...js.configs.recommended.rules,
// Relaxed rules - catch syntax errors but don't be too strict
- "no-unused-vars": ["warn", { varsIgnorePattern: "^_", argsIgnorePattern: "^_|^event|^err|^error" }],
+ "no-unused-vars": [
+ "warn",
+ { varsIgnorePattern: "^_", argsIgnorePattern: "^_|^event|^err|^error" },
+ ],
"no-console": "off",
"no-empty": ["error", { allowEmptyCatch: true }],
"no-constant-condition": ["error", { checkLoops: false }],
diff --git a/src/eslint.config.js b/src/eslint.config.js
index d9c671095..267824246 100644
--- a/src/eslint.config.js
+++ b/src/eslint.config.js
@@ -27,7 +27,8 @@ export default [
},
rules: {
...js.configs.recommended.rules,
- ...reactHooks.configs.recommended.rules,
+ "react-hooks/rules-of-hooks": "error",
+ "react-hooks/exhaustive-deps": "warn",
"no-unused-vars": [
"warn",
{ varsIgnorePattern: "^[A-Z_]", argsIgnorePattern: "^_|^event|^err|^error" },
@@ -62,7 +63,8 @@ export default [
"@typescript-eslint": tseslint.plugin,
},
rules: {
- ...reactHooks.configs.recommended.rules,
+ "react-hooks/rules-of-hooks": "error",
+ "react-hooks/exhaustive-deps": "warn",
"no-undef": "off",
"no-unused-vars": "off",
"no-console": "off",