Is there any way to create a prettier configuration file for different file types? For example, one for .html and one for .ts
Yes, Prettier supports that. Please read about glob-based configuration overrides here: https://prettier.io/docs/en/configuration.html#configuration-overrides