{"action":"opened","issue":{"url":"https://api.github.com/repos/ionutvmi/sublime-jsfmt/issues/37","labels_url":"https://api.github.com/repos/ionutvmi/sublime-jsfmt/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/ionutvmi/sublime-jsfmt/issues/37/comments","events_url":"https://api.github.com/repos/ionutvmi/sublime-jsfmt/issues/37/events","html_url":"https://github.com/ionutvmi/sublime-jsfmt/issues/37","id":114285269,"number":37,"title":"Issues with indentation","user":{"login":"brettlangdon","id":1320353,"avatar_url":"https://avatars.githubusercontent.com/u/1320353?v=3","gravatar_id":"","url":"https://api.github.com/users/brettlangdon","html_url":"https://github.com/brettlangdon","followers_url":"https://api.github.com/users/brettlangdon/followers","following_url":"https://api.github.com/users/brettlangdon/following{/other_user}","gists_url":"https://api.github.com/users/brettlangdon/gists{/gist_id}","starred_url":"https://api.github.com/users/brettlangdon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettlangdon/subscriptions","organizations_url":"https://api.github.com/users/brettlangdon/orgs","repos_url":"https://api.github.com/users/brettlangdon/repos","events_url":"https://api.github.com/users/brettlangdon/events{/privacy}","received_events_url":"https://api.github.com/users/brettlangdon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-30T14:54:00Z","updated_at":"2015-10-30T14:54:00Z","closed_at":null,"body":"Over at rdio/jsfmt#179 we have a user which is seeing an issue which might be related to `sublime-jsfmt`.\r\n\r\nThey are seeing some odd indentation issues, for example:\r\n\r\n```js\r\nfunction test() {\r\n    var mytest;\r\n}\r\n\r\nmodule.exports = function test() {\r\n    var mytest;\r\n}\r\n```\r\n\r\nGets formatted to:\r\n\r\n```js\r\nfunction test() {\r\n    var mytest;\r\n}\r\n\r\nmodule.exports = function test() {\r\nvar mytest;\r\n}\r\n```\r\n\r\nThey are using `node@4.2.1` and this is the `package.json` file from `sublime-text` that they are using:\r\n\r\n```json\r\n{\r\n  \"name\": \"sublime-jsfmt\",\r\n  \"dependencies\": {\r\n    \"esformatter-braces\": \"^1.2.1\",\r\n    \"esformatter-dot-notation\": \"^1.3.1\",\r\n    \"esformatter-quotes\": \"^1.0.3\",\r\n    \"esformatter-semicolons\": \"^1.1.1\",\r\n    \"extend\": \"^3.0.0\",\r\n    \"get-stdin\": \"^4.0.1\",\r\n    \"jsfmt\": \"^0.5.0\"\r\n  },\r\n  \"engines\": {\r\n    \"node\": \">=0.10.0\"\r\n  },\r\n  \"private\": true\r\n}\r\n```\r\n\r\nI have been unable to reproduce this issue with just `jsfmt`, which leads me to believe it might be related to `sublime-jsfmt`. If anyone has seen this issue before or has any insights into what might be happening, it would be greatly appreciated. (I do not use Sublime, so not sure where to begin).\r\n\r\n\r\n/cc @damienleroux"}}