Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1016 Bytes

File metadata and controls

30 lines (19 loc) · 1016 Bytes

Create React App

This assumes you are using react-scripts v2.1 or higher!

Install TypeScript

Install TypeScript and configure it for use with Create React App by following their brief tutorial.

Feel free to commit just that part as a first step.

Install and use the Spotify TypeScript config

Next, install the Spotify TypeScript config as a dev dependency:

yarn add -D @spotify/tsconfig

Create React App will have already created a tsconfig.json for you. In this file, add an extends configuration:

{
  "extends": "@spotify/tsconfig",
  "include": ["src"]
}

Start your server up. At this point, Create React App will probably update your tsconfig.json with some defaults they recommend. At the time of writing, these don't conflict with anything the Spotify config attempts to cover, so let Create React App do it.

Go ahead and create another commit here once your server runs successfully.