{"action":"closed","issue":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/931","repository_url":"https://api.github.com/repos/stylelint/stylelint","labels_url":"https://api.github.com/repos/stylelint/stylelint/issues/931/labels{/name}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/931/comments","events_url":"https://api.github.com/repos/stylelint/stylelint/issues/931/events","html_url":"https://github.com/stylelint/stylelint/issues/931","id":141296264,"number":931,"title":"bug with no-duplicate-selectors","user":{"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},"labels":[{"url":"https://api.github.com/repos/stylelint/stylelint/labels/status:%20wip","name":"status: wip","color":"009800"},{"url":"https://api.github.com/repos/stylelint/stylelint/labels/type:%20bug","name":"type: bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-16T14:46:00Z","updated_at":"2016-03-24T13:47:48Z","closed_at":"2016-03-24T13:47:48Z","body":"> Describe the issue. Is it a bug or a feature request (new rule, new option, etc.)?\r\n\r\nThrow error if use attribute selector.\r\n\r\n> Which rule, if any, is this issue related to?\r\n\r\n`no-duplicate-selectors`\r\n\r\n> What CSS is needed to reproduce this issue?\r\n\r\n```scss\r\n[disabled].foo,\r\n[disabled] .foo {\r\n    background: #b8b8b8;\r\n}\r\n\r\n```\r\nAlso reproduced in pure CSS.\r\n\r\n> What stylelint configuration is needed to reproduce this issue?\r\n\r\n```json\r\n{\r\n  \"rules\": {\r\n    \"no-duplicate-selectors\": true\r\n  }\r\n}\r\n```\r\n\r\n> Which version of stylelint are you using?\r\n\r\n`5.0.1`\r\n\r\n> How are you running stylelint: CLI, PostCSS plugin, Node API?\r\n\r\nPostCSS plugin\r\n\r\n> Does your issue relate to non-standard syntax (e.g. SCSS, nesting, etc.)?\r\n\r\nSCSS\r\n\r\n> What did you expect to happen?\r\n\r\nNo errors.\r\n\r\n> What actually happened (e.g. what warnings or errors you are getting)?\r\n\r\nThrow error.\r\n\r\n```shell\r\n_test.scss\r\n1:1\tUnexpected duplicate selector \"[disabled] .foo\" (no-duplicate-selectors)\r\n```\r\n\r\n<!--- Note: stackoverflow is our preferred QA forum - http://stackoverflow.com/questions/tagged/stylelint -->\r\n"}}