Consider this :
import PropTypes from 'prop-types';
[...]
Component.propTypes = {
someProp: PropTypes.array,
}
and :
import PropTypes from 'prop-types';
[...]
Component.propTypes = {
someProp: PropTypes.arrayOf(PropTypes.any),
}
The first will make eslint trigger error in editor :
Prop type 'array' is forbidden eslint(react/forbid-prop-types)
However, they both will trigger the same error if condition is not respected, and according to the documentation, it should behave the exact same way.
Is there any difference between those two validations ?
(And can I ignore this error ?)