Skip to content

Commit 4218002

Browse files
committed
Set most commonly violated rules to warn
1 parent ccf0c2d commit 4218002

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.eslintrc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)