Stylelint: Add logical properties exemptions#78252
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: 0 B Total Size: 7.95 MB ℹ️ View Unchanged
|
aduth
left a comment
There was a problem hiding this comment.
LGTM 👍 I wonder if it'd be better to just do some blanket /(bottom|top|x|y|width|height)/ regex matching if we're not concerned about anything other than left/right specifically. Am I following that right?
That would be convenient actually, but it looks like this particular plugin doesn't support regex matching here. |
Ah, I think I was looking at the docs for a different plugin that had this feature when suggesting this 🙈 Maybe that one could work better for us if this ends up causing a lot of ongoing maintenance. |
What?
In preparation for #76744 (comment)
Adds a few more properties to the
plugin/use-logical-properties-and-valuesignore list:border-bottomandborder-topoverflow-xandoverflow-yscroll-margin-topandscroll-margin-bottomWhy?
This is preparation for enabling logical property linting across the
routesfolders. These properties do not affect RTL directionality, so flagging them creates noise while auditing the route stylesheets for physical directional properties that do need to be converted.Testing Instructions
npm run lint:css.