mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 15:14:33 +00:00
refactor(cli/fmt_errors): Improve source line formatting (#4832)
This commit is contained in:
parent
f72f045de5
commit
ef6ee25e09
21 changed files with 218 additions and 271 deletions
|
@ -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]
|
Loading…
Add table
Add a link
Reference in a new issue