{"action":"closed","issue":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/2266","repository_url":"https://api.github.com/repos/jscs-dev/node-jscs","labels_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/2266/labels{/name}","comments_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/2266/comments","events_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/2266/events","html_url":"https://github.com/jscs-dev/node-jscs/issues/2266","id":159009875,"number":2266,"title":"Trailing space with JSX (esnext) causes indent fix bug","user":{"login":"unformatt","id":157132,"avatar_url":"https://avatars.githubusercontent.com/u/157132?v=3","gravatar_id":"","url":"https://api.github.com/users/unformatt","html_url":"https://github.com/unformatt","followers_url":"https://api.github.com/users/unformatt/followers","following_url":"https://api.github.com/users/unformatt/following{/other_user}","gists_url":"https://api.github.com/users/unformatt/gists{/gist_id}","starred_url":"https://api.github.com/users/unformatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unformatt/subscriptions","organizations_url":"https://api.github.com/users/unformatt/orgs","repos_url":"https://api.github.com/users/unformatt/repos","events_url":"https://api.github.com/users/unformatt/events{/privacy}","received_events_url":"https://api.github.com/users/unformatt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-07T19:54:30Z","updated_at":"2016-06-07T19:59:37Z","closed_at":"2016-06-07T19:59:37Z","body":"OSX 10.10.5\r\nnode 5.6.0\r\njscs 2.10.1\r\n\r\n`jscs --fix` with this code\r\n```\r\nconst a = (\r\n  <div> \r\n    <div/>\r\n  </div>\r\n)\r\n```\r\nand these settings\r\n```\r\n{\r\n    \"esnext\": true,\r\n    \"disallowTrailingWhitespace\": true,\r\n}\r\n```\r\n\r\nThe trailing space after the `<div>` causes the next line to be over indented. Here's the result:\r\n\r\n```\r\nconst a = (\r\n  <div> \r\n                                                                                                                                <div/>\r\n  </div>\r\n)\r\n\r\n```\r\n\r\nEvery time you run jscs fix, the indent gets longer. Eventually jscs crashes when the indent get extremely long:\r\n\r\n```\r\nSecurity context: 0x11d58de3ac1 <JS Object>\r\n    2: _fix [node_modules/jscs/lib/rules/disallow-trailing-whitespace.js:~81] [pc=0x2eb144609558] (this=0x2d79d4358ca9 <JS Object>,file=0x14aaf8575161 <JS Object>,error=0x14c1f0aecbd9 <an Object with map 0x2ab353e251b1>)\r\n    3: /* anonymous */(aka /* anonymous */) [node_modules/jscs/lib/string-checker.js:136] [pc...\r\n\r\nFATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory\r\n[1]    54121 abort      node_modules/jscs/bin/jscs --fix\r\n```\r\n\r\n"}}
{"actor":{"display_login":"unformatt"}}