stylelint-plugin-defensive-css 0.0.4 → 0.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stylelint-plugin-defensive-css",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "A Stylelint plugin to enforce defensive CSS best practices.",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -67,14 +67,12 @@ const ruleFunction = (_, options) => {
67
67
 
68
68
  backgroundRepeatProps = { ...defaultBackgroundRepeatProps };
69
69
  }
70
-
71
- return;
72
70
  }
73
71
 
74
72
  /* CUSTOM PROPERTY FALLBACKS */
75
73
  if (options?.['custom-property-fallbacks']) {
76
74
  if (decl.value.includes('var(--') && !decl.value.includes(',')) {
77
- return stylelint.utils.report({
75
+ stylelint.utils.report({
78
76
  message: ruleMessages.customPropertyFallbacks(),
79
77
  node: decl,
80
78
  result,
@@ -110,8 +108,6 @@ const ruleFunction = (_, options) => {
110
108
 
111
109
  flexWrappingProps = { ...defaultFlexWrappingProps };
112
110
  }
113
-
114
- return;
115
111
  }
116
112
 
117
113
  /* GROUPING VENDOR PREFIXES */
@@ -119,7 +115,7 @@ const ruleFunction = (_, options) => {
119
115
  const hasMultiplePrefixes = findVendorPrefixes(decl.parent.selector);
120
116
 
121
117
  if (hasMultiplePrefixes) {
122
- return stylelint.utils.report({
118
+ stylelint.utils.report({
123
119
  message: ruleMessages.vendorPrefixWGrouping(),
124
120
  node: decl.parent,
125
121
  result,