내가 보려고 적는 초기 셋팅 방법
리액트와 타입스크립트를 기반으로 하는 셋팅방법이다
npx create-react-app "원하는 파일명" -—template typescript
yarn add typescript @types/node @types/react @types/react-dom @types/jest
{
"compilerOptions": {
"target": "es6",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"baseUrl": "./src",
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"include": [
"src"
],
"exclude": [
"node_modules"
],
}
yarn run eslint --init
yarn add @typescript-eslint/parser
yarn add --dev --exact prettier
echo {}> .prettierrc.json
yarn add eslint-config-prettier --dev
yarn add react-router-dom
yarn add react-hook-form
yarn add axios
yarn add recoil
yarn add @emotion/react
yarn add @emotion/styled
yarn add antd
yarn add react-bootstrap
yarn add @types/react-bootstrap
yarn add react-dropzone
yarn add react-i18next
yarn add @types/i18next
yarn add uuid
yarn add @types/uuid
yarn add dayjs