hackforla / hackforla/CivicTechJobs

Audit Typescript config and fix typescript compiler errors

Open
#682 4 comments 0 reactions 1 assignee Claimed by @bzzz-coding View on GitHub
complexity: small feature: Quality Control javascript P3: Med PBV: dev role: frontend size: 2pt
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

![Image](https://github.com/user-attachments/assets/0a36f460-2981-4b9b-a7f0-4074e1bdc7d5)

### 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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.