Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix declaration-property-value-no-unknown false negatives for @starting-style #7461

Conversation

fpetrakov
Copy link
Contributor

Which issue, if any, is this issue related to?

None, it's a false negative fix for declaration-property-value-no-unknown rule.

Is there anything in the PR that needs further explanation?

This false negative is explained here - #7438 (comment)

Copy link

changeset-bot bot commented Jan 13, 2024

🦋 Changeset detected

Latest commit: 2956d08

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
stylelint Minor

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

Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

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

@fpetrakov Thanks for the follow-up pull request! I've commented on the refactoring as @Mouvedia suggested. Can you address it?

lib/reference/atKeywords.mjs Show resolved Hide resolved
lib/reference/atKeywords.mjs Outdated Show resolved Hide resolved
@ybiquitous ybiquitous changed the title Fix declaration-property-value-no-unknown false negative Fix declaration-property-value-no-unknown false negatives for @starting-style Jan 14, 2024
@@ -11,6 +11,9 @@ testRule({
{
code: 'a { top: 0; }',
},
{
code: 'a { @starting-style { opacity: 0; } }',
Copy link
Contributor

Choose a reason for hiding this comment

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

minor nit

  • the color property by default
  • the red value by default

Since the rest of the examples don't respect it, you don't have to though.
cf https://stylelint.io/developer-guide/rules#write-tests

Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

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

Thank you. LGTM 👍🏼

@ybiquitous ybiquitous mentioned this pull request Jan 15, 2024
4 tasks
.changeset/cyan-mice-enjoy.md Outdated Show resolved Hide resolved
Co-authored-by: Richard Hallows <jeddy3@users.noreply.github.com>
@jeddy3 jeddy3 merged commit d881c9d into stylelint:main Jan 15, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants