stylex icon indicating copy to clipboard operation
stylex copied to clipboard

[eslint-plugin] valid-shorthands not allowing hsl / a color format

Open hyperknot opened this issue 8 months ago • 1 comments

Describe the issue

This is supported

borderColor: 'hsla(210,3%,15%,0.1)',

this is not:

borderColor: 'hsl(220 3% 15% / 10%)',

Expected behavior

Both should be supported

Steps to reproduce

latest eslint plugin

Test case

No response

Additional comments

No response

hyperknot avatar Apr 09 '25 13:04 hyperknot

This is likely an issue with some of the special handling logic we added when shorthand expansion package fails. We're missing handling for that color format. Will put up a fix

mellyeliu avatar Apr 11 '25 05:04 mellyeliu