@@ -7,22 +7,6 @@ import reactRefresh from 'eslint-plugin-react-refresh';
77import storybook from 'eslint-plugin-storybook' ;
88import tseslint from 'typescript-eslint' ;
99
10- const reactCompilerReadinessRules = {
11- 'react-hooks/config' : 'warn' ,
12- 'react-hooks/error-boundaries' : 'warn' ,
13- 'react-hooks/gating' : 'warn' ,
14- 'react-hooks/globals' : 'warn' ,
15- 'react-hooks/immutability' : 'warn' ,
16- 'react-hooks/preserve-manual-memoization' : 'warn' ,
17- 'react-hooks/purity' : 'warn' ,
18- 'react-hooks/refs' : 'warn' ,
19- 'react-hooks/set-state-in-effect' : 'warn' ,
20- 'react-hooks/set-state-in-render' : 'warn' ,
21- 'react-hooks/static-components' : 'warn' ,
22- 'react-hooks/unsupported-syntax' : 'warn' ,
23- 'react-hooks/use-memo' : 'warn' ,
24- } ;
25-
2610export default tseslint . config (
2711 tseslint . configs . recommended ,
2812 js . configs . recommended ,
@@ -60,7 +44,19 @@ export default tseslint.config(
6044 // The v7 hooks plugin adds React Compiler readiness diagnostics to the
6145 // Nx React preset. Keep them visible without making compiler adoption a
6246 // repo-wide CI gate before the codebase is migrated.
63- ...reactCompilerReadinessRules ,
47+ 'react-hooks/config' : 'warn' ,
48+ 'react-hooks/error-boundaries' : 'warn' ,
49+ 'react-hooks/gating' : 'warn' ,
50+ 'react-hooks/globals' : 'warn' ,
51+ 'react-hooks/immutability' : 'warn' ,
52+ 'react-hooks/preserve-manual-memoization' : 'warn' ,
53+ 'react-hooks/purity' : 'warn' ,
54+ 'react-hooks/refs' : 'warn' ,
55+ 'react-hooks/set-state-in-effect' : 'warn' ,
56+ 'react-hooks/set-state-in-render' : 'warn' ,
57+ 'react-hooks/static-components' : 'warn' ,
58+ 'react-hooks/unsupported-syntax' : 'warn' ,
59+ 'react-hooks/use-memo' : 'warn' ,
6460 '@nx/enforce-module-boundaries' : [
6561 'error' ,
6662 {
0 commit comments