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 autofix for grid-template #6777

Merged
merged 6 commits into from Apr 20, 2023

Conversation

mattxwang
Copy link
Member

@mattxwang mattxwang commented Apr 12, 2023

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

Closes #6701.

Is there anything in the PR that needs further explanation?

A handful of thoughts:

  • should I be moving this "custom resolver" logic to a new file?
  • I've elected to not implement the same fix for the grid shorthand, since the situation there is quite a bit more complicated with the auto-flow syntax element (spec ref)

More broadly, I'm happy to own any other changes that need to be made to this autofixer.

@changeset-bot
Copy link

changeset-bot bot commented Apr 12, 2023

🦋 Changeset detected

Latest commit: ba5b2ed

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 force-pushed the fix-decl-block-no-redun-lghnd-props-grid-template branch from fbdfc03 to 1e68516 Compare April 12, 2023 01:46
@mattxwang mattxwang force-pushed the fix-decl-block-no-redun-lghnd-props-grid-template branch from 1e68516 to 0321073 Compare April 12, 2023 01:48
@mattxwang
Copy link
Member Author

After thinking on it a bit more, I'm not sure what the other alternative is to resolve this problem (other than a "custom resolver" methodology). Going to mark this as ready to review, but I'm anticipating that it'll need some changes!

@mattxwang mattxwang marked this pull request as ready for review April 20, 2023 06:35
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.

@mattxwang Thanks for the pull request. I've commented on a few refactoring ideas, so can you check them?

mattxwang and others added 5 commits April 20, 2023 12:11
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
…ndex.js

Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
@mattxwang
Copy link
Member Author

Thanks for the suggestions! I think I've incorporated all of them (in a slightly-messy git history 😅 )

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 👍🏼

@mattxwang mattxwang merged commit 2e31353 into main Apr 20, 2023
14 checks passed
@mattxwang mattxwang deleted the fix-decl-block-no-redun-lghnd-props-grid-template branch April 20, 2023 22:00
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-redundant-longhand-properties autofix for grid-template
2 participants