tsconfig.json
File Inclusion
exclude
extends
files
include
references
typeAcquisition
Project Options
composite
.d.tsを自動生成する
importHelpers
next.jsで使っている
型検査のみをして、.jsは生成しない
これtrueにしてたら、targetとか、jsxとか指定するの無意味ってこと #?? .jsを出力するディレクトリを指定
未指定の場合は、元の.tsと同じ場所に生成する
outFile
plugins
removeComments
rootDir
tsBuildInfoFile
Module Resolution
allowSyntheticDefaultImports
allowUmdGlobalAccess
preserveSymlinks
rootDirs
Source Maps
inlineSourceMap
inlineSources
mapRoot
sourceRoot
Experimental
Command Line
preserveWatchOutput
pretty
Watch Options
fallbackPolling
watchDirectory
watchFile
Advanced
allowUnreachableCode
allowUnusedLabels
assumeChangesOnlyAffectDirectDependencies
charset
declarationDir
diagnostics
disableReferencedProjectLoad
disableSizeLimit
disableSolutionSearching
disableSourceOfProjectReferenceRedirect
emitBOM
emitDeclarationOnly
explainFiles
extendedDiagnostics
generateCpuProfile
型だけimportしてる時は、import type .. from ..を使うことを強制する
"error"を指定した時の話
jsxFactory
jsxFragmentFactory
jsxImportSource
keyofStringsOnly
listEmittedFiles
listFiles
maxNodeModuleJsDepth
newLine
noEmitHelpers
noEmitOnError
noErrorTruncation
noImplicitUseStrict
noLib
noResolve
noStrictGenericChecks
out
preserveConstEnums
reactNamespace
.jsonをimportできるようになる
.jsonのimport時に自動で型をつける
skipDefaultLibCheck
stripInternal
suppressExcessPropertyErrors
suppressImplicitAnyIndexErrors
traceResolution
useDefineForClassFields
exModuleInterop
ゆるゆるのtsconfig
参考