oxc icon indicating copy to clipboard operation
oxc copied to clipboard

napi/transformer: improve diagnostics

Open Boshen opened this issue 1 year ago • 2 comments

TS(17019)

  x '!' at the end of a type is not valid TypeScript syntax.
   ,-[asdf.tsx:1:8]
 1 | let x: asdf!
   :        ^^^^^
   `----
  help: Did you mean to write 'asdf'?
  • [ ] ~~something is missing before the ,~~ it's a separator.
  • [ ] TS(17019) looks weird
  • [ ] Need structured output so other tools can have the opportunity to display their own code frame

Boshen avatar Sep 29 '24 04:09 Boshen

We are currently using miette with a forked graphical reporter, I think it's time to fork and consolidate things ...

Boshen avatar Sep 29 '24 07:09 Boshen

Ive been working on this, I can take it on if needed

DonIsaac avatar Oct 02 '24 02:10 DonIsaac

Forked the repo, will merge our code back at some point. https://github.com/oxc-project/oxc-miette

Boshen avatar Oct 27 '24 10:10 Boshen