{"action":"created","issue":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/2208","repository_url":"https://api.github.com/repos/stylelint/stylelint","labels_url":"https://api.github.com/repos/stylelint/stylelint/issues/2208/labels{/name}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/2208/comments","events_url":"https://api.github.com/repos/stylelint/stylelint/issues/2208/events","html_url":"https://github.com/stylelint/stylelint/issues/2208","id":197475906,"number":2208,"title":"bug: combination of selector-pseudo-element-colon-notation selector-pseudo-element-no-unknown","user":{"login":"goldylucks","id":6963212,"avatar_url":"https://avatars.githubusercontent.com/u/6963212?v=3","gravatar_id":"","url":"https://api.github.com/users/goldylucks","html_url":"https://github.com/goldylucks","followers_url":"https://api.github.com/users/goldylucks/followers","following_url":"https://api.github.com/users/goldylucks/following{/other_user}","gists_url":"https://api.github.com/users/goldylucks/gists{/gist_id}","starred_url":"https://api.github.com/users/goldylucks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldylucks/subscriptions","organizations_url":"https://api.github.com/users/goldylucks/orgs","repos_url":"https://api.github.com/users/goldylucks/repos","events_url":"https://api.github.com/users/goldylucks/events{/privacy}","received_events_url":"https://api.github.com/users/goldylucks/received_events","type":"User","site_admin":false},"labels":[{"id":210042527,"url":"https://api.github.com/repos/stylelint/stylelint/labels/status:%20discussion","name":"status: discussion","color":"0023ee","default":false}],"state":"closed","locked":false,"assignee":{"login":"evilebottnawi","id":4567934,"avatar_url":"https://avatars.githubusercontent.com/u/4567934?v=3","gravatar_id":"","url":"https://api.github.com/users/evilebottnawi","html_url":"https://github.com/evilebottnawi","followers_url":"https://api.github.com/users/evilebottnawi/followers","following_url":"https://api.github.com/users/evilebottnawi/following{/other_user}","gists_url":"https://api.github.com/users/evilebottnawi/gists{/gist_id}","starred_url":"https://api.github.com/users/evilebottnawi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilebottnawi/subscriptions","organizations_url":"https://api.github.com/users/evilebottnawi/orgs","repos_url":"https://api.github.com/users/evilebottnawi/repos","events_url":"https://api.github.com/users/evilebottnawi/events{/privacy}","received_events_url":"https://api.github.com/users/evilebottnawi/received_events","type":"User","site_admin":false},"assignees":[{"login":"evilebottnawi","id":4567934,"avatar_url":"https://avatars.githubusercontent.com/u/4567934?v=3","gravatar_id":"","url":"https://api.github.com/users/evilebottnawi","html_url":"https://github.com/evilebottnawi","followers_url":"https://api.github.com/users/evilebottnawi/followers","following_url":"https://api.github.com/users/evilebottnawi/following{/other_user}","gists_url":"https://api.github.com/users/evilebottnawi/gists{/gist_id}","starred_url":"https://api.github.com/users/evilebottnawi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilebottnawi/subscriptions","organizations_url":"https://api.github.com/users/evilebottnawi/orgs","repos_url":"https://api.github.com/users/evilebottnawi/repos","events_url":"https://api.github.com/users/evilebottnawi/events{/privacy}","received_events_url":"https://api.github.com/users/evilebottnawi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2016-12-24T20:06:54Z","updated_at":"2016-12-28T19:07:11Z","closed_at":"2016-12-28T19:07:11Z","body":"<!-- Please answer the following questions. Issues that don't use this template will be closed. -->\r\n\r\n> Describe the issue. Is it a bug or a feature request (new rule, new option, etc.)?\r\nBug in `.stylelintrc`\r\n\r\n> Which rule, if any, is this issue related to?\r\nselector-pseudo-element-no-unknown\r\n\r\n> What CSS is needed to reproduce this issue?\r\n```css\r\n:global .foo {\r\n  color: pink;\r\n}\r\n```\r\n\r\n> What stylelint configuration is needed to reproduce this issue?\r\n\r\ne.g.\r\n\r\n```json\r\n{\r\n  \"rules\": {\r\n    \"selector-pseudo-element-no-unknown\": [true, {\r\n      ignorePseudoElements: [\"/global/\"]\r\n    }]\r\n  }\r\n}\r\n```\r\n\r\n> Which version of stylelint are you using?\r\n`7.7.0`\r\n\r\n> How are you running stylelint: CLI, PostCSS plugin, Node API?\r\nCLI with `stylelint 'web/**/*.css'\r\n\r\n> Does your issue relate to non-standard syntax (e.g. SCSS, nesting, etc.)?\r\nno\r\n\r\n> What did you expect to happen?\r\nno errors to be flagged\r\n\r\n> What actually happened (e.g. what warnings or errors you are getting)?\r\n```shell\r\nUnexpected unknown pseudo-class selector \":global\"   selector-pseudo-class-no-unknown\r\n```\r\nThe following warnings were flagged:\r\n```shell\r\nweb/containers/Auth/Auth.css\r\n 22:1  ✖  Unexpected unknown pseudo-class selector \":global\"   selector-pseudo-class-no-unknown\r\n```\r\n\r\n## PR with failing test\r\n#2209 "},"comment":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/comments/269524304","html_url":"https://github.com/stylelint/stylelint/issues/2208#issuecomment-269524304","issue_url":"https://api.github.com/repos/stylelint/stylelint/issues/2208","id":269524304,"user":{"login":"goldylucks","id":6963212,"avatar_url":"https://avatars.githubusercontent.com/u/6963212?v=3","gravatar_id":"","url":"https://api.github.com/users/goldylucks","html_url":"https://github.com/goldylucks","followers_url":"https://api.github.com/users/goldylucks/followers","following_url":"https://api.github.com/users/goldylucks/following{/other_user}","gists_url":"https://api.github.com/users/goldylucks/gists{/gist_id}","starred_url":"https://api.github.com/users/goldylucks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldylucks/subscriptions","organizations_url":"https://api.github.com/users/goldylucks/orgs","repos_url":"https://api.github.com/users/goldylucks/repos","events_url":"https://api.github.com/users/goldylucks/events{/privacy}","received_events_url":"https://api.github.com/users/goldylucks/received_events","type":"User","site_admin":false},"created_at":"2016-12-28T19:07:11Z","updated_at":"2016-12-28T19:07:11Z","body":"thanks @m-allanson \r\n\r\nthe following configuration solved my problem:\r\n\r\n```json\r\n{\r\n  \"extends\": \"stylelint-config-standard\",\r\n  \"rules\": {\r\n    \"declaration-block-properties-order\": \"alphabetical\",\r\n    \"selector-pseudo-class-no-unknown\": [true, {\r\n      \"ignorePseudoClasses\": [\"global\"]\r\n    }],\r\n    \"selector-pseudo-element-no-unknown\": [true, {\r\n      \"ignorePseudoElements\": [\"global\"]\r\n    }]\r\n  }\r\n}\r\n```"}}
{"actor":{"display_login":"goldylucks"}}