'Incorrect prettier file pattern

I'm using prettier to format an angular project but I'm having a little trouble figuring out the correct file pattern.

Using prettier --check src/**/* includes *.pdf files which causes errors. enter image description here

Using prettier --check src/**/*.ts ignores *.component.ts files.

I could use prettier --check src/**/*(.component.ts|.service.ts|...) an so on but this pattern would be gigantic. I also have to do this for .html en .scss



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source