Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- js pattern
- 자바스크립트 패턴
- const
- 브라우저의 렌더링 과정
- 이미지 갤러리 최적화
- peerdependencies
- middleware pattern
- mixin pattern
- 제너레이터와 async/await
- 프로그래머스
- js pattern
- DOM
- 올림픽 통계 서비스 최적화
- version management
- 스코프
- 자바스크립트 딥다이브
- 블로그 서비스 최적화
- package management
- 학습내용정리
- 모던 자바스크립트 Deep Dive
- 프론트엔드 성능 최적화 가이드
- pr review
- 커리어
- unique identifiers
- 새 코드 받아오기
- 이벤트
- 진행기록
- Babel과 Webpack
- 딥다이브
- 자바스크립트
Archives
- Today
- Total
Dev Blog
20210220 4일차 개발 환경 세팅 완료 본문
Node version: 12.19.0
- Set up React/Redux/Typescript
: https://www.youtube.com/watch?v=WpvIihorarA
2. Set up Prettier/Eslint
npm i -D eslint eslint-config-airbnb eslint-config-prettier eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks @typescript-eslint/parser @typescript-eslint/eslint-plugin prettier
.eslintrc
{
"extends": [
"prettier",
"airbnb",
"airbnb/hooks",
"prettier/react",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"]
}
.prettierrc
{
"singleQuote": false,
"parser": "typescript",
"semi": true,
"useTabs": true,
"jsxSingleQuote":true,
"printWidth": 120
}
package.json
{
"name": "client-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"@reduxjs/toolkit": "^1.5.0",
"@testing-library/jest-dom": "^5.11.9",
"@testing-library/react": "^11.2.5",
"@testing-library/user-event": "^12.7.1",
"@types/jest": "^26.0.20",
"@types/node": "^12.20.4",
"@types/react": "^17.0.2",
"@types/react-dom": "^17.0.1",
"@types/react-redux": "^7.1.16",
"axios": "^0.21.1",
"query-string": "^6.14.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-redux": "^7.2.2",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.2",
"redux": "^4.0.5",
"redux-thunk": "^2.3.0",
"styled-components": "^5.2.1",
"typescript": "^4.1.5",
"web-vitals": "^1.1.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint './src/**/*.{ts,tsx,js,jsx}'",
"lint:fix": "eslint --fix './src/**/*.{ts,tsx,js,jsx}'",
"prettier": "prettier --write --config ./.prettierrc './src/**/*.{ts,tsx}'"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.15.1",
"@typescript-eslint/parser": "^4.15.1",
"eslint": "^7.20.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-react-hooks": "^4.2.0",
"prettier": "^2.2.1"
}
}
타입스크립트 적용한 리덕스의 actions, store, pages, components, reducers 생성 및 관계 형성.
추가적으로 참고
'BootCamp_Codestates > Final Project' 카테고리의 다른 글
20210222 6일차 Component 개발 (0) | 2021.02.23 |
---|---|
20210221 5일차 Sign Page 개발 및 CSS 연습 (0) | 2021.02.22 |
20210219 3일차 개발 환경세팅 (0) | 2021.02.20 |
20210218 2일차 (0) | 2021.02.19 |
20210217 TIL Final Project 1일 (0) | 2021.02.18 |
Comments