-
Notifications
You must be signed in to change notification settings - Fork 501
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
Remove shorthand props #2138
Comments
I don’t think blocking shorthand props is supported. Something you could do is blocking them using linting rules. |
So it's a feature request if it's not supported? Or is there somehow for a manual overwrite. Seems strange they extended cssproperties without ability to removed them. The eslint is pretty hacky as it can be ignored. The big issue here is inconstancy and the team then needs to agree to use one or the other, quite poor DX. I believe it's better to have configuration over convention for consistency. |
@Kivylius You can override anything you want from this library by extending it and/or removing/extracting the types you don't want to include. But you have to build out the types yourself then. |
New teams find these shorthand properties quite confusing and its even harder to read the code over the longer properties as you need to understand whats going on. So is there any way to remove those properties and keep the rest? I just want the CSS Properties, and no psudo properties like
h
,w
,pr
. I searched and could not find anything.The text was updated successfully, but these errors were encountered: