I have:
import PropTypes from 'prop-types';
...
// eslint-disable-next-line react/boolean-prop-naming
open: PropTypes.bool.isRequired,
But if I do
import { bool } from 'prop-types';
...
open: bool.isRequired,
instead then I don't need to ignore the rule & the rule is not applied.
The rule should be applied in the case of a named export of bool from prop-types.
I added a test for this and it seems to pass? Or maybe there is some other way to reproduce it? 🤷♂️ Let me know if you'd like me to create a PR. I didn't see a similar test present.
@ajkovar it'd be great if you sent a PR with that test, so we can close this issue with it :-)
Sure thing. PR created.