Rather than running prettier on specific file extensions, in my experience/opinion it's better to have an appropriate ignore file and run prettier on all files.
Also, it's best if the command for running prettier is called format or something else instead of prettier, so that it's also possible to run the prettier binary directly (via yarn prettier) if desired.
I also updated Prettier to the latest version and formatted all files.
Rather than running prettier on specific file extensions, in my experience/opinion it's better to have an appropriate ignore file and run prettier on all files.
Also, it's best if the command for running prettier is called
format
or something else instead ofprettier
, so that it's also possible to run the prettier binary directly (viayarn prettier
) if desired.I also updated Prettier to the latest version and formatted all files.