2️tsconfig.json
tsconfig.json 파일
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}compilerOptions
target
lib
allowJs
skipLibCheck
strict
noEmit
esModuleInterop
module
moduleResolution
resolveJsonModule
isolatedModules
jsx
incremental
plugins
paths
알아두면 좋은 설정들
compilerOptions.allowSyntheticDefaultImports
compilerOptions.forceConsistentCasingInFileNames
compilerOptions.noFallthroughCasesInSwitch
include, exclude
참고 자료
Last updated