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
Fix false positives for interpolation inside var in custom-property-pattern #5925
Fix false positives for interpolation inside var in custom-property-pattern #5925
Conversation
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.
@yinonov Thank you for the quick fix. LGTM 👍🏼
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.
@yinonov Thanks for the pull request.
I've made one minor request, otherwise looks good.
{ | ||
code: 'a { color: var($foo-color); }', | ||
}, | ||
{ | ||
code: 'a { color: var(tokens.$foo-color); }', | ||
}, |
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.
Let's move this into a separate testRule
(at the bottom of the file) that sets the customSyntax
property (like so) as we like to keep non-standard syntax separate from standard syntax.
testRule({ | ||
ruleName, | ||
customSyntax: 'postcss-scss', | ||
config: ['$foo-color'], |
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.
@jeddy3 any hints on relevant config here? ref to relevant documentation on possible values?
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.
See #5925 (comment)
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.
Thanks for making the change.
I've requested two follow up changes (as committable suggestions).
Co-authored-by: Richard Hallows <jeddy3@users.noreply.github.com>
Co-authored-by: Richard Hallows <jeddy3@users.noreply.github.com>
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.
Thank you! LGTM.
Changelog entry added:
|
I must say that the contribution experience with styling has been tremendously pleasant. Starting with the report bug template, maintainers assistance, and the development environment setup. This should be rated 5 stars in a GitHub open source criteria If there was any. Thanks team stylelint 😀 |
That's fantastic to hear! Thank you for your contribution. |
Closes #5921