arisslin / flattenthequeue

An app to see the degree of capacity utilisation at supermarkets
MIT License
3 stars 0 forks source link

QUESTION: TypeScript and CRA #34

Closed albert-schilling closed 4 years ago

albert-schilling commented 4 years ago

Questions and description

Is there anything we need to know or configure when using TypeScript with CRA?

Tasks

albert-schilling commented 4 years ago

I tried to switch our app to typescript. CRA is already prepared for this, so there is not much to configure. But it requires to install many packages including the required types (e.g. for React Router, Jest, etc.). Plus, ESLint can be used for Typescript with 2 additional plugins @typescript-eslint/parser and @typescript-eslint/eslint-plugin. After the required installations, the app and the tests run successfully. Thus, I am in favor for switching to TypeScript.

EDIT: checkout branch typescript.