Chore/convert to typescript (#60)

* Convert to using TypeScript

Next.js v.9 allows converting an existing project to TS by simply renaming the files as TS files

* Fix type errors: Type 'string' is not assignable to type 'number'.

* Add mention about missing typings for javascript-time-ago

* Add GA_INITIALIZED to window

* Fix type error in feed transformers

* Model MembershipInfoForm state and props with TS

* Silence the typescript warning in MembershipInfoForm

* Add threshold to Fader props

* Fix Warning: Each child in a list should have a unique "key" prop.

Sponsors don't have ids – name is probably unique and can be used as a key

* Allow key as prop for SponsorLink

* Add type of the props for SponsorLink
This commit is contained in:
Olavi Haapala
2019-11-07 07:28:02 +02:00
committed by Riku Rouvila
parent bcc6619aee
commit f4474523ad
20 changed files with 125 additions and 26 deletions

View File

@@ -33,12 +33,15 @@
"twitter-text": "^3.0.0"
},
"devDependencies": {
"@types/node": "12.12.5",
"@types/react": "16.9.11",
"babel-eslint": "^10.0.3",
"eslint": "^6.6.0",
"eslint-config-prettier": "^6.5.0",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.16.0",
"prettier": "^1.18.2"
"prettier": "^1.18.2",
"typescript": "3.6.4"
},
"prettier": {
"trailingComma": "es5"