{"action":"created","issue":{"url":"https://api.github.com/repos/jsstyles/jss/issues/179","labels_url":"https://api.github.com/repos/jsstyles/jss/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/jsstyles/jss/issues/179/comments","events_url":"https://api.github.com/repos/jsstyles/jss/issues/179/events","html_url":"https://github.com/jsstyles/jss/pull/179","id":129943125,"number":179,"title":"Trim empty rules.","user":{"login":"wldcordeiro","id":580982,"avatar_url":"https://avatars.githubusercontent.com/u/580982?v=3","gravatar_id":"","url":"https://api.github.com/users/wldcordeiro","html_url":"https://github.com/wldcordeiro","followers_url":"https://api.github.com/users/wldcordeiro/followers","following_url":"https://api.github.com/users/wldcordeiro/following{/other_user}","gists_url":"https://api.github.com/users/wldcordeiro/gists{/gist_id}","starred_url":"https://api.github.com/users/wldcordeiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wldcordeiro/subscriptions","organizations_url":"https://api.github.com/users/wldcordeiro/orgs","repos_url":"https://api.github.com/users/wldcordeiro/repos","events_url":"https://api.github.com/users/wldcordeiro/events{/privacy}","received_events_url":"https://api.github.com/users/wldcordeiro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-30T05:29:25Z","updated_at":"2016-01-30T09:41:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jsstyles/jss/pulls/179","html_url":"https://github.com/jsstyles/jss/pull/179","diff_url":"https://github.com/jsstyles/jss/pull/179.diff","patch_url":"https://github.com/jsstyles/jss/pull/179.patch"},"body":"This PR introduces empty rule trimming, this isn't too useful to raw JSS (because you won't write empty rules), but with jss-nested you could end up with empty rules with a structure like:\r\n```js\r\nvar style = {\r\n  awesomeThing: {\r\n    '& nestedAwesomeThing': {\r\n      color: red;\r\n    }\r\n  }\r\n};\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/jsstyles/jss/issues/comments/177131024","html_url":"https://github.com/jsstyles/jss/pull/179#issuecomment-177131024","issue_url":"https://api.github.com/repos/jsstyles/jss/issues/179","id":177131024,"user":{"login":"wldcordeiro","id":580982,"avatar_url":"https://avatars.githubusercontent.com/u/580982?v=3","gravatar_id":"","url":"https://api.github.com/users/wldcordeiro","html_url":"https://github.com/wldcordeiro","followers_url":"https://api.github.com/users/wldcordeiro/followers","following_url":"https://api.github.com/users/wldcordeiro/following{/other_user}","gists_url":"https://api.github.com/users/wldcordeiro/gists{/gist_id}","starred_url":"https://api.github.com/users/wldcordeiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wldcordeiro/subscriptions","organizations_url":"https://api.github.com/users/wldcordeiro/orgs","repos_url":"https://api.github.com/users/wldcordeiro/repos","events_url":"https://api.github.com/users/wldcordeiro/events{/privacy}","received_events_url":"https://api.github.com/users/wldcordeiro/received_events","type":"User","site_admin":false},"created_at":"2016-01-30T09:41:43Z","updated_at":"2016-01-30T09:41:43Z","body":"I'm not sure whether this is a better solution or having each Rule type's `toString` return a null and check for the existence before joining. This way may only work with normal rules."}}