@mrhenry/stylelint-mrhenry-prop-order 2.0.0 → 2.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/order.js CHANGED
@@ -549,15 +549,12 @@ module.exports = [
549
549
  "text-rendering",
550
550
  "text-shadow",
551
551
  "text-size-adjust",
552
- "text-space-collapse",
553
- "text-space-trim",
554
552
  "text-spacing",
555
553
  "text-autospace",
556
554
  "text-spacing-trim",
557
555
  "text-transform",
558
556
  "text-underline-offset",
559
557
  "text-underline-position",
560
- "text-wrap",
561
558
  "top",
562
559
  "right",
563
560
  "bottom",
@@ -592,6 +589,9 @@ module.exports = [
592
589
  "voice-stress",
593
590
  "voice-volume",
594
591
  "white-space",
592
+ "white-space-collapse",
593
+ "text-wrap",
594
+ "text-space-trim",
595
595
  "widows",
596
596
  "width",
597
597
  "min-width",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrhenry/stylelint-mrhenry-prop-order",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Mr. Henry's preferred order for CSS properties",
5
5
  "main": "stylelint-mrhenry-prop-order.js",
6
6
  "scripts": {
@@ -20,6 +20,10 @@ const ignoredAtRules = [
20
20
 
21
21
  const ruleFunction = (primaryOption, secondaryOptionObject, context) => {
22
22
  return (postcssRoot, postcssResult) => {
23
+ if (!primaryOption) {
24
+ return;
25
+ }
26
+
23
27
  postcssRoot.walkRules((rule) => {
24
28
  let parent = rule.parent;
25
29
  while (parent) {