{"action":"closed","issue":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/96","labels_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/96/comments","events_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/96/events","html_url":"https://github.com/yannickcr/eslint-plugin-react/issues/96","id":85580814,"number":96,"title":"jsx-uses-vars rule doesn't work with ES6 class","user":{"login":"sodatea","id":3277634,"avatar_url":"https://avatars.githubusercontent.com/u/3277634?v=3","gravatar_id":"","url":"https://api.github.com/users/sodatea","html_url":"https://github.com/sodatea","followers_url":"https://api.github.com/users/sodatea/followers","following_url":"https://api.github.com/users/sodatea/following{/other_user}","gists_url":"https://api.github.com/users/sodatea/gists{/gist_id}","starred_url":"https://api.github.com/users/sodatea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sodatea/subscriptions","organizations_url":"https://api.github.com/users/sodatea/orgs","repos_url":"https://api.github.com/users/sodatea/repos","events_url":"https://api.github.com/users/sodatea/events{/privacy}","received_events_url":"https://api.github.com/users/sodatea/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/bug","name":"bug","color":"fc2929"},{"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":1,"created_at":"2015-06-05T16:56:47Z","updated_at":"2015-06-05T23:13:26Z","closed_at":"2015-06-05T23:13:26Z","body":"With `eslint@0.22.1` & `eslint-plugin-react@2.5.0`\r\n\r\n`$ cat hello.jsx`\r\n```jsx\r\nclass HelloMessage extends React.Component {\r\n    static get propTypes() {\r\n        return {\r\n            name: React.PropTypes.oneOfType([\r\n                React.PropTypes.string,\r\n                React.PropTypes.number\r\n            ])\r\n        };\r\n    }\r\n    render() {\r\n        return <div>Hello {this.props.name}</div>;\r\n    }\r\n}\r\n\r\nReact.render(<HelloMessage name='world' />, document.querySelector('#content'));\r\n```\r\n\r\n`$ cat .eslintrc`\r\n```yaml\r\nparser:\r\n    babel-eslint\r\n\r\nenv:\r\n    browser: true\r\n    es6: true\r\n\r\nplugins:\r\n    - react\r\n\r\nglobals:\r\n    React: true\r\n\r\nrules:\r\n    strict: 0\r\n    quotes: [1, single, avoid-escape]\r\n    indent: [1, 4]\r\n    quote-props: [1, as-needed]\r\n    no-unused-expressions: 1\r\n    react/jsx-no-undef: 1\r\n    react/jsx-quotes: [1, single, avoid-escape]\r\n    react/jsx-uses-react: 1\r\n    react/jsx-uses-vars: 1\r\n    react/prop-types: 1\r\n    react/react-in-jsx-scope: 1\r\n```\r\n\r\n`$ eslint hello.jsx`\r\n```\r\nhello.jsx\r\n  1:6  error  HelloMessage is defined but never used  no-unused-vars\r\n\r\n✖ 1 problem (1 error, 0 warnings)\r\n```\r\n\r\nIs that a bug of this plugin?"}}