{"action":"opened","issue":{"url":"https://api.github.com/repos/babel/babel-eslint/issues/112","labels_url":"https://api.github.com/repos/babel/babel-eslint/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel-eslint/issues/112/comments","events_url":"https://api.github.com/repos/babel/babel-eslint/issues/112/events","html_url":"https://github.com/babel/babel-eslint/issues/112","id":80325101,"number":112,"title":"no-unused-vars error for variables that are used in only jsx markup","user":{"login":"vramana","id":3112509,"avatar_url":"https://avatars.githubusercontent.com/u/3112509?v=3","gravatar_id":"","url":"https://api.github.com/users/vramana","html_url":"https://github.com/vramana","followers_url":"https://api.github.com/users/vramana/followers","following_url":"https://api.github.com/users/vramana/following{/other_user}","gists_url":"https://api.github.com/users/vramana/gists{/gist_id}","starred_url":"https://api.github.com/users/vramana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vramana/subscriptions","organizations_url":"https://api.github.com/users/vramana/orgs","repos_url":"https://api.github.com/users/vramana/repos","events_url":"https://api.github.com/users/vramana/events{/privacy}","received_events_url":"https://api.github.com/users/vramana/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-25T00:55:23Z","updated_at":"2015-05-25T00:55:23Z","closed_at":null,"body":"I think the below example pretty much sums up the problem\r\n\r\ntest.js\r\n``` jsx\r\n'use strict';\r\n\r\nimport React from 'react';\r\nimport Slider from './slider';\r\n\r\nvar App = React.createClass({\r\n  render: () => {\r\n    return (\r\n      <div> <Slider /> </div>\r\n    );\r\n  }\r\n});\r\n\r\nReact.render(<App />, document.getElementById('root'));\r\n```\r\n\r\n.eslintrc\r\n```\r\n{\r\n  \"env\": {\r\n    \"browser\": true,\r\n    \"node\": true\r\n  },\r\n  \"parser\": \"babel-eslint\",\r\n  \"rules\": {\r\n    \"quotes\": [2, \"single\"],\r\n  }\r\n}\r\n```\r\nThe output of `eslint test.js` :\r\n```\r\ntest.js\r\n  4:7  error  Slider is defined but never used  no-unused-vars\r\n  6:4  error  App is defined but never used     no-unused-vars\r\n\r\n✖ 2 problems (2 errors, 0 warnings)\r\n```\r\n\r\n"}}