#Asking for file naming convention

5 messages · Page 1 of 1 (latest)

tawny vapor
#

Hi, I'm .NET developer that is switching to NestJS. I usually use PascalCase for my file name when developing in C#. But I see Nestjs tutorial is snakecase, some example repo use pascal case.
Is there any problem with case in the future? And which is the most porpular?

clever marsh
#

Personally I use hyphenated-feature.type.ts

There's no problem with whatever convention you choose, the CLI generator will have it's own opinion but you can create your own schematics or create files by hand or modify them later with no repercussions

tawny vapor
#

Thanks. I respect the idea of creator. So I decided to follow conventions of NestJS sample project as you.

tranquil gyro
sinful plaza
#

@tawny vapor do you mind me asking what made you switch from C# to Typescript?