Conversation
🦋 Changeset detectedLatest commit: 7c19ff3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughA new CSS linter rule Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In @.changeset/quiet-hounds-shout.md:
- Line 5: Add a short inline "invalid example" to the changeset entry for the
new nursery rule noHexColors by inserting a concise code snippet that
demonstrates a hex color being flagged (for example a CSS declaration like
color: `#ff0000`;), so the changeset includes a clear invalid example for the
linter; update .changeset/quiet-hounds-shout.md near the rule description to
include this single-line invalid snippet.
| "@biomejs/biome": patch | ||
| --- | ||
|
|
||
| Added the nursery rule [`noHexColors`](https://biomejs.dev/linter/rules/no-hex-colors/), which flags the use of hexadecimal color codes in CSS and suggests using named colors or RGB/RGBA/HSL/HSLA formats instead. |
There was a problem hiding this comment.
Please add an invalid example to the changeset.
A short inline snippet is required for new lint rules in changesets. Based on learnings, please include one.
✍️ Suggested tweak
-Added the nursery rule [`noHexColors`](https://biomejs.dev/linter/rules/no-hex-colors/), which flags the use of hexadecimal color codes in CSS and suggests using named colors or RGB/RGBA/HSL/HSLA formats instead.
+Added the nursery rule [`noHexColors`](https://biomejs.dev/linter/rules/no-hex-colors/), which flags the use of hexadecimal color codes in CSS and suggests using named colors or RGB/RGBA/HSL/HSLA formats instead. Example (invalid): `a { color: `#000`; }`📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| Added the nursery rule [`noHexColors`](https://biomejs.dev/linter/rules/no-hex-colors/), which flags the use of hexadecimal color codes in CSS and suggests using named colors or RGB/RGBA/HSL/HSLA formats instead. | |
| Added the nursery rule [`noHexColors`](https://biomejs.dev/linter/rules/no-hex-colors/), which flags the use of hexadecimal color codes in CSS and suggests using named colors or RGB/RGBA/HSL/HSLA formats instead. Example (invalid): `a { color: `#000`; }` |
🤖 Prompt for AI Agents
In @.changeset/quiet-hounds-shout.md at line 5, Add a short inline "invalid
example" to the changeset entry for the new nursery rule noHexColors by
inserting a concise code snippet that demonstrates a hex color being flagged
(for example a CSS declaration like color: `#ff0000`;), so the changeset includes
a clear invalid example for the linter; update .changeset/quiet-hounds-shout.md
near the rule description to include this single-line invalid snippet.
CodSpeed Performance ReportMerging this PR will degrade performance by 16.25%Comparing Summary
Performance Changes
Footnotes
|
crates/biome_css_analyze/tests/specs/nursery/noHexColors/invalid.css.snap
Outdated
Show resolved
Hide resolved
c5cc14a to
7c19ff3
Compare
Summary
Port https://stylelint.io/user-guide/rules/color-no-hex/
Generated by gpt-5.2-codex
Test Plan
snapshots
Docs