You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importReactfrom"react";varHello=React.createClass({propTypes: {name: React.PropTypes.string},render: function(){return<div>Hello Bob {this.props.foo}</div>;}});
$ eslint --no-eslintrc --parser-options="{sourceType: \"module\", ecmaVersion: 6, ecmaFeatures: {jsx:true}}" --plugin react --rule react/no-unused-prop-types:error js/Hello.jsx
js/Hello.jsx
5:11 error 'name' PropType is defined but prop is never used react/no-unused-prop-types
✖ 1 problem (1 error, 0 warnings)
The text was updated successfully, but these errors were encountered:
This is almost identical to the first example in the docs.
By contrast, this does trigger:
The text was updated successfully, but these errors were encountered: