맥OS에서 NVM 사용하기
$ sudo curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
| { | |
| "compilerOptions": { | |
| /* Visit https://aka.ms/tsconfig.json to read more about this file */ | |
| /* Projects */ | |
| // "incremental": true, /* 이전 내용과 비교해서 수정된 내용만 컴파일 */ | |
| // "composite": true, /* 이전의 빌드된 정보를 기억하고 있어 더 빠르게 빌드 가능, incremental과 주로 함께 사용 */ | |
| // "tsBuildInfoFile": "./", /* Specify the folder for .tsbuildinfo incremental compilation files. */ | |
| // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects */ | |
| // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ |
| { | |
| "printWidth": 120, | |
| "tabWidth": 2, | |
| "singleQuote": true, | |
| "trailingComma": "all", | |
| "semi": true | |
| } |
| { | |
| "extends": ["plugin:prettier/recommended"] | |
| } |
| { | |
| "compilerOptions": { | |
| "esModuleInterop": true, // import * as React from 'react'; | |
| "sourceMap": true, // 디버깅 | |
| "lib": ["ES2020", "DOM"], // 최신 문법과 DOM | |
| "jsx": "react", // jsx 문법이 react에서 사용된다고 알려줌 | |
| "module": "esnext", // 최신 모듈 | |
| "moduleResolution": "Node", // 최신 모듈(import, export)를 노드가 해석할 수 있게 함 | |
| "target": "es5", // es5 문법으로 변환 | |
| "strict": true, |
| { // webpack이 webpack.config.ts를 인식 못해서 추가하는 파일 | |
| "compilerOptions": { | |
| "module": "commonjs", | |
| "moduleResolution": "Node", | |
| "target": "ES5", | |
| "esModuleInterop": true | |
| } | |
| } |