{"action":"closed","number":234,"pull_request":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/pulls/234","id":46662824,"html_url":"https://github.com/yannickcr/eslint-plugin-react/pull/234","diff_url":"https://github.com/yannickcr/eslint-plugin-react/pull/234.diff","patch_url":"https://github.com/yannickcr/eslint-plugin-react/pull/234.patch","issue_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/234","number":234,"state":"closed","locked":false,"title":"Fix crash with destructured PropTypes","user":{"login":"epmatsw","id":1126580,"avatar_url":"https://avatars.githubusercontent.com/u/1126580?v=3","gravatar_id":"","url":"https://api.github.com/users/epmatsw","html_url":"https://github.com/epmatsw","followers_url":"https://api.github.com/users/epmatsw/followers","following_url":"https://api.github.com/users/epmatsw/following{/other_user}","gists_url":"https://api.github.com/users/epmatsw/gists{/gist_id}","starred_url":"https://api.github.com/users/epmatsw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epmatsw/subscriptions","organizations_url":"https://api.github.com/users/epmatsw/orgs","repos_url":"https://api.github.com/users/epmatsw/repos","events_url":"https://api.github.com/users/epmatsw/events{/privacy}","received_events_url":"https://api.github.com/users/epmatsw/received_events","type":"User","site_admin":false},"body":"Forbid-prop-types will crash if you have a bit of code that looks like:\r\n```\r\nvar object = React.PropTypes.object;\r\nvar Comp = React.createClass({\r\n  propTypes: {\r\n    someProp: object\r\n  },\r\n  render: function() {.....}\r\n});\r\n```\r\nThis pull request fixes that issue and adds a test case to ensure that the above is correctly flagged as an error.\r\n","created_at":"2015-10-02T17:51:48Z","updated_at":"2015-10-06T23:16:23Z","closed_at":"2015-10-06T23:16:23Z","merged_at":"2015-10-06T23:16:23Z","merge_commit_sha":"d918ac8fe3cb2b3c1ab928b40f8c6a1a82045be8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/pulls/234/commits","review_comments_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/pulls/234/comments","review_comment_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/234/comments","statuses_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/statuses/41de2c20a9d62cdbdf54f3cb2b5c8e4855fab95d","head":{"label":"epmatsw:fix-forbid-proptypes","ref":"fix-forbid-proptypes","sha":"41de2c20a9d62cdbdf54f3cb2b5c8e4855fab95d","user":{"login":"epmatsw","id":1126580,"avatar_url":"https://avatars.githubusercontent.com/u/1126580?v=3","gravatar_id":"","url":"https://api.github.com/users/epmatsw","html_url":"https://github.com/epmatsw","followers_url":"https://api.github.com/users/epmatsw/followers","following_url":"https://api.github.com/users/epmatsw/following{/other_user}","gists_url":"https://api.github.com/users/epmatsw/gists{/gist_id}","starred_url":"https://api.github.com/users/epmatsw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epmatsw/subscriptions","organizations_url":"https://api.github.com/users/epmatsw/orgs","repos_url":"https://api.github.com/users/epmatsw/repos","events_url":"https://api.github.com/users/epmatsw/events{/privacy}","received_events_url":"https://api.github.com/users/epmatsw/received_events","type":"User","site_admin":false},"repo":{"id":41872891,"name":"eslint-plugin-react","full_name":"epmatsw/eslint-plugin-react","owner":{"login":"epmatsw","id":1126580,"avatar_url":"https://avatars.githubusercontent.com/u/1126580?v=3","gravatar_id":"","url":"https://api.github.com/users/epmatsw","html_url":"https://github.com/epmatsw","followers_url":"https://api.github.com/users/epmatsw/followers","following_url":"https://api.github.com/users/epmatsw/following{/other_user}","gists_url":"https://api.github.com/users/epmatsw/gists{/gist_id}","starred_url":"https://api.github.com/users/epmatsw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epmatsw/subscriptions","organizations_url":"https://api.github.com/users/epmatsw/orgs","repos_url":"https://api.github.com/users/epmatsw/repos","events_url":"https://api.github.com/users/epmatsw/events{/privacy}","received_events_url":"https://api.github.com/users/epmatsw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/epmatsw/eslint-plugin-react","description":"React specific linting rules for ESLint","fork":true,"url":"https://api.github.com/repos/epmatsw/eslint-plugin-react","forks_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/forks","keys_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/teams","hooks_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/hooks","issue_events_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/issues/events{/number}","events_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/events","assignees_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/assignees{/user}","branches_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/branches{/branch}","tags_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/tags","blobs_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/statuses/{sha}","languages_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/languages","stargazers_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/stargazers","contributors_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/contributors","subscribers_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/subscribers","subscription_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/subscription","commits_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/contents/{+path}","compare_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/merges","archive_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/downloads","issues_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/issues{/number}","pulls_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/pulls{/number}","milestones_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/milestones{/number}","notifications_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/labels{/name}","releases_url":"https://api.github.com/repos/epmatsw/eslint-plugin-react/releases{/id}","created_at":"2015-09-03T17:12:16Z","updated_at":"2015-09-03T17:12:18Z","pushed_at":"2015-10-02T19:21:31Z","git_url":"git://github.com/epmatsw/eslint-plugin-react.git","ssh_url":"git@github.com:epmatsw/eslint-plugin-react.git","clone_url":"https://github.com/epmatsw/eslint-plugin-react.git","svn_url":"https://github.com/epmatsw/eslint-plugin-react","homepage":null,"size":453,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yannickcr:master","ref":"master","sha":"69fe6d869b80ff102a5f2f7fa32228b7b267422a","user":{"login":"yannickcr","id":13209,"avatar_url":"https://avatars.githubusercontent.com/u/13209?v=3","gravatar_id":"","url":"https://api.github.com/users/yannickcr","html_url":"https://github.com/yannickcr","followers_url":"https://api.github.com/users/yannickcr/followers","following_url":"https://api.github.com/users/yannickcr/following{/other_user}","gists_url":"https://api.github.com/users/yannickcr/gists{/gist_id}","starred_url":"https://api.github.com/users/yannickcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannickcr/subscriptions","organizations_url":"https://api.github.com/users/yannickcr/orgs","repos_url":"https://api.github.com/users/yannickcr/repos","events_url":"https://api.github.com/users/yannickcr/events{/privacy}","received_events_url":"https://api.github.com/users/yannickcr/received_events","type":"User","site_admin":false},"repo":{"id":28061676,"name":"eslint-plugin-react","full_name":"yannickcr/eslint-plugin-react","owner":{"login":"yannickcr","id":13209,"avatar_url":"https://avatars.githubusercontent.com/u/13209?v=3","gravatar_id":"","url":"https://api.github.com/users/yannickcr","html_url":"https://github.com/yannickcr","followers_url":"https://api.github.com/users/yannickcr/followers","following_url":"https://api.github.com/users/yannickcr/following{/other_user}","gists_url":"https://api.github.com/users/yannickcr/gists{/gist_id}","starred_url":"https://api.github.com/users/yannickcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannickcr/subscriptions","organizations_url":"https://api.github.com/users/yannickcr/orgs","repos_url":"https://api.github.com/users/yannickcr/repos","events_url":"https://api.github.com/users/yannickcr/events{/privacy}","received_events_url":"https://api.github.com/users/yannickcr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yannickcr/eslint-plugin-react","description":"React specific linting rules for ESLint","fork":false,"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react","forks_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/forks","keys_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/teams","hooks_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/hooks","issue_events_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/events{/number}","events_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/events","assignees_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/assignees{/user}","branches_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/branches{/branch}","tags_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/tags","blobs_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/statuses/{sha}","languages_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/languages","stargazers_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/stargazers","contributors_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/contributors","subscribers_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/subscribers","subscription_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/subscription","commits_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/contents/{+path}","compare_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/merges","archive_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/downloads","issues_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues{/number}","pulls_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/pulls{/number}","milestones_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/milestones{/number}","notifications_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/labels{/name}","releases_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/releases{/id}","created_at":"2014-12-15T23:44:14Z","updated_at":"2015-10-06T15:57:10Z","pushed_at":"2015-10-06T23:16:23Z","git_url":"git://github.com/yannickcr/eslint-plugin-react.git","ssh_url":"git@github.com:yannickcr/eslint-plugin-react.git","clone_url":"https://github.com/yannickcr/eslint-plugin-react.git","svn_url":"https://github.com/yannickcr/eslint-plugin-react","homepage":null,"size":1150,"stargazers_count":525,"watchers_count":525,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":55,"mirror_url":null,"open_issues_count":29,"forks":55,"open_issues":29,"watchers":525,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yannickcr/eslint-plugin-react/pulls/234"},"html":{"href":"https://github.com/yannickcr/eslint-plugin-react/pull/234"},"issue":{"href":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/234"},"comments":{"href":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/234/comments"},"review_comments":{"href":"https://api.github.com/repos/yannickcr/eslint-plugin-react/pulls/234/comments"},"review_comment":{"href":"https://api.github.com/repos/yannickcr/eslint-plugin-react/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yannickcr/eslint-plugin-react/pulls/234/commits"},"statuses":{"href":"https://api.github.com/repos/yannickcr/eslint-plugin-react/statuses/41de2c20a9d62cdbdf54f3cb2b5c8e4855fab95d"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"yannickcr","id":13209,"avatar_url":"https://avatars.githubusercontent.com/u/13209?v=3","gravatar_id":"","url":"https://api.github.com/users/yannickcr","html_url":"https://github.com/yannickcr","followers_url":"https://api.github.com/users/yannickcr/followers","following_url":"https://api.github.com/users/yannickcr/following{/other_user}","gists_url":"https://api.github.com/users/yannickcr/gists{/gist_id}","starred_url":"https://api.github.com/users/yannickcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannickcr/subscriptions","organizations_url":"https://api.github.com/users/yannickcr/orgs","repos_url":"https://api.github.com/users/yannickcr/repos","events_url":"https://api.github.com/users/yannickcr/events{/privacy}","received_events_url":"https://api.github.com/users/yannickcr/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":27,"deletions":3,"changed_files":2}}