{"action":"created","issue":{"url":"https://api.github.com/repos/beautify-web/js-beautify/issues/293","repository_url":"https://api.github.com/repos/beautify-web/js-beautify","labels_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/293/labels{/name}","comments_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/293/comments","events_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/293/events","html_url":"https://github.com/beautify-web/js-beautify/issues/293","id":15485810,"number":293,"title":"Allow single chained methods to be placed on same line","user":{"login":"Qantas94Heavy","id":4044581,"avatar_url":"https://avatars.githubusercontent.com/u/4044581?v=3","gravatar_id":"","url":"https://api.github.com/users/Qantas94Heavy","html_url":"https://github.com/Qantas94Heavy","followers_url":"https://api.github.com/users/Qantas94Heavy/followers","following_url":"https://api.github.com/users/Qantas94Heavy/following{/other_user}","gists_url":"https://api.github.com/users/Qantas94Heavy/gists{/gist_id}","starred_url":"https://api.github.com/users/Qantas94Heavy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qantas94Heavy/subscriptions","organizations_url":"https://api.github.com/users/Qantas94Heavy/orgs","repos_url":"https://api.github.com/users/Qantas94Heavy/repos","events_url":"https://api.github.com/users/Qantas94Heavy/events{/privacy}","received_events_url":"https://api.github.com/users/Qantas94Heavy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/beautify-web/js-beautify/labels/enhancement","name":"enhancement","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2013-06-13T02:35:45Z","updated_at":"2016-09-06T20:39:40Z","closed_at":null,"body":"I'd like an option to allow single chained methods to be placed on same line, as in if there is only two calls, then those two are placed on the same line.  Here are some examples of code that doesn't really look good with the current \"break lines on chained methods\" option:\r\n\r\n    this._foo = new Date()\r\n        .getTime();\r\n\r\n    $(document)\r\n        .ready(function () {\r\n            // function code here\r\n        });\r\n\r\nWould this be feasible or is this just too much work for little gain?"},"comment":{"url":"https://api.github.com/repos/beautify-web/js-beautify/issues/comments/245083433","html_url":"https://github.com/beautify-web/js-beautify/issues/293#issuecomment-245083433","issue_url":"https://api.github.com/repos/beautify-web/js-beautify/issues/293","id":245083433,"user":{"login":"Bram-Zijp","id":20819332,"avatar_url":"https://avatars.githubusercontent.com/u/20819332?v=3","gravatar_id":"","url":"https://api.github.com/users/Bram-Zijp","html_url":"https://github.com/Bram-Zijp","followers_url":"https://api.github.com/users/Bram-Zijp/followers","following_url":"https://api.github.com/users/Bram-Zijp/following{/other_user}","gists_url":"https://api.github.com/users/Bram-Zijp/gists{/gist_id}","starred_url":"https://api.github.com/users/Bram-Zijp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bram-Zijp/subscriptions","organizations_url":"https://api.github.com/users/Bram-Zijp/orgs","repos_url":"https://api.github.com/users/Bram-Zijp/repos","events_url":"https://api.github.com/users/Bram-Zijp/events{/privacy}","received_events_url":"https://api.github.com/users/Bram-Zijp/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T20:39:40Z","updated_at":"2016-09-06T20:39:40Z","body":"I have the same issue.\r\nInput:\r\n```\r\ndaisy.chain().me().please();\r\n\r\nundefined._foo = new Date().getTime();\r\n\r\n$(document).ready(function () {\r\n    // function code here\r\n});\r\n```\r\n\r\noutput:\r\n```\r\ndaisy.chain()\r\n    .me()\r\n    .please();\r\n\r\nundefined._foo = new Date()\r\n    .getTime();\r\n\r\n$(document)\r\n    .ready(function() {\r\n        // function code here\r\n    });\r\n```\r\n\r\ndesired output:\r\n```\r\n// i can live with this:\r\ndaisy.chain()\r\n    .me()\r\n    .please();\r\n// i believe this is the latest convention:\r\ndaisy\r\n    .chain()\r\n    .me()\r\n    .please();\r\n\r\n\r\nundefined._foo = new Date().getTime();\r\n\r\n$(document).ready(function() {\r\n    // function code here\r\n});\r\n\r\n```"}}
{"actor":{"display_login":"Bram-Zijp"}}