{"action":"created","issue":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/3224","repository_url":"https://api.github.com/repos/stylelint/stylelint","labels_url":"https://api.github.com/repos/stylelint/stylelint/issues/3224/labels{/name}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/3224/comments","events_url":"https://api.github.com/repos/stylelint/stylelint/issues/3224/events","html_url":"https://github.com/stylelint/stylelint/issues/3224","id":306175504,"number":3224,"title":"selector-type-whitelist/blacklist rule","user":{"login":"kristerkari","id":993108,"avatar_url":"https://avatars0.githubusercontent.com/u/993108?v=4","gravatar_id":"","url":"https://api.github.com/users/kristerkari","html_url":"https://github.com/kristerkari","followers_url":"https://api.github.com/users/kristerkari/followers","following_url":"https://api.github.com/users/kristerkari/following{/other_user}","gists_url":"https://api.github.com/users/kristerkari/gists{/gist_id}","starred_url":"https://api.github.com/users/kristerkari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristerkari/subscriptions","organizations_url":"https://api.github.com/users/kristerkari/orgs","repos_url":"https://api.github.com/users/kristerkari/repos","events_url":"https://api.github.com/users/kristerkari/events{/privacy}","received_events_url":"https://api.github.com/users/kristerkari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-17T17:41:37Z","updated_at":"2018-03-17T18:01:35Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I don't know if this is possible already, but I would like to whitelist or blacklist certain types of selectors.\r\n\r\ne.g.\r\n\r\n```js\r\n\"selector-type-whitelist\": [\"class\"]\r\n```\r\nvalid:\r\n```css\r\n.foo {\r\n  line-height: 1;\r\n}\r\n\r\n.foo, .bar {\r\n  line-height: 1;\r\n}\r\n```\r\n\r\ninvalid: \r\n```css\r\n#foo {\r\n  line-height: 1;\r\n}\r\n\r\na {\r\n  line-height: 1;\r\n}\r\n\r\ninput[type=text] {\r\n  line-height: 1;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/comments/373940268","html_url":"https://github.com/stylelint/stylelint/issues/3224#issuecomment-373940268","issue_url":"https://api.github.com/repos/stylelint/stylelint/issues/3224","id":373940268,"user":{"login":"kristerkari","id":993108,"avatar_url":"https://avatars0.githubusercontent.com/u/993108?v=4","gravatar_id":"","url":"https://api.github.com/users/kristerkari","html_url":"https://github.com/kristerkari","followers_url":"https://api.github.com/users/kristerkari/followers","following_url":"https://api.github.com/users/kristerkari/following{/other_user}","gists_url":"https://api.github.com/users/kristerkari/gists{/gist_id}","starred_url":"https://api.github.com/users/kristerkari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristerkari/subscriptions","organizations_url":"https://api.github.com/users/kristerkari/orgs","repos_url":"https://api.github.com/users/kristerkari/repos","events_url":"https://api.github.com/users/kristerkari/events{/privacy}","received_events_url":"https://api.github.com/users/kristerkari/received_events","type":"User","site_admin":false},"created_at":"2018-03-17T18:01:35Z","updated_at":"2018-03-17T18:01:35Z","author_association":"CONTRIBUTOR","body":"ah yeah, so I can whitelist class selectors by setting all other `selector-max-*` rules than class to `0`."}}
{"actor":{"display_login":"kristerkari"}}