Dashboard: forbid non-module stylesheets in experimental, new widgets#78496
Conversation
ba56e07 to
47293d6
Compare
|
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.98 MB ℹ️ View Unchanged
|
|
Flaky tests detected in 6220b3f. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/26216161563
|
47293d6 to
6220b3f
Compare
retrofox
left a comment
There was a problem hiding this comment.
LGTM. Minor, but useful 💯
What?
Part of #77616
Adds
widgets/*to Eslint setup for@wordpress/no-non-module-stylesheet-importsrule:Not allowed:
import './style.scss'import styles from './style.css'(non module)Allowed:
import styles from './foo.module.css'Why?
Restricts to the latest approach to CSS in the Gutenberg repo, now that the folder is still fresh.
How?
Testing Instructions
You can try non-allowed imports in
widgets/hello-worldand se it failnpm run lint:jsTesting Instructions for Keyboard
Screenshots or screencast
Use of AI Tools