Skip to content

Commit b5bf4b8

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

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.eslintrc.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,13 @@ module.exports = {
329329
'react-hooks/error-boundaries': 'error', // Validates usage of Error Boundaries instead of try/catch for child errors
330330
'react-hooks/gating': 'error', // Validates configuration of gating mode
331331
'react-hooks/globals': 'error', // Validates against assignment/mutation of globals during render
332-
'react-hooks/immutability': 'error', // Validates against mutating props, state, and other immutable values
332+
'react-hooks/immutability': 'warn', // 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
335-
'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
334+
'react-hooks/preserve-manual-memoization': 'warn', // Validates that existing manual memoization is preserved by the compiler
335+
'react-hooks/purity': 'warn', // Validates that components/hooks are pure by checking known-impure functions
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)