New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] chore(update): postcss-selector-parser #3988
Conversation
6020d00
to
c5f1822
Compare
node.type === "combinator" && | ||
!node.value.startsWith("/") && | ||
!node.value.endsWith("/") | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need lodash, we already require node@6, so we can use this function
fixPositions.push(openIndex, closeIndex); | ||
if (context.fix) { | ||
selectorFixed = true; | ||
attributeNode.quoteMark = correctQuote; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Port from #3284
message: messages.rejectedOpening, | ||
line: 1, | ||
column: 13 | ||
} | ||
}*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a bug in parser, investigate
message: messages.rejected(" "), | ||
line: 1, | ||
column: 17 | ||
}, | ||
},*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a bug in parser, investigate
"text": "Unexpected \\" | ||
|
||
\\" (selector-descendant-combinator-no-non-space)", | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a bug in parser, investigate
Still buggy and very misleading in raws/spaces, we need fix it in |
faf5287
to
2284cdc
Compare
2284cdc
to
7ae1c4e
Compare
7ae1c4e
to
6f9e42e
Compare
@evilebottnawi Thanks for working on this! Is this still blocked by postcss/postcss-selector-parser#189? |
Yep blocked, we need again do major release for selector parser, I think it was done to end of month |
Do you mean a major release of the selector parser or a major release of stylelint? |
Major release parser |
Can we close #3861 in favour of this PR? |
@jeddy3 yes |
@evilebottnawi what prevents us update to the latest version? |
@hudochenkov need fix comment parsing, i don't have enough time to fix it, sorry, maybe in future |
@evilebottnawi is this fix should be made in parser or in stylelint? |
@hudochenkov parser |
Closed in favour of #4595 |
update parser
Maybe refactor code base, in some places we can improve speed add more check or simplify code, but it is out of this PR
Very few problems