-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
It looks like react world gone craze loves pascalCase.ts and CamelCase.ts naming for source files
personally, i don't like this but my engineering principles require unification with the community if this is an proven (de'facto standard) convention
👀 Discover popular repos:
- react: files -
camelCase,PascalCase, folders -dash-case - create-react-app: the same as react 😺
- ui-material: files -
camelCase,PascalCase, folders - corresponding to contentcamelCase,PascalCase
Starting points:
Match your component-related files with the component name
source https://levelup.gitconnected.com/2-simple-effective-react-file-naming-convention-tips-cce1022328a8
Since your component names are already adhering to the PascalCase naming convention (they are, aren’t they…?), let’s keep this going:
├── components
│ ├── SomeComponent
│ │ ├── SomeComponent.test.jsx
│ │ ├── SomeComponent.jsx
│ │ └── SomeComponent.styles.jsUse dot + suffix to explain tech context {camelCase,PascalCase}.some.{tsx,scss}
*.spec.ts, *.reducer.ts, *.slice.ts *.types.ts *.module.ts
Folder names for folder with code
PascalCasefor folder whitch contain component, specific class (even if in the folder also lives component related helpers in separate files)camelCasefor any other folders with code
Metadata
Metadata
Assignees
Labels
No labels