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

Bug in camelCase css to kebab-case css conversion #34

Open
akilansengottaiyan opened this issue Sep 17, 2020 · 0 comments
Open

Bug in camelCase css to kebab-case css conversion #34

akilansengottaiyan opened this issue Sep 17, 2020 · 0 comments

Comments

@akilansengottaiyan
Copy link
Contributor

akilansengottaiyan commented Sep 17, 2020

When I tried to convert the below camelCase css to kebab-case css,

    fontSize: '14px',
    lineHeight: '25px',
    marginTop: '20px',
    textAlign: 'center'

the result is

    font-size: 14px;
    line-height: 25px;
    margin-top: 20px;
    textAlign: 'center'

It fails to convert the last line.
I looked into the code and found that the code use , as the separator and since the last line lacks , it fails to convert.
In cases of prettier config, "trailingComma": "none", it is not possible for me to have trailing comma.
It could be a simple fix to handle the last line and it would be significant to avoid bugs when relying on the extension to convert the css.
And I would love to raise the PR if any of the contributors acknowledges to proceed.
FYI : @paulmolluzzo @ansumanshah @mfunkie @zachgibson
Thanks in advance.

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