yuschick/stylelint-plugin-defensive-css

accidental-hover issue

pink-eye opened this issue · 2 comments

Describe the bug
When I define accidental-hover in rules I get error. When I remove it everything is fine.

Expected behavior
No output errors.

Screenshots
error with accidental-hover: true
screenshot

output without accidental-hover: true
screenshot

scripts in package.json
screenshot

Additional context
I use stylelint with styled-components, stylelint-config-idiomatic-order

.stylelintrc

{
	"extends": "stylelint-config-idiomatic-order",
	"customSyntax": "postcss-styled-syntax",
	"plugins": ["stylelint-plugin-defensive-css"],
	"rules": {
		"declaration-empty-line-before": [
			"always",
			{
				"ignore": [
					"after-comment",
					"after-declaration",
					"first-nested",
					"inside-single-line-block"
				]
			}
		],
		"plugin/use-defensive-css": [
			true,
			{
				"background-repeat": true,
				"custom-property-fallbacks": false,
				"flex-wrapping": true,
				"vendor-prefix-grouping": false,
				"accidental-hover": true,
				"scroll-chaining": true
			}
		]
	}
}

Oh, interesting. I will look at this.

Could you share the CSS media queries you have that may be triggering this rule? I'm not able to get an error on my end yet, so having something that does error already would be really helpful.

It works good now
Thanks!