@@ -268,12 +268,12 @@ To specify the library files to use in a TypeScript file, you can use
268268
269269While Deno uses ` deno.json ` for TypeScript configuration by default, it also
270270supports ` tsconfig.json ` for compatibility with existing Node.js and TypeScript
271- projects, making it easier to adopt Deno incrementally. Each workspace
272- directory containing a ` deno.json ` or ` package.json ` is probed for a
273- ` tsconfig.json ` — if one exists, Deno will automatically use it for type
274- checking and the language server, no extra flags needed. Since Deno 2.1,
275- ` jsconfig.json ` is also auto-detected when a ` package.json ` is present, which
276- is useful for JavaScript-only projects.
271+ projects, making it easier to adopt Deno incrementally. Each workspace directory
272+ containing a ` deno.json ` or ` package.json ` is probed for a ` tsconfig.json ` — if
273+ one exists, Deno will automatically use it for type checking and the language
274+ server, no extra flags needed. Since Deno 2.1, ` jsconfig.json ` is also
275+ auto-detected when a ` package.json ` is present, which is useful for
276+ JavaScript-only projects.
277277
278278For example, an existing Node.js project with this ` tsconfig.json ` :
279279
@@ -292,13 +292,13 @@ For example, an existing Node.js project with this `tsconfig.json`:
292292```
293293
294294will be picked up automatically when running ` deno check ` or using the Deno
295- language server. If a ` deno.json ` with its own ` compilerOptions ` is added
296- later, those take precedence.
295+ language server. If a ` deno.json ` with its own ` compilerOptions ` is added later,
296+ those take precedence.
297297
298298::: tip
299299
300- For Deno-first projects, prefer ` compilerOptions ` in ` deno.json ` over a
301- separate ` tsconfig.json ` . See
300+ For Deno-first projects, prefer ` compilerOptions ` in ` deno.json ` over a separate
301+ ` tsconfig.json ` . See
302302[ Configuring TypeScript] ( /runtime/reference/ts_config_migration/ ) for the full
303303list of supported fields, precedence rules, and compiler option defaults.
304304
0 commit comments