By React & TypeScript
Author : daeseopk
Published : 2024.03.18
Last Updated : 2025.09.03
π Naming Conventions
File Naming
- PascalCase β
tsx / React Component νμΌ & λλ ν 리
- camelCase β
ts / μ κ²½μ° μ μΈν λͺ¨λ νμΌ & λλ ν 리
TypeScript Naming
- PascalCase β Class, Interface, Type, Enum, Decorator, Type Parameters
- camelCase β Variable, Parameter, Function, Method, Property, Module Alias, Stack Constant Value
- CONSTANT_SNAKE_CASE β Global Constant Values (Enum κ° ν¬ν¨)
- Naming Rules
- ν λ¨μ΄λ‘ κ°κ²°νκ³ λͺ
νν μ΄λ¦ μ¬μ©
- λΆνμν μ€μλ§ μ§μ (
sum, avg, req, res λ± μμ£Ό μ°μ΄λ λ¨μ΄λ μμΈ)
- νμμ΄ μ΄ν΄νκΈ° μ΄λ €μ΄ μ€μλ§μ 곡μ ν μ¬μ©
Function Naming
- ν¨μλ λμμ λνλ΄λ λμ¬ ννλ‘ μμ
const nameGet = () => { ... } // β
const getName = () => { ... } // β
const calculateValue = () => { ... } // β
Boolean Naming
- μ§λ¬Έ ννλ‘ μμ± (
is, are, has, should, can λ± μ μ ν λμ¬ μ¬μ©)