yuschick / stylelint-plugin-defensive-css

A Stylelint plugin for enforcing defensive CSS best practices.
https://defensivecss.dev/
MIT License
139 stars 4 forks source link

Adjust detection to ignore `:hover` within `:not()` #30

Closed crstauf closed 10 months ago

crstauf commented 10 months ago

Describe the bug Using :hover within a :not() causes an error when there shouldn't be one.

To Reproduce Steps to reproduce the behavior:

  1. .button:not( :hover ) {}
  2. Run Stylelint
  3. See error

Expected behavior No error.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

yuschick commented 10 months ago

Ohh, this is an awesome catch. I'll get this updated ASAP. Thanks for reporting 🙏

yuschick commented 10 months ago

I just published version 1.0.1 which includes a fix for this false positive. Thanks again for reporting this 👏

crstauf commented 10 months ago

Confirmed: thanks for addressing so quickly! 🍻