Prettier not working for Create React App with Typescript?

With a normal Create React App when I've added Prettier it's been easy to set up. Under Tools / File Watchers I add Pretter with the default settings. 

 

However when I start a Typescript project with Create React App with the following: 

yarn create react-app my-app --typescript 

 

Then I can't get Prettier to work. On the settings page I get an error saying "No files in scope". Im not sure if this is the cause of the issue?

 

2 comments

You have chosen Javascript as a file type for your watcher. But you don't have any .js files in your project, only .ts/.tsx - thus the warning

0

Doh! Yes that fixed it, thanks. 

1

Please sign in to leave a comment.