{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/2443","labels_url":"https://api.github.com/repos/eslint/eslint/issues/2443/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/2443/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/2443/events","html_url":"https://github.com/eslint/eslint/issues/2443","id":73711042,"number":2443,"title":"JSX line breaks interpreted as trailing spaces","user":{"login":"nuweb","id":1538693,"avatar_url":"https://avatars.githubusercontent.com/u/1538693?v=3","gravatar_id":"","url":"https://api.github.com/users/nuweb","html_url":"https://github.com/nuweb","followers_url":"https://api.github.com/users/nuweb/followers","following_url":"https://api.github.com/users/nuweb/following{/other_user}","gists_url":"https://api.github.com/users/nuweb/gists{/gist_id}","starred_url":"https://api.github.com/users/nuweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuweb/subscriptions","organizations_url":"https://api.github.com/users/nuweb/orgs","repos_url":"https://api.github.com/users/nuweb/repos","events_url":"https://api.github.com/users/nuweb/events{/privacy}","received_events_url":"https://api.github.com/users/nuweb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-06T19:18:06Z","updated_at":"2015-05-07T15:34:04Z","closed_at":null,"body":"In routes.js (React-Flux project), having line-breaks after JSX elements gets interpreted as trailing spaces.\r\n\r\n```\r\nvar routes = (\r\n\t\t<Route name=\"app\" path=\"/\" handler={App}>\r\n\t\t\t<Route name=\"dashboard\" path=\"/app/:appId\" handler={Dashboard}/>\r\n\t\t\t<DefaultRoute handler={Dashboard}/>\r\n\t\t</Route>\r\n\t);\r\n```\r\n\r\neslint interprets them as trailing spaces,\r\n\r\n  10:69  error  Trailing spaces not allowed  no-trailing-spaces\r\n  11:93  error  Trailing spaces not allowed  no-trailing-spaces\r\n✖ 2 problems (2 errors, 0 warnings)"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/99912626","html_url":"https://github.com/eslint/eslint/issues/2443#issuecomment-99912626","issue_url":"https://api.github.com/repos/eslint/eslint/issues/2443","id":99912626,"user":{"login":"nuweb","id":1538693,"avatar_url":"https://avatars.githubusercontent.com/u/1538693?v=3","gravatar_id":"","url":"https://api.github.com/users/nuweb","html_url":"https://github.com/nuweb","followers_url":"https://api.github.com/users/nuweb/followers","following_url":"https://api.github.com/users/nuweb/following{/other_user}","gists_url":"https://api.github.com/users/nuweb/gists{/gist_id}","starred_url":"https://api.github.com/users/nuweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuweb/subscriptions","organizations_url":"https://api.github.com/users/nuweb/orgs","repos_url":"https://api.github.com/users/nuweb/repos","events_url":"https://api.github.com/users/nuweb/events{/privacy}","received_events_url":"https://api.github.com/users/nuweb/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T15:34:04Z","updated_at":"2015-05-07T15:34:04Z","body":"One difference that I see, \r\n\r\neslint doesn't complain if JSX is pure html, if JSX has React/custom components/tags, it fails to parse them correctly."}}