npm typescript으로 eslint를 설정하고 기본 환경을 구성한다.#23
Merged
4BFC merged 4 commits intonpm-react-ts-rfrom Nov 23, 2024
Merged
Conversation
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗REF
✍Task
CRA template typescript환경에서 eslint와 prettier를 작성하고 사용하는 방식이 잘 적용되는지 위한 저검 중 하나이다. 물론 이전에 프로젝트에서 설정을 했지만 eslint의 경고가 즉각적으로 동작하지 않았다. 물론 CRA의 독립성으로 인해서 발생된 문제로 추측되지만 이를 해결하기 위한 하나의 과정이다.📌Spec
📝새로 알게된 Front News
npm init @eslint~를 사용해라npm init @eslint~를 통해서 설치해야한다. CRA를 통해서 통합 설치를 할 경우 eslint가 기본적으로 설정 되어 있다.pnpm add ~를 사용하면 패키지를 설치할 뿐만 아니라 설치한 패키지를 package.json의 dependencies나 devDependencies에 자동으로 추가하게 된다.pnpm install ~은 패키지 추가를 위한 명령어가 아니며 package.json에 이미 정의된 의존성들을 설치하는 데 사용된다.