tsconfig.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. "@/hooks/*": ["./hooks/*"],
  33. "@/lib/*": ["./lib/*"],
  34. "@/types/*": ["./types/*"],
  35. "editor": ["public/editor/editor.min.js"]
  36. },
  37. "sourceMap": true,
  38. "types": [],
  39. "typeRoots": ["./node_modules/@types", "./app/types"],
  40. },
  41. "include": [
  42. "next-env.d.ts",
  43. ".next/types/**/*.ts",
  44. "**/*.ts",
  45. "**/*.tsx",
  46. "types/*.d.ts",
  47. "types/**/*.d.ts",
  48. "lib/utils/server.js"
  49. ],
  50. "exclude": [
  51. "node_modules",
  52. "**/*.spec.ts"
  53. ]
  54. }