Answers
- We used the
--template typescriptoption on thecreate-react-appcommand to create a React app with a TypeScript project. - We could use the
no-consolerule to preventconsole.logstatements being added to our code. - We can use the
"singleQuote": truesetting in.prettierrcto 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.