The rule of thumb is this: write it down in English then camelCase it.
FoodRepositoryMongoDb), so files are listed according to the name of the entity.
Uppercase. Others, like constants, environment variables, variables, methods, file and folder names etc. can all follow the general rule and be camelCased (simple rule, easy to follow and makes a pretty file list).
user), an entity or instance (
user), a service (
User), a response (
CoffeeMugis perfectly natural and readable while
ICoffeeMugis not. It will be evident from the usage that it is a type definition (you don't add
functionto the name either).
time), for example.
User.ts. File lists then become very easy to read and understand.
DatePicker.tsxis pretty good, for the same component
Date.tsxis not so much. Another example would be