2484dc4080
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Mia Kanashi <chad@redpilled.dev>
29 lines
1.3 KiB
JSON
29 lines
1.3 KiB
JSON
{
|
|
"$schema": "https://json.schemastore.org/tsconfig",
|
|
"compilerOptions": {
|
|
// Enable top-level await, and other modern ESM features.
|
|
"target": "ESNext",
|
|
"module": "ESNext",
|
|
// Enable node-style module resolution, for things like npm package imports.
|
|
"moduleResolution": "Bundler",
|
|
// Allow importing TypeScript files using their native extension (.ts(x)).
|
|
"allowImportingTsExtensions": true,
|
|
// Enable JSON imports.
|
|
"resolveJsonModule": true,
|
|
// Enforce the usage of type-only imports when needed, which helps avoiding bundling issues.
|
|
"verbatimModuleSyntax": true,
|
|
// Ensure that each file can be transpiled without relying on other imports.
|
|
// This is redundant with the previous option, however it ensures that it's on even if someone disable `verbatimModuleSyntax`
|
|
"isolatedModules": true,
|
|
// Astro directly run TypeScript code, no transpilation needed.
|
|
"noEmit": true,
|
|
// Report an error when importing a file using a casing different from another import of the same file.
|
|
"forceConsistentCasingInFileNames": true,
|
|
// Properly support importing CJS modules in ESM
|
|
"esModuleInterop": true,
|
|
// Skip typechecking libraries and .d.ts files
|
|
"skipLibCheck": true,
|
|
// Allow JavaScript files to be imported
|
|
"allowJs": true
|
|
}
|
|
}
|