Typescript 3. 환경구성

하비·2024년 3월 18일
0

typescript

목록 보기
3/14

TS 환경설정

{
  "compilerOptions": {
    "baseUrl": ".",//base url 설정
    "noImplicitAny": true,//암묵적 any로 간주하는 모든 경우에 오류 발생
    "paths": {
      "@/*": [
        "src/*"//path 설정
      ]
    },// outDir: 폴더 이름, strict:true 엄격 모드 검사
    "target": "ESNext", //컴파일 될 JS의 버전을 명시
    "useDefineForClassFields": true,
    "lib": [
      "ESNext",
      "DOM",
      "DOM.Iterable"
    ],
    "module": "ESNext", // 컴파일 될 JS의 모듈 시스템을 선택
    "skipLibCheck": true,
    /* Bundler mode */
    "moduleResolution": "bundler", // 모듈 파일을 불러오거나 내보낼 때 타입을 선택할 수 있습니다.
    "allowImportingTsExtensions": true,
    "resolveJsonModule": true,
    "isolatedModules": true,
    "allowJs": true,
    "noEmit": true,
    "jsx": "react-jsx",
    /* Linting */
    "strict": true,
    "noUnusedLocals": false,
    "noUnusedParameters": false,
    "noFallthroughCasesInSwitch": true,
    "types": [
      "iamport-typings"
    ]
  },
  "include": [
    "src/**/*"
  ],
  "exclude": [
    "node_modules",
    "src/**/*.stories.tsx"
  ],
  "references": [
    {
      "path": "./tsconfig.node.json"
    }
  ]
}
profile
개발자를 꿈꾸는 하비입니다

0개의 댓글