matype/stylefmt

Missing semicolon in scss variables is not fixed by stylefmt

pavanchirravuri opened this issue · 0 comments

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