20210220 4일차 개발 환경 세팅 완료

2021. 2. 20. 23:03·BootCamp_Codestates/Final Project

Node version: 12.19.0

 

  1. Set up React/Redux/Typescript

: https://www.youtube.com/watch?v=WpvIihorarA

2. Set up Prettier/Eslint

flamingotiger.github.io/javascript/eslint-setup/#2-2-eslint-config-airbnb-base-%EB%A1%9C-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0

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 생성 및 관계 형성.

 

추가적으로 참고

: velog.io/@cookncoding/ESLint-Prettier-Airbnb-Style-Guide%EB%A1%9C-%ED%94%84%EB%A1%9C%EC%A0%9D%ED%8A%B8-%EC%84%B8%ED%8C%85%ED%95%98%EA%B8%B0

'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
'BootCamp_Codestates/Final Project' 카테고리의 다른 글
  • 20210222 6일차 Component 개발
  • 20210221 5일차 Sign Page 개발 및 CSS 연습
  • 20210219 3일차 개발 환경세팅
  • 20210218 2일차
히어운트예츠트
히어운트예츠트
건축학 -> 경제학 -> 호주 워홀 -> 해외영업 -> 개발자 -> ?
  • 히어운트예츠트
    기술블로그
    히어운트예츠트
  • 전체
    오늘
    어제
    • All About Programming;)
      • Other than Tech
        • 잡생각
      • Computer Science
        • Terminology and Concepts
        • Network
        • Operating System
        • Database
        • Data Structure
        • Web Development
        • Interview Prep
      • Frontend
        • Javascript Essentials
        • Perfomance Optimization
        • JS Patterns
        • React
        • Next.js
        • Flutter
        • Testing
      • Backend
        • Node.js
      • DevOps
        • Docker & Kubernetes
      • Coding Test
        • LeetCode
        • Programmers
      • Tech Books & Lectures
        • Javascript_Modern JS Deep d..
        • Network_IT 엔지니어를 위한 네트워크 입문
      • Projects
        • PolyLingo_2025
        • Build Your Body_2024
        • JStargram_2021
        • Covid19 Tracker_2021
        • JPortfolio_2021
        • Nativ_2026
      • BootCamp_Codestates
        • TIL
        • TILookCloser
        • Pre Tech Blog
        • IM Tech Blog
        • Daily Issues and DeBugging
        • First Project
        • Final Project
        • Sprint Review
        • Good to Know
        • Socrative Review
        • HTML & CSS
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

    • 글쓰기
    • 관리
  • 공지사항

  • 인기 글

  • 태그

    이벤트
    딥다이브
    모던 자바스크립트 Deep Dive
    커리어
    개인의무한한능력이요구되는세상
    스코프
    How memory manage data
    Javascript Essentials
    Operating System
    Time complexity and Space complexity
    structure of os
    polylingo
    Binary Tree BFS
    indie hacker
    CPU scheduling algorithm
    js pattern
    leetcode
    자바스크립트 딥다이브
    mobile app
    TCP/IP
    Shared resources
    database
    Threads and Multithreading
    VoiceJournal
    자바스크립트
    DOM
    Data Structure
    testing
    Network
    프론트엔드 성능 최적화 가이드
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.5
히어운트예츠트
20210220 4일차 개발 환경 세팅 완료
상단으로

티스토리툴바