{"action":"closed","issue":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/139","labels_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/139/comments","events_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/139/events","html_url":"https://github.com/jscs-dev/node-jscs/issues/139","id":25063671,"number":139,"title":"Spacing for comments","user":{"login":"Famlam","id":1315520,"avatar_url":"https://avatars.githubusercontent.com/u/1315520?v=3","gravatar_id":"","url":"https://api.github.com/users/Famlam","html_url":"https://github.com/Famlam","followers_url":"https://api.github.com/users/Famlam/followers","following_url":"https://api.github.com/users/Famlam/following{/other_user}","gists_url":"https://api.github.com/users/Famlam/gists{/gist_id}","starred_url":"https://api.github.com/users/Famlam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Famlam/subscriptions","organizations_url":"https://api.github.com/users/Famlam/orgs","repos_url":"https://api.github.com/users/Famlam/repos","events_url":"https://api.github.com/users/Famlam/events{/privacy}","received_events_url":"https://api.github.com/users/Famlam/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jscs-dev/node-jscs/labels/help-wanted","name":"help-wanted","color":"fef2c0"},{"url":"https://api.github.com/repos/jscs-dev/node-jscs/labels/new+rule","name":"new rule","color":"006b75"},{"url":"https://api.github.com/repos/jscs-dev/node-jscs/labels/orphaned","name":"orphaned","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2014-01-05T01:04:40Z","updated_at":"2015-01-20T20:45:00Z","closed_at":"2015-01-20T20:45:00Z","body":"[feature request]\r\n\r\nIt would be nice to have options to enforce the spacing of comments in code. E.g.,\r\n```javascript\r\nvar a = b; // does not stick to the code\r\nvar a = b;// sticks to the code\r\nvar a = function(b /* comment sticks right */, c /* comment sticks right */) {}\r\nvar a = function(b/*comment sticks left*/ , c/* comment sticks left*/ ) {}\r\nvar a = function(b/* comment sticks left & right */, c/* comment sticks left & right */) {}\r\nvar a = function(b /* comment doesn't stick */ , c /* comment doesn't stick */ ) {}\r\n// newline comments are always valid on the left side\r\n/* newline comments are always valid on the left side*/\r\nvar a = b; /* comments followed by a newline are always valid on the right side */ \r\n\r\n```\r\n\r\nThis request has two reasons:\r\n1. nice, consistent styling\r\n2. to fix issues with `Illegal space before closing round bracket at input` if `\"disallowSpacesInsideParentheses\": true`  is used, for code like `function(el /* comment */, i /* comment */) {}` or `if (this /*strict mode unsupported*/) {}`\r\n\r\n<bountysource-plugin>\r\n\r\n---\r\nWant to back this issue? **[Place a bounty on it!](https://www.bountysource.com/issues/1924254-spacing-for-comments?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}