Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore: lint for react compiler (#30417)

Stephen Zhou27be89c9848d
diff --git a/web/eslint.config.mjs b/web/eslint.config.mjs
index 89f6d292cda..574dbb091e9 100644
--- a/web/eslint.config.mjs
+++ b/web/eslint.config.mjs
@@ -13,6 +13,24 @@ export default antfu(
'react/no-forward-ref': 'off',
'react/no-use-context': 'off',
'react/prefer-namespace-import': 'error',
+
+ // React Compiler rules
+ // Set to warn for gradual adoption
+ 'react-hooks/config': 'warn',
+ 'react-hooks/error-boundaries': 'warn',
+ 'react-hooks/component-hook-factories': 'warn',
+ 'react-hooks/gating': 'warn',
+ 'react-hooks/globals': 'warn',
+ 'react-hooks/immutability': 'warn',
+ 'react-hooks/preserve-manual-memoization': 'warn',
+ 'react-hooks/purity': 'warn',
+ 'react-hooks/refs': 'warn',
+ 'react-hooks/set-state-in-effect': 'warn',
+ 'react-hooks/set-state-in-render': 'warn',
+ 'react-hooks/static-components': 'warn',
+ 'react-hooks/unsupported-syntax': 'warn',
+ 'react-hooks/use-memo': 'warn',
+ 'react-hooks/incompatible-library': 'warn',
},
},
nextjs: true,