{"action":"created","issue":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/819","repository_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react","labels_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/819/labels{/name}","comments_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/819/comments","events_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/819/events","html_url":"https://github.com/yannickcr/eslint-plugin-react/issues/819","id":176213671,"number":819,"title":"no-unused-prop-types does not recognize use of prop inside Array.map()","user":{"login":"smsenesac","id":910535,"avatar_url":"https://avatars.githubusercontent.com/u/910535?v=3","gravatar_id":"","url":"https://api.github.com/users/smsenesac","html_url":"https://github.com/smsenesac","followers_url":"https://api.github.com/users/smsenesac/followers","following_url":"https://api.github.com/users/smsenesac/following{/other_user}","gists_url":"https://api.github.com/users/smsenesac/gists{/gist_id}","starred_url":"https://api.github.com/users/smsenesac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smsenesac/subscriptions","organizations_url":"https://api.github.com/users/smsenesac/orgs","repos_url":"https://api.github.com/users/smsenesac/repos","events_url":"https://api.github.com/users/smsenesac/events{/privacy}","received_events_url":"https://api.github.com/users/smsenesac/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-11T01:25:49Z","updated_at":"2016-10-01T00:34:24Z","closed_at":null,"body":"In the following example, no-unused-prop-types will flag a non-use of arrayOfObjWithFoo.*.foo:\r\n\r\n```jsx\r\n    static PropTypes = {\r\n      arrayOfObjWithFoo: PropTypes.arrayOf(\r\n        PropTypes.shape({ foo: PropTypes.string.isRequired })\r\n      ).isRequired\r\n    };\r\n\r\n    render() {\r\n      const fooItems = this.props.arrayOfObjWithFoo.map(objWithFoo => {\r\n        <Item foo={objWithFoo.foo} />\r\n      });\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/comments/250881078","html_url":"https://github.com/yannickcr/eslint-plugin-react/issues/819#issuecomment-250881078","issue_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/819","id":250881078,"user":{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"created_at":"2016-10-01T00:34:24Z","updated_at":"2016-10-01T00:34:24Z","body":"I'm saying that if that option is required for the rule to be usable when using shapes, then the rule should never check shapes."}}
{"actor":{"display_login":"ljharb"}}