Skip to content

Conversation

@aubreyquinn
Copy link
Collaborator

Updated radiogroup rule comments.
Added new eslint rule for SwatchPicker with docs and unit tests.
Added new factory function for simplifying creating rules.

allowLabelledBy: true,
allowWrappingLabel: false
},
"noUnlabeledSwatchPicker",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: for readability, consider moving messageId and description to required properties in the LabeledControlConfig instead of just passing as params here

return {
meta: {
type: "problem" as const,
messages: { [messageId]: description },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this have a const assertion too?

@aubreyquinn aubreyquinn merged commit 2306b4d into main Sep 16, 2025
11 checks passed
@aubreyquinn aubreyquinn deleted the users/aubreyquinn/swatchPicker branch September 16, 2025 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants