{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/1983","labels_url":"https://api.github.com/repos/eslint/eslint/issues/1983/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/1983/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/1983/events","html_url":"https://github.com/eslint/eslint/issues/1983","id":60293359,"number":1983,"title":"\"semi-spacing\" doesn't work with \"semi\"","user":{"login":"feross","id":121766,"avatar_url":"https://avatars.githubusercontent.com/u/121766?v=3","gravatar_id":"","url":"https://api.github.com/users/feross","html_url":"https://github.com/feross","followers_url":"https://api.github.com/users/feross/followers","following_url":"https://api.github.com/users/feross/following{/other_user}","gists_url":"https://api.github.com/users/feross/gists{/gist_id}","starred_url":"https://api.github.com/users/feross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feross/subscriptions","organizations_url":"https://api.github.com/users/feross/orgs","repos_url":"https://api.github.com/users/feross/repos","events_url":"https://api.github.com/users/feross/events{/privacy}","received_events_url":"https://api.github.com/users/feross/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/eslint/eslint/labels/rule","name":"rule","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-09T03:15:42Z","updated_at":"2015-06-07T02:53:09Z","closed_at":null,"body":"I use the `\"semi\"` rule to forbid semicolons:\r\n\r\n```json\r\n\"semi\": [2, \"never\"]\r\n```\r\n\r\nThis style decision requires that you never start a line with `(` or `[`. The solution is to prefix these lines with `;` like this:\r\n\r\n```js\r\n;[1, 2, 3].join(' ')\r\n```\r\n\r\nHowever, the new `\"semi-spacing\"` default (below) causes issues with the above code.\r\n\r\n```json\r\n\"semi-spacing\": [2, {\"before\": false, \"after\": true}]\r\n```\r\n\r\nDisabling the `\"semi-spacing\"` rule entirely isn't ideal, since I *would* like to enforce spaces after semicolons in `for` statements:\r\n\r\n```js\r\nfor (var i = 0; i < 10; i++) {\r\n  // this is okay\r\n}\r\nfor (var i = 0;i < 10;i++) {\r\n  // this is not\r\n}\r\n```\r\n\r\nHow can we reconcile these two rules? Can we modify `\"semi-spacing\": { \"after\": true }` to accept no space before `(` and `[` when `\"semi\": [2, \"never\"]` is active?\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/9341058-semi-spacing-doesn-t-work-with-semi?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/109678083","html_url":"https://github.com/eslint/eslint/issues/1983#issuecomment-109678083","issue_url":"https://api.github.com/repos/eslint/eslint/issues/1983","id":109678083,"user":{"login":"gyandeeps","id":5554486,"avatar_url":"https://avatars.githubusercontent.com/u/5554486?v=3","gravatar_id":"","url":"https://api.github.com/users/gyandeeps","html_url":"https://github.com/gyandeeps","followers_url":"https://api.github.com/users/gyandeeps/followers","following_url":"https://api.github.com/users/gyandeeps/following{/other_user}","gists_url":"https://api.github.com/users/gyandeeps/gists{/gist_id}","starred_url":"https://api.github.com/users/gyandeeps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyandeeps/subscriptions","organizations_url":"https://api.github.com/users/gyandeeps/orgs","repos_url":"https://api.github.com/users/gyandeeps/repos","events_url":"https://api.github.com/users/gyandeeps/events{/privacy}","received_events_url":"https://api.github.com/users/gyandeeps/received_events","type":"User","site_admin":false},"created_at":"2015-06-07T02:53:08Z","updated_at":"2015-06-07T02:53:08Z","body":"we haven't heard of any suggestion so far?\r\nIs this discussion dead?"}}