Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

operator-no-unspaced registring * as operator although it is used as a selector #709

Closed
mbehzad opened this issue Nov 19, 2022 · 1 comment · Fixed by #768
Closed

operator-no-unspaced registring * as operator although it is used as a selector #709

mbehzad opened this issue Nov 19, 2022 · 1 comment · Fixed by #768
Labels
Bug 🐛 Something isn't working Help wanted 🙋 Help is needed

Comments

@mbehzad
Copy link

mbehzad commented Nov 19, 2022

Hi, this looks to me as a false positive:

SCSS code:

.element {
    @supports selector(:has(*)) {
        opacity: 0;    
    }
}

stylelintrc config:

{
  "plugins": [
    "stylelint-scss"
  ],
  "rules": {
    "scss/operator-no-unspaced": true
  }
}

Error:

2:26  ✖  Expected single space before "*"  scss/operator-no-unspaced
2:26  ✖  Expected single space after "*"   scss/operator-no-unspaced

Wrapping the * with space, to me seems unnecessary here and prettier would try to remove them.

reproduce issue via https://github.com/mbehzad/stylelint-scss-operator-no-unspaced-issue

@kristerkari kristerkari added Bug 🐛 Something isn't working Help wanted 🙋 Help is needed labels Dec 5, 2022
@kristerkari
Copy link
Collaborator

Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Something isn't working Help wanted 🙋 Help is needed
Development

Successfully merging a pull request may close this issue.

2 participants