Answers
- We used the
--template typescript
option on thecreate-react-app
command to create a React app with a TypeScript project. - We could use the
no-console
rule to preventconsole.log
statements being added to our code. - We can use the
"singleQuote": true
setting 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
typescript
andtypescriptreact
. - 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.