stylelint-plugin-defensive-css 0.0.1 → 0.0.2

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
@@ -55,7 +55,7 @@ Enable this rule in order to prevent unintentional repeating background.
55
55
  "rules": {
56
56
  "plugin/use-defensive-css": [
57
57
  true,
58
- { ..., "background-repeat": true }
58
+ { "background-repeat": true }
59
59
  ]
60
60
  }
61
61
  }
@@ -98,7 +98,7 @@ Enable this rule in order to require fallbacks values for custom properties.
98
98
  "rules": {
99
99
  "plugin/use-defensive-css": [
100
100
  true,
101
- { ..., "custom-property-fallbacks": true }
101
+ { "custom-property-fallbacks": true }
102
102
  ]
103
103
  }
104
104
  }
@@ -133,7 +133,7 @@ Enable this rule in order to require all flex rows to have a flex-wrap value.
133
133
  "rules": {
134
134
  "plugin/use-defensive-css": [
135
135
  true,
136
- { ..., "flex-wrapping": true }
136
+ { "flex-wrapping": true }
137
137
  ]
138
138
  }
139
139
  }
@@ -178,7 +178,7 @@ Enable this rule in order to require all vendor-prefixed selectors to be split i
178
178
  "rules": {
179
179
  "plugin/use-defensive-css": [
180
180
  true,
181
- { ..., "vendor-prefix-grouping": true }
181
+ { "vendor-prefix-grouping": true }
182
182
  ]
183
183
  }
184
184
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stylelint-plugin-defensive-css",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "A Stylelint plugin to enforce defensive CSS best practices.",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -87,7 +87,7 @@ const ruleFunction = (_, options) => {
87
87
  flexWrappingProps.nodeToReport = decl;
88
88
  }
89
89
 
90
- if (decl.prop === 'flex-direction' && decl.value.startsWith('column')) {
90
+ if (decl.prop === 'flex-direction' && decl.value.includes('column')) {
91
91
  flexWrappingProps.isFlexRow = false;
92
92
  }
93
93