Stylelint: Add cursor pointer rule and block-library override#77501
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.75 MB ℹ️ View Unchanged
|
|
Flaky tests detected in d447406. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/24679154779
|

What?
Part of #76221
This updates the shared Stylelint config to disallow
cursor: pointer, removes the package-specificpackages/ui/.stylelintrc.mjsoverride now that the rule lives at the repo level, and adds ablock-libraryoverride so that package can keep its existing legacy styles for now.Why?
We want packages to use the cursor token instead of raw
cursor: pointer.How?
cursor: pointerto the rootdeclaration-property-value-disallowed-listwith a targeted messagepackages/ui/.stylelintrc.mjsoverridepackages/block-library/.stylelintrc.mjsto inherit the root rule while omitting thecursorentry forblock-libraryTesting Instructions
Try adding a violation and see that it fails
npm run lint:css.