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
Allow ordinary regular expressions anywhere a regex string is accepted in rule config #3799
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.
My goal is to do one of these per (working) day until it's done
Nice!
I can submit them as separate PRs or just keep a running branch.
Let's keep it running. We can always merge if you run out of steam :)
…ion in media-feature-name-value-whitelist
…oreMediaFeatureNames
… secondary options
… and ignoreKeywords
…property-unit-blacklist
…in selector-type-no-unknown
…cate-properties to be RegExp
…ate-names to be RegExp
…dant-longhand-properties to be RegExp
This is ready for a review if anyone can manage it. Mostly, this is pretty formulaic, so if you look at one commit you've seen them all. The only exception is: where I had to change the util validateObjectWithStringArrayProps. |
Should probably tag this @stylelint/core Please review. |
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.
@CAYdenberg Thank you so much! I'm sure this PR was laborious, but it's fantastic to see it done!
LGTM.
@@ -12,7 +12,7 @@ This rule ignores comments within selector and value lists. | |||
|
|||
## Options | |||
|
|||
`array|string`: `["array", "of", "words", "or", "/regex/"]|"word"|"/regex/"` | |||
`array|string|regexp`: `["array", "of", "words", /or/, "/regex/"]|"word"|"/regex/"` |
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.
👍 - a nice way communicate this
column: 21 | ||
}, | ||
{ | ||
code: "a { background: url(HTTPS://example.com/file.jpg); }", |
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.
Just a note that the regex should be case-sensitive unless it carries the i
flag. We should pick this up in a separate issue, though.
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.
Good work!
Thanks everyone! ❤️ I still can't edit the CHANGELOG directly, so if someone could do that for me, it'd be swell. |
Strange... done:
@CAYdenberg Thanks again for all the work you put into this PR! I was on hols and offline for a few days, so I'm just catching up on all the PRs now. |
Closes #3008
My goal is to do one of these per (working) day until it's done ... I can submit them as separate PRs or just keep a running branch.