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

Missing semicolon in scss variables is not fixed by stylefmt #307

Open
pavanchirravuri opened this issue May 23, 2017 · 0 comments
Open

Comments

@pavanchirravuri
Copy link

pavanchirravuri commented May 23, 2017

Hi,

I have used below scss with variables. stylefmt doesn't fix missing semicolons for variables instead it throws below error.

//_a.scss
$global-space: 10px
$global-font-size: 14px

div {
  margin: $global-space;
}

Error:

$ stylefmt -r src/**/*.scss
(node:3356) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec
tion id: 2): CssSyntaxError: C:\view\style\partials\_a.scss:1:16: Missed semicolon

> 1 | $global-space: 10px
    |                ^
  2 | $global-font-size: 14px
  3 |

Done in 12.13s.

It throws error missed semicolon but doesn't fix it automatically.
Am i missing something here or it's issue with stylefmt. could you please help fix the issue.

Thanks
Pavan

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