Created
June 22, 2024 03:12
-
-
Save azu/8bbe610c941553897e26cf93dc0acd6e to your computer and use it in GitHub Desktop.
base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
// ベースのtsconfigは決められたカテゴリのみを設定する | |
// それ以外は、プロジェクトごとに設定する | |
// https://www.typescriptlang.org/tsconfig/#compilerOptions | |
"compilerOptions": { | |
// incrementalビルドは特別にデフォルトで有効にする | |
"incremental": true, | |
// # JavaScript Support | |
"allowJs": false, | |
// # Type Checking | |
"strict": true, | |
// strictestをベースにした設定 | |
// https://www.npmjs.com/package/@tsconfig/strictest | |
"allowUnusedLabels": false, | |
// エラーハンドリングで satisfy never するために意図的に使ってる | |
// "allowUnreachableCode": false, | |
// optionalとundefined値の区別 | |
"exactOptionalPropertyTypes": true, | |
"noFallthroughCasesInSwitch": true, | |
"noImplicitOverride": true, | |
"noImplicitReturns": true, | |
"noPropertyAccessFromIndexSignature": true, | |
"noUncheckedIndexedAccess": true, | |
"noUnusedLocals": true, | |
// import typeを使うようにする | |
"verbatimModuleSyntax": true, | |
// # Interop Constraints | |
"esModuleInterop": true, | |
"forceConsistentCasingInFileNames": true, | |
"isolatedModules": true, | |
// # Backwards Compatibility | |
// - [ ] なし | |
// # Completeness | |
"skipLibCheck": true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment