refactor(cli/fmt_errors): Improve source line formatting (#4832)

This commit is contained in:
Nayeem Rahman 2020-04-20 20:39:02 +01:00 committed by GitHub
parent f72f045de5
commit ef6ee25e09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 218 additions and 271 deletions

View file

@ -1,15 +1,21 @@
[WILDCARD]
error TS2552: Cannot find name 'consol'. Did you mean 'console'?
[WILDCARD]error TS2552: Cannot find name 'consol'. Did you mean 'console'?
consol.log("hello world!");
~~~~~~
at [WILDCARD]tests/038_checkjs.js:2:1
[WILDCARD]tests/038_checkjs.js:2:1
'console' is declared here.
declare var console: Console;
~~~~~~~
at [WILDCARD]
2 consol.log("hello world!");
[WILDCARD]
error TS2552: Cannot find name 'Foo'. Did you mean 'foo'?
const foo = new Foo();
~~~
at [WILDCARD]tests/038_checkjs.js:6:17
[WILDCARD]tests/038_checkjs.js:6:17
'foo' is declared here.
const foo = new Foo();
~~~
at [WILDCARD]tests/038_checkjs.js:6:7
6 const foo = new Foo();
[WILDCARD]
Found 2 errors.
[WILDCARD]