hackforla / hackforla/CivicTechJobs
Audit Typescript config and fix typescript compiler errors
- Dominant language
- TypeScript
- Stars
- 24
- Forks
- 27
- Avg merge
- 2m
- Merged PRs (30d)
- 1
Description
### 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:
1. `cd frontend`
2. `npx tsc`
3. it prints out a list of 63 errors. See screenshot below

### Action Items
update `tsconfig.json` settings to ideal settings for our [vite](https://vite.dev/guide/features.html#typescript) app
- [x] `target` should be `"esnext"`
- [x] `isolatedModules` should be `true`
- [x] `jsx` should be `react-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://hackforla.github.io/CivicTechJobs/resources/)
https://www.typescriptlang.org/tsconfig/#isolatedModules
Contributor guide
Assessment
This issue has not been assessed yet.