You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, the problem is the TypeScript is not JavaScript. In JavaScript const starts on a new line. In this case, in TypeScript, it should not. It would be possible to add a special case for this, but this it has certainly reached a point where we should split out TypeScript into a separate language interpreter.
Description
I use the js-beautify to beauty my angular 6 code generated by angular-cli. However, for a file called 'test.ts', js-beautify will break a statement:
into two lines:
which will break the angular compile:
Steps to Reproduce
compile the project
Then we will get the error message.
Environment
OS: Debian 9, Node 8.11.3 npm 6.3.0, angular 6.1.3
Settings
no settings, all default
run like
The text was updated successfully, but these errors were encountered: