Eslint-plugin-react: The rule boolean-prop-naming does not check nested props.

Created on 12 Nov 2018  路  3Comments  路  Source: yannickcr/eslint-plugin-react

When using a shape prop, with a bool prop inside, it is not checked by the rule:

static propTypes = 
  nest: PropTypes.shape({
    eggIsWhite: PropTypes.bool,  // No react/boolean-prop-naming warning here.
  }),
  thisIsChecked: PropTypes.bool,  // react/boolean-prop-naming warning.
}
bug help wanted

All 3 comments

This should be fixed with #2234

@ljharb should this one be closed then?

Yep, thanks :-) closed by #2234.

Was this page helpful?
0 / 5 - 0 ratings