yuschick/stylelint-plugin-defensive-css

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

crstauf opened this issue ยท 3 comments

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):

  • OS: macOS
  • Browser: NA
  • Version: 14.2

Ohh, this is an awesome catch. I'll get this updated ASAP. Thanks for reporting ๐Ÿ™

I just published version 1.0.1 which includes a fix for this false positive. Thanks again for reporting this ๐Ÿ‘

Confirmed: thanks for addressing so quickly! ๐Ÿป