Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update @tsconfig/bun to reflect changes on bun docs #252

Merged
merged 1 commit into from
Feb 20, 2024
Merged
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
37 changes: 20 additions & 17 deletions bases/bun.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
{
// This is based on https://bun.sh/docs/runtime/typescript#recommended-compileroptions
// This is based on https://bun.sh/docs/typescript#suggested-compileroptions
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Bun",
"docs": "https://bun.sh/docs/runtime/typescript",
"docs": "https://bun.sh/docs/typescript",

"compilerOptions": {
// enable latest features
"lib": [
"ESNext"
],
"module": "esnext",
"target": "esnext",
// Enable latest features
"lib": ["ESNext"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,

// if TS 5.x+
// Bundler mode
"moduleResolution": "bundler",
"noEmit": true,
"allowImportingTsExtensions": true,
"moduleDetection": "force",

// support JSX
"jsx": "react-jsx",
"verbatimModuleSyntax": true,
"noEmit": true,

// best practices
// Best practices
"strict": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,

// Some stricter flags
"noUnusedLocals": true,
"noUnusedParameters": true,
"noPropertyAccessFromIndexSignature": true
}
}
Loading