I have installed prettier via
yarn add prettier
I would like prettier to only format typescript code. in other words, I would like prettier to check all files in my project that has extension *.ts and *.tsx and ignore the rest of the files cuz I have also .js files and I don't want that to be formatted.
I checked this How to configure prettier to check all files with a specific extension but it only checks .ts files I want to add .tsx files also.
also when I run yarn prettier --write .
it formats all types of files in the project I want it as I said only formats .ts and .tsx