{"action":"closed","issue":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/1009","repository_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react","labels_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/1009/labels{/name}","comments_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/1009/comments","events_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/1009/events","html_url":"https://github.com/yannickcr/eslint-plugin-react/issues/1009","id":197137274,"number":1009,"title":"Rule `require-default-props` does not support default parameters in stateless function","user":{"login":"preco21","id":4936201,"avatar_url":"https://avatars.githubusercontent.com/u/4936201?v=3","gravatar_id":"","url":"https://api.github.com/users/preco21","html_url":"https://github.com/preco21","followers_url":"https://api.github.com/users/preco21/followers","following_url":"https://api.github.com/users/preco21/following{/other_user}","gists_url":"https://api.github.com/users/preco21/gists{/gist_id}","starred_url":"https://api.github.com/users/preco21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/preco21/subscriptions","organizations_url":"https://api.github.com/users/preco21/orgs","repos_url":"https://api.github.com/users/preco21/repos","events_url":"https://api.github.com/users/preco21/events{/privacy}","received_events_url":"https://api.github.com/users/preco21/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-12-22T10:03:10Z","updated_at":"2016-12-25T05:39:16Z","closed_at":"2016-12-25T05:39:15Z","body":"Hello, I just got some error from `require-default-props` rule:\r\n\r\n```\r\n`react/require-default-props`:  propType \"foo\" is not required, but has no corresponding defaultProp declaration.\r\n`react/require-default-props`:  propType \"baz\" is not required, but has no corresponding defaultProp declaration.\r\n```\r\n\r\nHere is the code:\r\n\r\n```javascript\r\nfunction Header({\r\n  foo = true,\r\n  bar,\r\n  baz = () => { /* noop */ },\r\n}) {\r\n  return ...;\r\n}\r\n\r\nHeader.propTypes = {\r\n  foo: PropTypes.bool,\r\n  bar: PropTypes.bool.isRequired,\r\n  baz: PropTypes.func,\r\n};\r\n```\r\n\r\nI expected there is no error, but seems it causes the problem.\r\n\r\nAny ideas?"}}
{"actor":{"display_login":"ljharb"}}