{"action":"created","issue":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/510","repository_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react","labels_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/510/labels{/name}","comments_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/510/comments","events_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/510/events","html_url":"https://github.com/yannickcr/eslint-plugin-react/issues/510","id":142435488,"number":510,"title":"Rule proposal: Disallow JSX that doesn't actually do anything","user":{"login":"Daniel15","id":91933,"avatar_url":"https://avatars.githubusercontent.com/u/91933?v=3","gravatar_id":"","url":"https://api.github.com/users/Daniel15","html_url":"https://github.com/Daniel15","followers_url":"https://api.github.com/users/Daniel15/followers","following_url":"https://api.github.com/users/Daniel15/following{/other_user}","gists_url":"https://api.github.com/users/Daniel15/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel15/subscriptions","organizations_url":"https://api.github.com/users/Daniel15/orgs","repos_url":"https://api.github.com/users/Daniel15/repos","events_url":"https://api.github.com/users/Daniel15/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel15/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-21T18:41:24Z","updated_at":"2016-03-21T20:19:15Z","closed_at":null,"body":"There's probably a better name for this, I just couldn't think of it :stuck_out_tongue: \r\n\r\nThese are valid:\r\n```js\r\nfunction foo() {\r\n  return (\r\n    <div>Hello world!</div>\r\n  );\r\n}\r\n```\r\n```js\r\nvar x = <div>Hello world!</div>;\r\n```\r\n\r\nThese are invalid:\r\n```js\r\nfunction foo() {\r\n  <div>Hello world!</div>;\r\n}\r\n```\r\n```js\r\nif (something) {\r\n  <div>Hello world!</div>;\r\n}\r\n```\r\n\r\nWhile doing a code review, I encountered some code that missed a `return` statement and just had the JSX sitting there. No lint error :("},"comment":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/comments/199458878","html_url":"https://github.com/yannickcr/eslint-plugin-react/issues/510#issuecomment-199458878","issue_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/510","id":199458878,"user":{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","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":"2016-03-21T20:19:15Z","updated_at":"2016-03-21T20:19:15Z","body":"+1, this should parallel http://eslint.org/docs/rules/no-unused-expressions"}}