Closed
Description
The Airbnb styleguide recommends putting proptypes in a variable at the top of the file, and then assigning it into propTypes. This causes the linting of propTypes to fail.
The following does not cause any linting errors, despite not including the proptypes validation.
const propTypes = {};
class Test extends React.Component {
render() {
return (
<div>{this.props.name}</div>
);
}
}
Test.propTypes = propTypes;