You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The react/boolean-prop-naming rule doesn't trigger for nested boolean props. I verified my setup by running eslint against a sample file with a top level boolean prop and a nested boolean prop. As can be seen on the screenshot below, the rule triggers for the top level boolean prop, however, it doesn't trigger for the nested boolean prop even with validateNested config set to true:
To reproduce the issue, run:
yarn eslint src/components/Button.tsx
Expected Behavior
The react/boolean-prop-naming rule should also trigger for the nested boolean props.
eslint-plugin-react version
v7.37.2
eslint version
v8.57.1
node version
v18.19.0
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Description Overview
The
validateNested
configuration option doesn't work for typescript interface props.Sample code:
Link to sample repo: https://github.com/Phebonacci/sample-nextra
The
react/boolean-prop-naming
rule doesn't trigger for nested boolean props. I verified my setup by running eslint against a sample file with a top level boolean prop and a nested boolean prop. As can be seen on the screenshot below, the rule triggers for the top level boolean prop, however, it doesn't trigger for the nested boolean prop even withvalidateNested
config set to true:To reproduce the issue, run:
Expected Behavior
The
react/boolean-prop-naming
rule should also trigger for the nested boolean props.eslint-plugin-react version
v7.37.2
eslint version
v8.57.1
node version
v18.19.0
The text was updated successfully, but these errors were encountered: