Skip to content

경로를 케밥 케이스 표기로 통일 #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2025
Merged

Conversation

yoouyeon
Copy link
Collaborator

@yoouyeon yoouyeon commented Apr 27, 2025

📝 관련 이슈

MOD-56

💻 작업 내용

케밥 케이스와 카멜 케이스 표기가 섞여 있던 경로들을 모두 케밥 케이스로 통일했습니다.

Google의 URL 구조 권장사항를 참고해서 케밥 케이스로 결정했어요.

하이픈을 사용하여 URL 내의 단어를 분리해 보세요. 사용자와 검색엔진이 URL의 개념을 더 쉽게 식별할 수 있습니다. URL에 밑줄(_) 대신 하이픈(-)을 사용하는 것이 좋습니다.

👻 참고(?)

원래 이 PR에 ROUTE 내부 프로퍼티 이름들을 대문자로 변경하려고 했었는데요 ㅎㅎ..
에어비앤비 스타일 가이드에 보니 프로퍼티 이름들까지 대문자로 변경하는 것은 불필요하다고 정리되어 있더라고요...!!
이미 알고 계셨을수도 있지만,,, 저는 처음 아는 사실이라 같이 링크해봅니다..ㅎㅎ

https://airbnb.io/javascript/#naming--uppercase

@yoouyeon yoouyeon added 🖥️ FE 프론트엔드 작업 🛠️ Refactor 기존 코드를 최적화하거나 구조를 개선하는 작업 labels Apr 27, 2025
@yoouyeon yoouyeon self-assigned this Apr 27, 2025
@github-actions github-actions bot requested a review from ongheong April 27, 2025 00:50
Copy link
Member

@ongheong ongheong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

URL에 저런 권장사항이 있었군요..! 앞으로 URL에는 케밥케이스를 쭉 적용해보겠습니다.
에어비앤비의 저런 규칙은 모르고 있었는데, 생각해보니 속성에 대문자를 쓰는 경우는 잘 못봤네요😅 많이 알아갑니다!

@yoouyeon yoouyeon merged commit c88450c into develop Apr 30, 2025
4 checks passed
@yoouyeon yoouyeon deleted the refactor/MOD-56 branch April 30, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖥️ FE 프론트엔드 작업 🛠️ Refactor 기존 코드를 최적화하거나 구조를 개선하는 작업
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants