CivicTechJobs
CivicTechJobs copied to clipboard
Audit Typescript config and fix typescript compiler errors
Story
As developers, we should have reliable type checking, to ensure our frontend code is as clean and bug free as possible.
Overview
Right now if you run the typescript compiler, we get 63 errors.
Steps to reproduce:
cd frontendnpx tsc- it prints out a list of 63 errors. See screenshot below
Action Items
update tsconfig.json settings to ideal settings for our vite app
- [x]
targetshould be"esnext" - [x]
isolatedModulesshould betrue - [x]
jsxshould bereact-jsx - [x] research if there are any more requirements
- [ ] look into upgrading to ts5
Fix tsc errors
- [ ] fix all ts compiler errors
Resources/Instructions
Resources https://www.typescriptlang.org/tsconfig/#isolatedModules