Files
azure-sdk-for-js/tsconfig.src.esm.json
3fa9b949df chore: Simplify root tsconfigs by removing options now defaulted in TypeScript 6.0 (#37995)
TypeScript 6.0 promotes several previously opt-in compiler options to
defaults, making explicit declarations across the root tsconfig
hierarchy redundant.

### Changes

**Removed from root tsconfigs (now TS 6.0 defaults):**
- `strict: true` — removed from `tsconfig.json`,
`tsconfig.snippets.base.json`
- `esModuleInterop: true` — removed from `tsconfig.json`
- `moduleResolution: "NodeNext"` — removed from all files; automatically
inferred when `module: "NodeNext"`
- `module: "NodeNext"` — removed from child configs that inherit it via
`extends`
- `types: ["node"]` — removed from
`tsconfig.src.{esm,browser,react-native,workerd}.json`; inherited from
`tsconfig.src.build.json`

**Bug fix in `tsconfig.src.esm.json`:**  
The `lib` override `["ES2023", "DOM", "DOM.Iterable"]` was missing
`DOM.AsyncIterable` compared to the parent `tsconfig.src.build.json`.
Removed the override so it now correctly inherits `["DOM",
"DOM.Iterable", "DOM.AsyncIterable", "ES2023"]`.

Net result: −26 lines across 9 files. Each config now expresses only
what's specific to it.

### Packages impacted by this PR

All packages (shared root tsconfig infrastructure).

### Issues associated with this PR

N/A

### Describe the problem that is addressed by this PR

Root-level tsconfigs contained ~26 options that are now TS 6.0 defaults,
adding noise and making it harder to see what each config actually
contributes.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?

Straightforward removal only. One additive option considered but
deferred: `erasableSyntaxOnly: true` (prohibits
`enum`/`namespace`/parameter properties, enabling native TS stripping in
Node 22.6+) — requires auditing all packages for usage first.

### Are there test cases added in this PR? _(If not, why?)_

No. Config-only changes; existing build/type-check CI covers
correctness. Manually validated with `pnpm turbo build` on
`@azure/core-util` and `@azure/core-rest-pipeline`.

### Provide a list of related PRs _(if any)_

N/A

### Checklists
- [ ] Added impacted package name to the issue description.
- [ ] Does this PR need any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here.)_
- [ ] Added a changelog (if necessary).

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: deyaaeldeen <[email protected]>
2026-04-06 12:14:39 -07:00

10 lines
215 B
JSON

{
"extends": "./tsconfig.src.build.json",
"compilerOptions": {
"outDir": "${configDir}/dist/esm",
"rootDir": "${configDir}/src",
"skipLibCheck": true
},
"include": ["${configDir}/src/**/*.ts"]
}