Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Project wide diagnostics in Deno?

I’m trying to get errors from all files in a project, not only open files.

Is there a Deno version of this setting:

"typescript.tsserver.experimental.enableProjectDiagnostics": true

A command to scan entire project for errors from terminal would also work.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I’m using VSCode and Deno 1.28.2.

Thanks in advance!

>Solution :

Refer to the Type Checking section of the manual page “Overview of TypeScript in Deno”.

You can type-check your code (without executing it) using the following command:

deno check module.ts

This will type-check all local modules involved in the module graph: all imports of that module — and imports of imports, etc. — on your file system, and emit compiler diagnostics for any problems.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading