Is your feature request related to a problem? Please describe.
The enforces-shorthand rule doesn’t detect shorthand opportunities for scroll-padding and scroll-margin.
For example, scroll-pl-3 scroll-pr-3 could be scroll-px-3, but no warning is shown.
Describe the solution you'd like
Add shorthand support for scroll-padding and scroll-margin utilities, just like p-* and m-*.
For example:
scroll-pl-* scroll-pr-* → scroll-px-*
scroll-mt-* scroll-mb-* → scroll-my-*
- support negative values like
-scroll-ml-2 -scroll-mr-2 → -scroll-mx-2.
I'm happy to contribute a PR to implement and test it.
Is your feature request related to a problem? Please describe.
The
enforces-shorthandrule doesn’t detect shorthand opportunities forscroll-paddingandscroll-margin.For example,
scroll-pl-3 scroll-pr-3could bescroll-px-3, but no warning is shown.Describe the solution you'd like
Add shorthand support for
scroll-paddingandscroll-marginutilities, just likep-*andm-*.For example:
scroll-pl-* scroll-pr-*→scroll-px-*scroll-mt-* scroll-mb-*→scroll-my-*-scroll-ml-2 -scroll-mr-2→-scroll-mx-2.I'm happy to contribute a PR to implement and test it.