tsconfig.json 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // tsconfig.json
  2. {
  3. "compilerOptions":
  4. {
  5. "target": "ES2017",
  6. "module": "ESNext",
  7. "moduleResolution": "bundler",
  8. "lib": ["DOM", "DOM.Iterable", "ESNext"],
  9. "allowJs": true, // JS 파일도 컴파일 가능
  10. "strict": true, // 모든 엄격한 타입 검사 옵션을 활성화
  11. "noEmit": true, // 컴파일 시 JS 파일을 생성하지 않음
  12. "skipLibCheck": true, // 라이브러리 파일의 타입 검사 건너뛰기
  13. "esModuleInterop": true, // CommonJS 모듈을 ES 모듈처럼 가져올 수 있도록 설정
  14. "resolveJsonModule": true, // JSON 파일을 모듈로 가져올 수 있도록 설정
  15. "isolatedModules": true, // 모든 파일을 개별 모듈로 처리
  16. "jsx": "preserve", // JSX를 JSX로 변환
  17. "incremental": true, // 증분 컴파일을 활성화
  18. "noUnusedParameters": true, // 안쓰는 함수 오류 표시
  19. "forceConsistentCasingInFileNames": true, // 대소문자 구분
  20. "plugins": [
  21. {
  22. "name": "next"
  23. }
  24. ],
  25. "baseUrl": "./",
  26. "paths": {
  27. "@/*": ["./*"],
  28. "@/component/*": ["./app/component/*"],
  29. "@/styles/*": ["./app/styles/*"],
  30. "@/contexts/*": ["./contexts/*"],
  31. "@/constants/*": ["./constants/*"],
  32. "@/dtos/*": ["./dtos/*"],
  33. "@/hooks/*": ["./hooks/*"],
  34. "@/lib/*": ["./lib/*"],
  35. "@/types/*": ["./types/*"],
  36. "editor": ["public/editor/editor.min.js"]
  37. },
  38. "sourceMap": true,
  39. "types": [],
  40. "typeRoots": ["./node_modules/@types", "./app/types"],
  41. },
  42. "include": [
  43. "next-env.d.ts",
  44. ".next/types/**/*.ts",
  45. "**/*.ts",
  46. "**/*.tsx",
  47. "types/*.d.ts",
  48. "types/**/*.d.ts",
  49. "lib/utils/server.js"
  50. ],
  51. "exclude": [
  52. "node_modules",
  53. "**/*.spec.ts"
  54. ]
  55. }