stylelint-plugin-defensive-css 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -244,6 +244,14 @@ div {
244
244
  flex-direction: row-reverse;
245
245
  flex-wrap: wrap-reverse;
246
246
  }
247
+ div {
248
+ display: flex;
249
+ flex-flow: row wrap;
250
+ }
251
+ div {
252
+ display: flex;
253
+ flex-flow: row-reverse nowrap;
254
+ }
247
255
  ```
248
256
 
249
257
  #### ❌ Failing Examples
@@ -256,6 +264,10 @@ div {
256
264
  display: flex;
257
265
  flex-direction: row;
258
266
  }
267
+ div {
268
+ display: flex;
269
+ flex-flow: row;
270
+ }
259
271
  ```
260
272
 
261
273
  ### Scroll Chaining
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stylelint-plugin-defensive-css",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "A Stylelint plugin to enforce defensive CSS best practices.",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -38,7 +38,10 @@ function traverseParentRules(parent) {
38
38
  }
39
39
 
40
40
  if (parent.parent.type === 'atrule') {
41
- if (parent.parent.params && parent.parent.params.includes('hover: hover')) {
41
+ if (
42
+ parent.parent.params &&
43
+ /\(hover(: hover)?\)/.test(parent.parent.params)
44
+ ) {
42
45
  isWrappedInHoverAtRule = true;
43
46
  } else {
44
47
  traverseParentRules(parent.parent);