@@ -331,11 +331,11 @@ module.exports = {
331331 'react-hooks/globals' : 'error' , // Validates against assignment/mutation of globals during render
332332 'react-hooks/immutability' : 'error' , // Validates against mutating props, state, and other immutable values
333333 'react-hooks/incompatible-library' : 'error' , // Validates against usage of libraries which are incompatible with memoization
334- 'react-hooks/preserve-manual-memoization' : 'error ' , // Validates that existing manual memoization is preserved by the compiler
334+ 'react-hooks/preserve-manual-memoization' : 'warn ' , // Validates that existing manual memoization is preserved by the compiler
335335 'react-hooks/purity' : 'error' , // Validates that components/hooks are pure by checking known-impure functions
336- 'react-hooks/refs' : 'error ' , // Validates correct usage of refs, not reading/writing during render
337- 'react-hooks/set-state-in-effect' : 'error ' , // Validates against calling setState synchronously in an effect
338- 'react-hooks/set-state-in-render' : 'error ' , // Validates against setting state during render
336+ 'react-hooks/refs' : 'warn ' , // Validates correct usage of refs, not reading/writing during render
337+ 'react-hooks/set-state-in-effect' : 'warn ' , // Validates against calling setState synchronously in an effect
338+ 'react-hooks/set-state-in-render' : 'warn ' , // Validates against setting state during render
339339 'react-hooks/static-components' : 'error' , // Validates that components are static, not recreated every render
340340 'react-hooks/unsupported-syntax' : 'error' , // Validates against syntax that React Compiler does not support
341341 'react-hooks/use-memo' : 'error' , // Validates usage of the useMemo hook without a return value
0 commit comments