File Naming Conventions: A Guide for Every Project Type

5 min read

File naming conventions vary by project type, framework, and team preference. This guide covers the most common patterns.

By Project Type

ProjectConventionExamples
React/Next.js componentsPascalCaseUserProfile.tsx
Vue componentsPascalCaseUserProfile.vue
Angular componentskebab-caseuser-profile.component.ts
Python modulessnake_casedata_loader.py
CSS/SCSSkebab-casemain-layout.scss
Config fileskebab-caseeslint-config.js
Documentationkebab-case or UPPERCASEgetting-started.md, README.md

Universal Rules

  • No spaces in file names — ever
  • Lowercase is safer across OS (Linux is case-sensitive, macOS isn't)
  • Avoid special characters except hyphens and underscores
  • Be consistent within a project

Convert

kebab-case, PascalCase, snake_case. Hub.