Questions
Have a go at answering the following questions to test what you have learned in this chapter:
- What option from the
create-react-appcommand did we use to create a React app with a TypeScript project? - What ESLint rule could we use to help prevent
console.logstatements being added to our code? - What setting in
.prettierrccould we set to use single quotes in our code? - What setting in Visual Studio Code tells the ESLint extension to check React and TypeScript code?
- What settings in Visual Studio tell it to use the Prettier extension to automatically format the code when it's saved?