{"action":"created","issue":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/1581","repository_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react","labels_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/1581/labels{/name}","comments_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/1581/comments","events_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/1581/events","html_url":"https://github.com/yannickcr/eslint-plugin-react/issues/1581","id":278882163,"number":1581,"title":"no-unused-prop-types errors when declaring an empty function as a default component prop","user":{"login":"asafda","id":18100624,"avatar_url":"https://avatars1.githubusercontent.com/u/18100624?v=4","gravatar_id":"","url":"https://api.github.com/users/asafda","html_url":"https://github.com/asafda","followers_url":"https://api.github.com/users/asafda/followers","following_url":"https://api.github.com/users/asafda/following{/other_user}","gists_url":"https://api.github.com/users/asafda/gists{/gist_id}","starred_url":"https://api.github.com/users/asafda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asafda/subscriptions","organizations_url":"https://api.github.com/users/asafda/orgs","repos_url":"https://api.github.com/users/asafda/repos","events_url":"https://api.github.com/users/asafda/events{/privacy}","received_events_url":"https://api.github.com/users/asafda/received_events","type":"User","site_admin":false},"labels":[{"id":157842407,"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/labels/bug","name":"bug","color":"fc2929","default":true},{"id":157842410,"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-12-04T06:17:35Z","updated_at":"2017-12-10T15:32:01Z","closed_at":"2017-12-10T15:32:01Z","author_association":"NONE","body":"ESlint version 7.5.1\r\n\r\nWhen adding an empty function as a default prop ESLint exits with the following error:\r\n```\r\nTypeError: Cannot read property 'properties' of undefined\r\n    at markPropTypesAsUsed (/Users/asafdavid/homeis-dev/home-is-mobile/node_modules/eslint-plugin-react/lib/rules/no-unused-prop-types.js:656:38)\r\n    at iterateProperties (/Users/asafdavid/homeis-dev/home-is-mobile/node_modules/eslint-plugin-react/lib/rules/no-unused-prop-types.js:825:15)\r\n    at iterateProperties (/Users/asafdavid/homeis-dev/home-is-mobile/node_modules/eslint-plugin-react/lib/rules/no-unused-prop-types.js:361:11)\r\n    at markPropTypesAsDeclared (/Users/asafdavid/homeis-dev/home-is-mobile/node_modules/eslint-plugin-react/lib/rules/no-unused-prop-types.js:810:11)\r\n    at MemberExpression (/Users/asafdavid/homeis-dev/home-is-mobile/node_modules/eslint-plugin-react/lib/rules/no-unused-prop-types.js:1027:13)\r\n    at listeners.(anonymous function).forEach.listener (/Users/asafdavid/homeis-dev/home-is-mobile/node_modules/eslint/lib/util/safe-emitter.js:47:58)\r\n    at Array.forEach (native)\r\n    at Object.emit (/Users/asafdavid/homeis-dev/home-is-mobile/node_modules/eslint/lib/util/safe-emitter.js:47:38)\r\n    at NodeEventGenerator.applySelector (/Users/asafdavid/homeis-dev/home-is-mobile/node_modules/eslint/lib/util/node-event-generator.js:251:26)\r\n    at NodeEventGenerator.applySelectors (/Users/asafdavid/homeis-dev/home-is-mobile/node_modules/eslint/lib/util/node-event-generator.js:280:22)\r\n```\r\n\r\nThe default prop is declared as follows:\r\n```\r\nFeedWithSubheader.defaultProps = {\r\n  componentRef: (() => {})\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/comments/350556273","html_url":"https://github.com/yannickcr/eslint-plugin-react/issues/1581#issuecomment-350556273","issue_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/1581","id":350556273,"user":{"login":"asafda","id":18100624,"avatar_url":"https://avatars1.githubusercontent.com/u/18100624?v=4","gravatar_id":"","url":"https://api.github.com/users/asafda","html_url":"https://github.com/asafda","followers_url":"https://api.github.com/users/asafda/followers","following_url":"https://api.github.com/users/asafda/following{/other_user}","gists_url":"https://api.github.com/users/asafda/gists{/gist_id}","starred_url":"https://api.github.com/users/asafda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asafda/subscriptions","organizations_url":"https://api.github.com/users/asafda/orgs","repos_url":"https://api.github.com/users/asafda/repos","events_url":"https://api.github.com/users/asafda/events{/privacy}","received_events_url":"https://api.github.com/users/asafda/received_events","type":"User","site_admin":false},"created_at":"2017-12-10T15:32:01Z","updated_at":"2017-12-10T15:32:01Z","author_association":"NONE","body":"I can't reproduce it anymore. I guess it was my mistake as @asbjornh noted.\r\n@AlexMarvelo if you can reproduce please share your code, otherwise i'll just close this issue.\r\nSorry for any time spent on this."}}
{"actor":{"display_login":"asafda"}}