stylelint-order 8.1.0 → 8.1.1
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 +1 -0
- package/package.json +1 -1
- package/utils/getContainingNode.js +1 -1
package/README.md
CHANGED
|
@@ -45,6 +45,7 @@ Add `stylelint-order` to your Stylelint config `plugins` array, then add rules y
|
|
|
45
45
|
* [`order`](./rules/order/README.md): Specify the order of content within declaration blocks.
|
|
46
46
|
* [`properties-order`](./rules/properties-order/README.md): Specify the order of properties within declaration blocks.
|
|
47
47
|
* [`properties-alphabetical-order`](./rules/properties-alphabetical-order/README.md): Specify the alphabetical order of properties within declaration blocks.
|
|
48
|
+
* [`custom-properties-alphabetical-order`](./rules/custom-properties-alphabetical-order/README.md): Specify the alphabetical order of custom properties (CSS variables) within declaration blocks.
|
|
48
49
|
|
|
49
50
|
## Autofixing
|
|
50
51
|
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ export function getContainingNode(node) {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
// postcss-html `style` attributes: declarations are children of Root node
|
|
12
|
-
if (node.parent?.
|
|
12
|
+
if (node.parent?.source.inline === true) {
|
|
13
13
|
return node.parent;
|
|
14
14
|
}
|
|
15
15
|
|