I am using prettier to format my Typescript code on save. I would like to know if there is an option to replace var with let using prettier.
This is the code I use to format a hole project with
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
Prettier is a code formatter. It doesn't do things like that. See "What Prettier is not concerned about" in its docs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With