{"action":"opened","issue":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/701","repository_url":"https://api.github.com/repos/stylelint/stylelint","labels_url":"https://api.github.com/repos/stylelint/stylelint/issues/701/labels{/name}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/701/comments","events_url":"https://api.github.com/repos/stylelint/stylelint/issues/701/events","html_url":"https://github.com/stylelint/stylelint/issues/701","id":131994052,"number":701,"title":"Possible to conditionally require empty lines?","user":{"login":"corysimmons","id":224636,"avatar_url":"https://avatars.githubusercontent.com/u/224636?v=3","gravatar_id":"","url":"https://api.github.com/users/corysimmons","html_url":"https://github.com/corysimmons","followers_url":"https://api.github.com/users/corysimmons/followers","following_url":"https://api.github.com/users/corysimmons/following{/other_user}","gists_url":"https://api.github.com/users/corysimmons/gists{/gist_id}","starred_url":"https://api.github.com/users/corysimmons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corysimmons/subscriptions","organizations_url":"https://api.github.com/users/corysimmons/orgs","repos_url":"https://api.github.com/users/corysimmons/repos","events_url":"https://api.github.com/users/corysimmons/events{/privacy}","received_events_url":"https://api.github.com/users/corysimmons/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-07T18:10:48Z","updated_at":"2016-02-07T18:10:48Z","closed_at":null,"body":"I'd like to make a rule that empty lines are required before a ruleset _unless_ that ruleset is the first nested rule.\r\n\r\n```css\r\n.foo {\r\n  .bar {\r\n    color: blue;\r\n  }\r\n\r\n  .baz {\r\n    color: red;\r\n  }\r\n}\r\n```\r\n\r\nThe reason I need this feature is because I don't want single nested things to look like this:\r\n\r\n```css\r\n.foo {\r\n\r\n  .bar {\r\n\r\n    .baz {\r\n      color: red;\r\n    }\r\n\r\n  }\r\n\r\n}\r\n```\r\n\r\nThat's entirely too many newlines for one ruleset. Rather it would be better if it looked like:\r\n\r\n```css\r\n.foo {\r\n  .bar {\r\n    .baz {\r\n      color: red;\r\n    }\r\n  }\r\n}\r\n```"}}