{"action":"created","issue":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/406","labels_url":"https://api.github.com/repos/stylelint/stylelint/issues/406/labels{/name}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/406/comments","events_url":"https://api.github.com/repos/stylelint/stylelint/issues/406/events","html_url":"https://github.com/stylelint/stylelint/pull/406","id":110368184,"number":406,"title":"Fix comment-space-inside; considers newlines","user":{"login":"MadLittleMods","id":558581,"avatar_url":"https://avatars.githubusercontent.com/u/558581?v=3","gravatar_id":"","url":"https://api.github.com/users/MadLittleMods","html_url":"https://github.com/MadLittleMods","followers_url":"https://api.github.com/users/MadLittleMods/followers","following_url":"https://api.github.com/users/MadLittleMods/following{/other_user}","gists_url":"https://api.github.com/users/MadLittleMods/gists{/gist_id}","starred_url":"https://api.github.com/users/MadLittleMods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MadLittleMods/subscriptions","organizations_url":"https://api.github.com/users/MadLittleMods/orgs","repos_url":"https://api.github.com/users/MadLittleMods/repos","events_url":"https://api.github.com/users/MadLittleMods/events{/privacy}","received_events_url":"https://api.github.com/users/MadLittleMods/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stylelint/stylelint/labels/PR:%20review%20needed","name":"PR: review needed","color":"FFE600"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-08T03:52:38Z","updated_at":"2015-10-11T18:14:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/stylelint/stylelint/pulls/406","html_url":"https://github.com/stylelint/stylelint/pull/406","diff_url":"https://github.com/stylelint/stylelint/pull/406.diff","patch_url":"https://github.com/stylelint/stylelint/pull/406.patch"},"body":"Fixes https://github.com/stylelint/stylelint/issues/403\r\n\r\n`comment-space-inside: 'always'` now allows:\r\n\r\n```\r\n.foo {\r\n    /*\r\n    opacity: 0;\r\n    pointer-events: none;\r\n    */\r\n}\r\n\r\n.bar\r\n    /*\r\n    opacity: 0;\r\n    pointer-events: none; */\r\n}\r\n\r\n.baz\r\n    /* opacity: 0;\r\n    pointer-events: none;\r\n    */\r\n}\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/comments/147232234","html_url":"https://github.com/stylelint/stylelint/pull/406#issuecomment-147232234","issue_url":"https://api.github.com/repos/stylelint/stylelint/issues/406","id":147232234,"user":{"login":"jeddy3","id":808227,"avatar_url":"https://avatars.githubusercontent.com/u/808227?v=3","gravatar_id":"","url":"https://api.github.com/users/jeddy3","html_url":"https://github.com/jeddy3","followers_url":"https://api.github.com/users/jeddy3/followers","following_url":"https://api.github.com/users/jeddy3/following{/other_user}","gists_url":"https://api.github.com/users/jeddy3/gists{/gist_id}","starred_url":"https://api.github.com/users/jeddy3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeddy3/subscriptions","organizations_url":"https://api.github.com/users/jeddy3/orgs","repos_url":"https://api.github.com/users/jeddy3/repos","events_url":"https://api.github.com/users/jeddy3/events{/privacy}","received_events_url":"https://api.github.com/users/jeddy3/received_events","type":"User","site_admin":false},"created_at":"2015-10-11T18:14:43Z","updated_at":"2015-10-11T18:14:43Z","body":"> and I do not think that we should create separate opening/closing parentheses rules.\r\n\r\nI was hoping you'd say that :)\r\n\r\n@MadLittleMods Feel free to adapt this PR to two rules with these options:\r\n\r\n```js\r\ncomment-space-inside: \"always\"|\"never\"|\"always-single-line\"|\"never-single-line\"\r\ncomment-newline-inside: \"always\"|\"always-multi-line\"\r\n```\r\n\r\nBe sure to account for and test for your \"comment toggle\" example:\r\n\r\n```css\r\n/* */\r\nopacity: 0;\r\npointer-events: none;\r\n/* */\r\n```\r\n\r\nin `comment-space-inside` i.e. it shouldn't produce any warnings.\r\n\r\nThose changes should allow you to lint your personal style, and keep the behaviour and options of these rules consistent with everything else. \r\n\r\nGood luck and don't hesitate to ask questions if you have any :)"}}