[FE 이재영 | 이현영] 서버 통신, VehicleSelectionPage 구현, ESlint 문제 해결 #10
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.
주요 작업
eslint
가 적용되지 않는 문제 해결"/"
진입 시 원하는 페이지로 리다이렉트0121.mov
학습 키워드
eslint
RSC
use
Suspense
react-router
고민과 해결과정
eslint
와prettier
를 같이 쓰는지에 대한 의문이 생겼습니다. 리서치를 진행해본 후의 결론은 다음과 같았습니다.eslint
는 코드가 잘못되었는가? 를 다루고,prettier
는 코드가 보기 좋게 정리되었는가? 를 다루도록 두 포맷터의 관심사를 분리하는 것이 목적이라는 결론이었습니다.eslint
가prettier
의 기능을 포함하고 있으므로,eslint
만을 사용함으로써 두 포맷터의 충돌로 발생할 수 있는 문제를 배제하기로 했습니다.eslint
가 저장될 때마다auto fix
되어야 하는데, 적용되지 않는 문제가 있었습니다..vscode/settings.json
에서 기본 에디터의 세팅들을 다 꺼서eslint
와 충돌되지 않도록 하여 해결했습니다.