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

Switch to relative unit #656

Open
Dreimus opened this issue Oct 18, 2024 · 0 comments
Open

Switch to relative unit #656

Dreimus opened this issue Oct 18, 2024 · 0 comments

Comments

@Dreimus
Copy link

Dreimus commented Oct 18, 2024

Hello there !
Is it possible to add a stylelinter rule for privilieging relative units in scss ?

Moreover is it possible to switch existing pixel presence in code to rem, vw, etc?

For stylelinter rule, you can use this one

"unit-allowed-list": [["em", "rem", "%", "s", "ms", "deg", "vh", "vw", "fr", "ch", "cm", "mm", "in", "pt", "pc", "ex", "vmin", "vmax", "grad", "rad", "turn", "dpi", "dpcm", "dppx"], { "severity": "warning" }]

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant