@mrhenry/stylelint-mrhenry-nesting 2.2.1 → 2.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrhenry/stylelint-mrhenry-nesting",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "Mr. Henry's preferred way of writing nested CSS",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -191,7 +191,7 @@ const ruleFunction = (primaryOption, secondaryOptionObject, context) => {
191
191
  const afterFirstPart = selectorAST.nodes[0]?.next();
192
192
 
193
193
  if (firstPart && afterFirstPart?.type === 'combinator') {
194
- selectorAST.nodes[0]?.replaceWith(selectorParser.universal())
194
+ selectorAST.nodes[0]?.replaceWith(selectorParser.nesting())
195
195
  fixSelector(rule, selectorsAST, selectorAST);
196
196
  } else {
197
197
  selectorAST.nodes[0]?.remove();