Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions @ember/app-tsconfig/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@
// This does not require extensions, but allows them.
"allowImportingTsExtensions": true,

// Allow importing JSON files directly. Node 24 strips TypeScript types
// and natively supports JSON module imports via `with { type: 'json' }`,
// which is now standard; TypeScript needs this flag to type-check those
// imports. Common uses include reading package.json inside build scripts
// and root-level config files.
"resolveJsonModule": true,


// Don't implicitly pull in declarations from `@types` packages unless we
// actually import from them AND the package in question doesn't bring its
Expand Down
7 changes: 7 additions & 0 deletions @ember/library-tsconfig/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@
// support importing `.ts` files.
"allowImportingTsExtensions": true,

// Allow importing JSON files directly. Node 24 strips TypeScript types
// and natively supports JSON module imports via `with { type: 'json' }`,
// which is now standard; TypeScript needs this flag to type-check those
// imports. Common uses include reading package.json inside build scripts
// and root-level config files.
"resolveJsonModule": true,

// Trying to check Ember apps and addons with `allowJs: true` is a recipe
// for many unresolveable type errors, because with *considerable* extra
// configuration it ends up including many files which are *not* valid and
Expand Down
Loading