npx create-react-app ./yarn create react-app ./
- srt/test 파일들 삭제
- app.css
- app.test.js
- reportWebVitals.js
- setupTest…
- index.css 파일 수정
* {
margin: 0;
padding: 0;
box-sizing: border-box;
outline-style: none;
}
ul,
li {
list-style: none;
}
a {
color: #000000;
text-decoration: none;
}
img {
vertical-align: middle;
border: 0;
}
html {
font-size: 16px;
}
body {
font-family: "Pretendard-Regular", sans-serif;
font-size: 1rem;
line-height: 1.25;
letter-spacing: -0.23px;
word-break: keep-all;
color: #000000;
}-
React 크롬 개발 도구 DevTools
-
VSCode React Plugin (ES7+ React/Redux/React-Native snippets ) 설치
-
yarn add normalize.css
-
src/index.js에서 상단에 import
yarn add sassyarn add @emotion/reactyarn add @emotion/styled
- .prettierrc.json
- .prettierrc.json 파일을 루트 폴더에 만들것.
{
"singleQuote": false,
"semi": true,
"useTabs": false,
// tab 시 2번 건너뛰기
"tabWidth": 2,
"trailingComma": "all",
"printWidth": 80,
"arrowParens": "avoid",
"endOfLine": "auto"
}-
ESLint 설정
yarn add eslint --dev
-
ESLint와 Prettier를 연결하여 ESLint 설정
yarn add eslint-config-prettier --save-dev
-
바벨에 의한 경고 제외
- 경고 해결은 아님.
-
npm install @babel/plugin-proposal-private-property-in-object --dev -
yarn add @babel/plugin-proposal-private-property-in-object --dev -
App.js부분 다 날릴것.