{"action":"created","issue":{"url":"https://api.github.com/repos/jshint/jshint/issues/2038","labels_url":"https://api.github.com/repos/jshint/jshint/issues/2038/labels{/name}","comments_url":"https://api.github.com/repos/jshint/jshint/issues/2038/comments","events_url":"https://api.github.com/repos/jshint/jshint/issues/2038/events","html_url":"https://github.com/jshint/jshint/issues/2038","id":52128112,"number":2038,"title":"JSHint CLI infinite loop with un-closed ES6 class","user":{"login":"saschagehlich","id":119684,"avatar_url":"https://avatars.githubusercontent.com/u/119684?v=3","gravatar_id":"","url":"https://api.github.com/users/saschagehlich","html_url":"https://github.com/saschagehlich","followers_url":"https://api.github.com/users/saschagehlich/followers","following_url":"https://api.github.com/users/saschagehlich/following{/other_user}","gists_url":"https://api.github.com/users/saschagehlich/gists{/gist_id}","starred_url":"https://api.github.com/users/saschagehlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saschagehlich/subscriptions","organizations_url":"https://api.github.com/users/saschagehlich/orgs","repos_url":"https://api.github.com/users/saschagehlich/repos","events_url":"https://api.github.com/users/saschagehlich/events{/privacy}","received_events_url":"https://api.github.com/users/saschagehlich/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-16T15:42:19Z","updated_at":"2015-05-15T22:04:32Z","closed_at":"2015-05-15T22:04:32Z","body":"Hey,\r\n\r\nI'm currently porting some ES5 code to ES6, and sometimes it happens that I have some code like this:\r\n\r\n```js\r\nclass Foo {\r\n\r\nexport default Foo;\r\n```\r\n\r\nIt seems that JSHint runs into an infinite loop when it sees a ES6 class with a missing closing brace, followed by some random statement.\r\n\r\nMy JSHint version is 2.510, node.js version 0.10.28."},"comment":{"url":"https://api.github.com/repos/jshint/jshint/issues/comments/102535239","html_url":"https://github.com/jshint/jshint/issues/2038#issuecomment-102535239","issue_url":"https://api.github.com/repos/jshint/jshint/issues/2038","id":102535239,"user":{"login":"jugglinmike","id":677252,"avatar_url":"https://avatars.githubusercontent.com/u/677252?v=3","gravatar_id":"","url":"https://api.github.com/users/jugglinmike","html_url":"https://github.com/jugglinmike","followers_url":"https://api.github.com/users/jugglinmike/followers","following_url":"https://api.github.com/users/jugglinmike/following{/other_user}","gists_url":"https://api.github.com/users/jugglinmike/gists{/gist_id}","starred_url":"https://api.github.com/users/jugglinmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jugglinmike/subscriptions","organizations_url":"https://api.github.com/users/jugglinmike/orgs","repos_url":"https://api.github.com/users/jugglinmike/repos","events_url":"https://api.github.com/users/jugglinmike/events{/privacy}","received_events_url":"https://api.github.com/users/jugglinmike/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T22:04:32Z","updated_at":"2015-05-15T22:04:32Z","body":"This class of bugs has been addressed by the recently-merged gh-2338. Expect the fix in the next release of JSHint (version > 2.7.0)."}}