Answers
- We used the
--template typescriptoption on theÂcreate-react-app command to create a React app with a TypeScript project. - We could use the
no-consolerule to preventÂconsole.log statements being added to our code. - We can use the
"singleQuote": truesetting inÂ.prettierrc to use single quotes in our code. - The Eslint: Probe setting in Visual Studio Code tells the ESLint extension to check React and TypeScript code if it contains
typescriptandtypescriptreact. - Default Formatter must be set to esbenp.prettier-vscode and Format on Save must be ticked for Prettier to automatically format the code when it's saved.