Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🧹 chore: Update ESLint rules for React hooks (#6685)

Ruben Talstracfa44de1c93c
diff --git a/eslint.config.mjs b/eslint.config.mjs
index 67e3f24f4d..b86eb9fe67 100644
--- a/eslint.config.mjs
+++ b/eslint.config.mjs
@@ -286,10 +286,12 @@ export default [
rules: {
// i18n
'i18next/no-literal-string': [
- 'error', {
+ 'error',
+ {
mode: 'jsx-text-only',
'should-validate-template': true,
- }],
+ },
+ ],
//
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-unused-vars': 'off',
@@ -299,8 +301,8 @@ export default [
'@typescript-eslint/ban-ts-comment': 'off',
// React
'react/no-unknown-property': 'warn',
- 'react-hooks/rules-of-hooks': 'off',
- 'react-hooks/exhaustive-deps': 'off',
+ 'react-hooks/rules-of-hooks': 'error',
+ 'react-hooks/exhaustive-deps': 'warn',
// General
'no-constant-binary-expression': 'off',
'import/no-cycle': 'off',