Open Bug 2053700 Opened 4 months ago Updated 23 days ago

Investigate updating to TypeScript 7

Categories

(Developer Infrastructure :: Linting and Formatting: JavaScript, task, P2)

task

Tracking

(Not tracked)

People

(Reporter: standard8, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

TypeScript 7 has just been released and is mainly focussed on improved performance.

I tried updating to it, and it seems like it can run, but the checkRootOnly plugin is not working - I get many results returned from all over the tree.

@zombie: I think you had a look into this before, do you have any ideas here?

Flags: needinfo?(tomica)
See Also: → 2087449
Component: Lint and Formatting → Linting and Formatting: JavaScript

TypeScript 7.1 (beta) ships a JS API (typescript/sync: program, type checker, per-file diagnostics), see https://devblogs.microsoft.com/typescript/announcing-typescript-7-1-beta/#typescript-7.1-api. That might let us drop ts-patch: rather than rewriting checkJsDirective in checkRootOnly, a small driver could request semantic diagnostics only for the program's root files.

You need to log in before you can comment on or make changes to this bug.