Skip to content

Commit

Permalink
add bun tsconfig base
Browse files Browse the repository at this point in the history
  • Loading branch information
gillesdemey committed Jul 28, 2023
1 parent 53d80ed commit 54a47a9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions bases/bun.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
// This is based on https://bun.sh/docs/runtime/typescript#recommended-compileroptions
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Bun",
"docs": "https://bun.sh/docs/runtime/typescript",
"compilerOptions": {
// add Bun type definitions
"types": [
"bun-types"
],
// enable latest features
"lib": [
"ESNext"
],
"module": "ESNext",
"target": "ESNext",
// if TS 5.x+
"moduleResolution": "bundler",
"noEmit": true,
"allowImportingTsExtensions": true,
"moduleDetection": "force",
// support JSX
"jsx": "react-jsx",
// best practices
"strict": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true
}
}

0 comments on commit 54a47a9

Please sign in to comment.