The react/jsx-boolean-value rule appears to only work with boolean props that have been assigned true literals. However, I have a codebase that sometimes contains (as an example) <MyComponent someBooleanProp={false} ... />
Is it possible to add a configuration option for this rule to flag these instances as props that should be removed completely (maybe even with autofix)?
If not, is there perhaps another rule that can help me achieve this?
Thanks!
The
react/jsx-boolean-valuerule appears to only work with boolean props that have been assignedtrueliterals. However, I have a codebase that sometimes contains (as an example)<MyComponent someBooleanProp={false} ... />Is it possible to add a configuration option for this rule to flag these instances as props that should be removed completely (maybe even with autofix)?
If not, is there perhaps another rule that can help me achieve this?
Thanks!