Closed
Description
Plugin version - 4.2.1
forEach is considered as a prop that I need to validate instead of being recognised as an inbuilt function.
Sample code below
import React, { PropTypes } from 'react';
function JobList(props) {
const jobs = [];
props
.jobs
.forEach(() => {}); // error here saying 'forEach missing in props validation'
return (
<div></div>
);
}
JobList.propTypes = {
jobs: PropTypes.arrayOf(
PropTypes.shape({
id: PropTypes.string.isRequired,
})
),
};