Skip to content

Commit

Permalink
Merge pull request #252 from risu729/main
Browse files Browse the repository at this point in the history
Update @tsconfig/bun to reflect changes on bun docs
  • Loading branch information
orta authored Feb 20, 2024
2 parents bb30eb3 + a3cd6d2 commit 67f2ec1
Showing 1 changed file with 20 additions and 17 deletions.
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
}
}

0 comments on commit 67f2ec1

Please sign in to comment.