yearn / yearn-vaults-descriptions

Home Page:https://vaults.yearn.finance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FRP: Migrate to Typescript

Majorfi opened this issue Β· comments

commented

What is your proposal πŸš€

Move the repo to typescript, based on the web-template: https://github.com/yearn/web-template
Same eslint, tsconfig etc. should be used. Yearn Web Lib should be integrated with it, just like in the _app.tsx file in web-template repo.

What does this solve ? πŸ› 

Better consistency for Yearn Org

More πŸ”Ž

N/A

I haven't migrated a React repo to Typescript before but it should be straightforward. I currently have a local branch which I've setup to use Typescript (specifically tsconfig etc. from yearn/web-template). The plan is to make required config changes and update the site file by file converting js files to tsx. Will submit a draft pull request shortly.

@Majorfi I recently finished migrating the repo and welcome feedback on the pull request.