Skip to content

Commit

Permalink
Refactor to remove reference to postcss-resolve-nested-selector (#7693
Browse files Browse the repository at this point in the history
)
  • Loading branch information
romainmenke committed May 18, 2024
1 parent c72cdc1 commit cec315e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rules/selector-max-universal/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const rule = (primary, secondaryOptions) => {
function checkSelector(resolvedSelectorNode, selectorNode, ruleNode) {
const count = resolvedSelectorNode.reduce((total, childNode) => {
// Only traverse inside actual selectors
// All logical combinations will be resolved as nested selector in `postcss-resolve-nested-selector`
// All logical combinations will be resolved as nested selector
if (childNode.type === 'selector') {
checkSelector(childNode, selectorNode, ruleNode);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/selector-max-universal/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const rule = (primary, secondaryOptions) => {
function checkSelector(resolvedSelectorNode, selectorNode, ruleNode) {
const count = resolvedSelectorNode.reduce((total, childNode) => {
// Only traverse inside actual selectors
// All logical combinations will be resolved as nested selector in `postcss-resolve-nested-selector`
// All logical combinations will be resolved as nested selector
if (childNode.type === 'selector') {
checkSelector(childNode, selectorNode, ruleNode);
}
Expand Down

0 comments on commit cec315e

Please sign in to comment.