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-block-no-duplicate-properties autofix for !important #6528

Conversation

sidx1024
Copy link
Member

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

Fixes #6523

Is there anything in the PR that needs further explanation?

No, that's it.

@changeset-bot
Copy link

changeset-bot bot commented Dec 16, 2022

🦋 Changeset detected

Latest commit: c0f91b1

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

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

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.

@sidx1024 Thanks for creating the PR! Additionally, could you add test cases to testRule with other secondary options?

  • ignore: [ 'consecutive-duplicates-with-different-values' ]
  • ignore: [ 'consecutive-duplicates-with-same-prefixless-values' ]
  • ignoreProperties: [ 'color' ]

@sidx1024
Copy link
Member Author

@ybiquitous Added the requested test cases.

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.

@sidx1024 Thank you. Could you address one more suggestion, please?

ybiquitous and others added 2 commits December 20, 2022 10:23
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
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.

Thanks. LGTM 👍🏼

@ybiquitous ybiquitous changed the title Fix declaration-block-no-duplicate-properties autofix for !important Fix declaration-block-no-duplicate-properties autofix for !important Dec 22, 2022
@ybiquitous ybiquitous merged commit dacd794 into stylelint:main Dec 23, 2022
@sidx1024 sidx1024 deleted the sid/handle-important-for-declaration-block-no-duplicate-properties branch January 16, 2023 16:24
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.

Fix declaration-block-no-duplicate-properties autofix for !important
2 participants