최진우.
최진우 블로그
최진우.
전체 방문자
19,683
오늘
9
어제
5
  • Category
    • Log
      • essay
      • review
      • travel
      • english
    • Dev
      • javascript
      • react
      • go
      • css
      • linux
      • python
      • algorithm
      • git
      • cloud
      • develop
      • cinema4d
      • 3dsmax
      • tistory
    • Slack
    • Notion
    • VSCode

블로그 메뉴

  • About
  • Portfolio

인기 글

  • 스타트업 개발자 채용에 관한⋯
    2022.06.02
  • 대표의 역할 vs 개발자의 역할
    2022.06.02
  • 존 드라이든
    2022.05.30
  • 파이썬이 아닌 maxscript 소스
    2022.06.17
  • 유태경전
    2022.05.30

최근 댓글

  • 이후에 어떻게 되셨나요?
    ㅇㅇㅇㅇ

최근 글

  • language market fit 이란?
    2022.07.05
  • 복문이란 뭘까?
    2022.07.05
  • outline 은 border와 다르다
    2022.07.04
  • 잡지 메모
    2022.06.22
  • 깃허브 코파일럿 유료화됨
    2022.06.22
    깃허브 코파일럿 유료화됨
hELLO · Designed By pronist.
최진우.

최진우 블로그

CRA Typescript strict of eslint
Dev/react

CRA Typescript strict of eslint

2022. 5. 22. 16:24

d타입스크립트가 적용된 CRA 프로젝트에서 Eslint를 수정해보려합니다.

 

아래 명령어로 CRA Typescript 버전을 생성

npx create-react-app my-app --template=typescript

이렇게 간단한 컴포넌트

 

근데 저 빨강색 밑줄이 거슬린다. jsx에서는 잘만 썼는데..후..

저거는 tsconfig.json 에서 strict: true 로 설정되어있어서 그렇다. 저거 끄면 기존 처럼 쓸 수 있다. 

모든 eslint가 꺼지는 것은 아니다. 몇가지만 disabled 되는데 아래에 strict가 어떤것들을 설정하는지 자세히 알수 있다.

 

https://kovalevski.net/how-to-configure-tsconfigjson-typescript-strict-options/ 

 

How To Configure tsconfig.json: TypeScript Strict options

TypeScript is not just a superset of JavaScript with static types. It is also a quite configurable tool that can be used for different types of projects. One parameter or group of parameters that can be configured is strict. If you are not familiar with st

kovalevski.net

    'Dev/react' 카테고리의 다른 글
    • craco 사용하기
    • useLayoutEffect 사용
    • axios 사용해보기
    • [react] 이미지 흐릿하게 나오는 경우
    최진우.
    최진우.
    우당탕탕 최진우의 세상만사  😎
    댓글쓰기
    다음 글
    내가 재밌게 본 넷플릭스 다큐
    이전 글
    vscode 플러그인 추천
    • 이전
    • 1
    • ···
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • ···
    • 169
    • 다음