Closed futurist closed 7 years ago
below code is valid if statement, but cannot be formatted:
if(!data) getData(url) else{ play() }
But cannot be formatted, due to parse error
when changed as below:
if(!data) { getData(url) } else{ play() }
It's ok to be formatted.
You should use standard --fix instead of this package. standard-format isn't being actively maintained anymore.
standard --fix
standard-format
below code is valid if statement, but cannot be formatted:
But cannot be formatted, due to parse error
when changed as below:
It's ok to be formatted.