-
-
Notifications
You must be signed in to change notification settings - Fork 961
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
Fix declaration-block-no-redundant-longhand-properties
autofix for grid-template
#6777
Conversation
🦋 Changeset detectedLatest commit: ba5b2ed The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
fbdfc03
to
1e68516
Compare
1e68516
to
0321073
Compare
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! |
There was a problem hiding this 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?
lib/rules/declaration-block-no-redundant-longhand-properties/index.js
Outdated
Show resolved
Hide resolved
lib/rules/declaration-block-no-redundant-longhand-properties/index.js
Outdated
Show resolved
Hide resolved
lib/rules/declaration-block-no-redundant-longhand-properties/index.js
Outdated
Show resolved
Hide resolved
lib/rules/declaration-block-no-redundant-longhand-properties/index.js
Outdated
Show resolved
Hide resolved
lib/rules/declaration-block-no-redundant-longhand-properties/index.js
Outdated
Show resolved
Hide resolved
lib/rules/declaration-block-no-redundant-longhand-properties/index.js
Outdated
Show resolved
Hide resolved
lib/rules/declaration-block-no-redundant-longhand-properties/index.js
Outdated
Show resolved
Hide resolved
lib/rules/declaration-block-no-redundant-longhand-properties/index.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
…ndex.js Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
Thanks for the suggestions! I think I've incorporated all of them (in a slightly-messy git history 😅 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM 👍🏼
Closes #6701.
A handful of thoughts:
grid
shorthand, since the situation there is quite a bit more complicated with theauto-flow
syntax element (spec ref)More broadly, I'm happy to own any other changes that need to be made to this autofixer.