{"action":"created","issue":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/43","labels_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/43/comments","events_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/43/events","html_url":"https://github.com/yannickcr/eslint-plugin-react/issues/43","id":65190999,"number":43,"title":"full classes compatibility (with static properties)","user":{"login":"MoOx","id":157534,"avatar_url":"https://avatars.githubusercontent.com/u/157534?v=3","gravatar_id":"","url":"https://api.github.com/users/MoOx","html_url":"https://github.com/MoOx","followers_url":"https://api.github.com/users/MoOx/followers","following_url":"https://api.github.com/users/MoOx/following{/other_user}","gists_url":"https://api.github.com/users/MoOx/gists{/gist_id}","starred_url":"https://api.github.com/users/MoOx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoOx/subscriptions","organizations_url":"https://api.github.com/users/MoOx/orgs","repos_url":"https://api.github.com/users/MoOx/repos","events_url":"https://api.github.com/users/MoOx/events{/privacy}","received_events_url":"https://api.github.com/users/MoOx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/labels/accepted","name":"accepted","color":"0052cc"},{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/labels/babel","name":"babel","color":"fbca04"},{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/labels/rule","name":"rule","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-30T11:32:21Z","updated_at":"2015-04-16T04:22:01Z","closed_at":"2015-04-16T00:29:57Z","body":"I just upgraded to latest version and I am getting issue with classes used as react component.\r\nIt seems some rules like displayName or prop-types are not able to read (or just don't look) static fields.\r\n\r\n```js\r\nimport React, {Component, PropTypes} from \"react\"\r\n\r\nclass Widget extends Component {\r\n\r\n  static displayName = \"Widget\"\r\n\r\n  static childContextTypes = {\r\n    styleVariables: PropTypes.object,\r\n    RouteHandler: PropTypes.func,\r\n  }\r\n\r\n  static propTypes = {\r\n    styleVariables: PropTypes.object,\r\n    RouteHandler: PropTypes.func,\r\n  }\r\n\r\n  getChildContext() {\r\n    return {\r\n      styleVariables: this.props.styleVariables,\r\n      RouteHandler: this.props.RouteHandler,\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nThis code give me 3 errors:\r\n\r\n```\r\n   6:0   error  Widget component definition is missing display name         react/display-name\r\n  24:22  error  'styleVariables' is missing in props validation for Widget  react/prop-types\r\n  25:20  error  'RouteHandler' is missing in props validation for Widget    react/prop-types\r\n```\r\n\r\nIt would be really cool to support this."},"comment":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/comments/93636092","html_url":"https://github.com/yannickcr/eslint-plugin-react/issues/43#issuecomment-93636092","issue_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/43","id":93636092,"user":{"login":"MoOx","id":157534,"avatar_url":"https://avatars.githubusercontent.com/u/157534?v=3","gravatar_id":"","url":"https://api.github.com/users/MoOx","html_url":"https://github.com/MoOx","followers_url":"https://api.github.com/users/MoOx/followers","following_url":"https://api.github.com/users/MoOx/following{/other_user}","gists_url":"https://api.github.com/users/MoOx/gists{/gist_id}","starred_url":"https://api.github.com/users/MoOx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoOx/subscriptions","organizations_url":"https://api.github.com/users/MoOx/orgs","repos_url":"https://api.github.com/users/MoOx/repos","events_url":"https://api.github.com/users/MoOx/events{/privacy}","received_events_url":"https://api.github.com/users/MoOx/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T04:22:01Z","updated_at":"2015-04-16T04:22:01Z","body":"\\o/"}}