{"action":"created","issue":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/2396","repository_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react","labels_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/2396/labels{/name}","comments_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/2396/comments","events_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/2396/events","html_url":"https://github.com/yannickcr/eslint-plugin-react/issues/2396","id":487138690,"node_id":"MDU6SXNzdWU0ODcxMzg2OTA=","number":2396,"title":"`defaultProps` rule to be deprecated on function components","user":{"login":"amypellegrini","id":583564,"node_id":"MDQ6VXNlcjU4MzU2NA==","avatar_url":"https://avatars2.githubusercontent.com/u/583564?v=4","gravatar_id":"","url":"https://api.github.com/users/amypellegrini","html_url":"https://github.com/amypellegrini","followers_url":"https://api.github.com/users/amypellegrini/followers","following_url":"https://api.github.com/users/amypellegrini/following{/other_user}","gists_url":"https://api.github.com/users/amypellegrini/gists{/gist_id}","starred_url":"https://api.github.com/users/amypellegrini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amypellegrini/subscriptions","organizations_url":"https://api.github.com/users/amypellegrini/orgs","repos_url":"https://api.github.com/users/amypellegrini/repos","events_url":"https://api.github.com/users/amypellegrini/events{/privacy}","received_events_url":"https://api.github.com/users/amypellegrini/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-08-29T19:34:29Z","updated_at":"2019-08-30T07:38:31Z","closed_at":null,"author_association":"NONE","body":"`defaultProps` on function components is getting deprecated by React (see: https://github.com/facebook/react/pull/16210)\r\n\r\nFor this rule to follow suit, it should only be triggered when missing from class components.\r\n\r\nThe official recommendation in future versions of React is to use ES6 default values for function components."},"comment":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/comments/526494760","html_url":"https://github.com/yannickcr/eslint-plugin-react/issues/2396#issuecomment-526494760","issue_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/2396","id":526494760,"node_id":"MDEyOklzc3VlQ29tbWVudDUyNjQ5NDc2MA==","user":{"login":"ljharb","id":45469,"node_id":"MDQ6VXNlcjQ1NDY5","avatar_url":"https://avatars1.githubusercontent.com/u/45469?v=4","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":"2019-08-30T07:38:31Z","updated_at":"2019-08-30T07:38:31Z","author_association":"COLLABORATOR","body":"That won't change by default; there can be an option to ignore function components, however."}}
{"actor":{"display_login":"ljharb"}}