Enable react/jsx-boolean-value rule
Summary:
This checks for unnecessary boolean assignments in JSX,
e.g. `grow={true}` which can just be `grow`.
Saw this because mweststrate commented this on a diff.
Reviewed By: mweststrate
Differential Revision: D28329647
fbshipit-source-id: ed408a0d4977315cdd0ff2d13024bb720c27e24a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2f90f432eb
commit
8ba27f5487
@@ -49,6 +49,8 @@ module.exports = {
|
||||
'flowtype/define-flow-type': 0,
|
||||
'flowtype/use-flow-type': 0,
|
||||
'react/react-in-jsx-scope': 0, // not needed with our metro implementation
|
||||
// Disallow boolean JSX properties set to true, e.g. `grow={true}`.
|
||||
'react/jsx-boolean-value': ['warn', 'never'],
|
||||
'react-hooks/rules-of-hooks': 'error',
|
||||
'react-hooks/exhaustive-deps': 'warn',
|
||||
'react/jsx-key': 'error',
|
||||
|
||||
Reference in New Issue
Block a user