Skip to content

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

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

Open
hyperknot opened this issue Apr 9, 2025 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@hyperknot
Copy link

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 hyperknot added the bug Something isn't working label Apr 9, 2025
@mellyeliu mellyeliu self-assigned this Apr 11, 2025
@mellyeliu
Copy link
Member

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

@necolas necolas changed the title eslint valid-shorthands not allowing hsl / a color format [eslint-plugin] valid-shorthands not allowing hsl / a color format Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants