{"action":"created","issue":{"url":"https://api.github.com/repos/beautify-web/js-beautify/issues/611","labels_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/611/labels{/name}","comments_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/611/comments","events_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/611/events","html_url":"https://github.com/beautify-web/js-beautify/pull/611","id":56094659,"number":611,"title":"Allow bool op first","user":{"login":"olsonpm","id":5957709,"avatar_url":"https://avatars.githubusercontent.com/u/5957709?v=3","gravatar_id":"","url":"https://api.github.com/users/olsonpm","html_url":"https://github.com/olsonpm","followers_url":"https://api.github.com/users/olsonpm/followers","following_url":"https://api.github.com/users/olsonpm/following{/other_user}","gists_url":"https://api.github.com/users/olsonpm/gists{/gist_id}","starred_url":"https://api.github.com/users/olsonpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olsonpm/subscriptions","organizations_url":"https://api.github.com/users/olsonpm/orgs","repos_url":"https://api.github.com/users/olsonpm/repos","events_url":"https://api.github.com/users/olsonpm/events{/privacy}","received_events_url":"https://api.github.com/users/olsonpm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-01-30T22:42:11Z","updated_at":"2015-07-10T06:21:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/beautify-web/js-beautify/pulls/611","html_url":"https://github.com/beautify-web/js-beautify/pull/611","diff_url":"https://github.com/beautify-web/js-beautify/pull/611.diff","patch_url":"https://github.com/beautify-web/js-beautify/pull/611.patch"},"body":"allowing boolean opoerator-first notation via option 'allow_bool_op_first'.  Only changing node version for now as python can wait until changes are final."},"comment":{"url":"https://api.github.com/repos/beautify-web/js-beautify/issues/comments/120246576","html_url":"https://github.com/beautify-web/js-beautify/pull/611#issuecomment-120246576","issue_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/611","id":120246576,"user":{"login":"olsonpm","id":5957709,"avatar_url":"https://avatars.githubusercontent.com/u/5957709?v=3","gravatar_id":"","url":"https://api.github.com/users/olsonpm","html_url":"https://github.com/olsonpm","followers_url":"https://api.github.com/users/olsonpm/followers","following_url":"https://api.github.com/users/olsonpm/following{/other_user}","gists_url":"https://api.github.com/users/olsonpm/gists{/gist_id}","starred_url":"https://api.github.com/users/olsonpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olsonpm/subscriptions","organizations_url":"https://api.github.com/users/olsonpm/orgs","repos_url":"https://api.github.com/users/olsonpm/repos","events_url":"https://api.github.com/users/olsonpm/events{/privacy}","received_events_url":"https://api.github.com/users/olsonpm/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T06:21:53Z","updated_at":"2015-07-10T06:21:53Z","body":"Hey - finished a first-draft:\r\n\r\nhttps://github.com/olsonpm/js-beautify/tree/add-operator-position\r\n\r\nLet me know what you think.  Two comments in particular I'm interested in:\r\n\r\n1) 'after_newline' as defined in your tests might not be what we want.  Specifically:\r\n\r\n```javascript\r\nvar a = b\r\n+\r\nc;\r\n```\r\nwill resolve to\r\n```javascript\r\nvar a = b\r\n   + c;\r\n```\r\nas opposed to what I think should be:\r\n```javascript\r\nvar a = b\r\n    +\r\n    c;\r\n```\r\n\r\n2) In order to prevent newlines from being added after operators for both the after_newline and remove_newline options, I modified the following lines:\r\n\r\nhttps://github.com/olsonpm/js-beautify/blob/add-operator-position/js/lib/beautify.js#L1735-L1741\r\n\r\nI was confused on how to go about this, and I'm not confident this is how you would have done it.\r\n\r\n\r\nThe only other question I have is about the raw testing functionality.  I couldn't understand what that was for - so if you could give me an overview that'd be awesome.\r\n\r\n\r\nThanks,\r\nPhil"}}