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-redundant-longhand-properties false negatives for *-block and *-inline logical properties #7208

Merged
merged 6 commits into from Oct 4, 2023

Conversation

mattxwang
Copy link
Member

@mattxwang mattxwang commented Oct 2, 2023

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

Closes #7200.

Is there anything in the PR that needs further explanation?

Bundling many properties into this PR as suggested in the original issue. I'm only including the ones that are trailed with -block and -inline (as scoped in the original issue title); I will address further false negatives in another PR.

I've chosen to base this off of main since:

  • we can probably publish a patch off of this
  • I don't think this'll introduce many (or any?) merge conflicts with v16

Affected properties:

  • border-block
  • border-inline
  • inset-block
  • inset-inline
  • scroll-margin-block
  • scroll-margin-inline
  • scroll-padding-block
  • scroll-padding-inline
  • margin-block
  • margin-inline
  • padding-block
  • padding-inline

…ves for `margin-block` and `margin-inline`

This is the original ask in #7200.
@changeset-bot
Copy link

changeset-bot bot commented Oct 2, 2023

🦋 Changeset detected

Latest commit: 9b09883

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

@mattxwang mattxwang changed the title Fix declaration-block-no-redundant-longhand-properties false negatives Fix declaration-block-no-redundant-longhand-properties false negatives for *-block and *-inline logical properties Oct 2, 2023
@mattxwang
Copy link
Member Author

Going to mark this as ready-for-review since I think it's big enough!

@mattxwang mattxwang marked this pull request as ready for review October 2, 2023 21:56
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.

Great. Thanks for making this change!

One question, should we update the property list in the rule's README?

This rule complains when the following shorthand properties can be used:

@mattxwang mattxwang force-pushed the reduce-false-negatives-decl-blk-no-red-lng-props branch from 00e2315 to 9b09883 Compare October 4, 2023 00:08
@mattxwang
Copy link
Member Author

One question, should we update the property list in the rule's README?

Ah! Totally slipped my mind, thanks. Just added those and sorted the list alphabetically (I'm not sure what the previous order was).

(accidentally force-pushed - sorry about that! only the latest commit is different from the last review)

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.

Great. LGTM 👍🏼

@mattxwang mattxwang merged commit 4bfee38 into main Oct 4, 2023
18 checks passed
@mattxwang mattxwang deleted the reduce-false-negatives-decl-blk-no-red-lng-props branch October 4, 2023 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants