CivicTechJobs icon indicating copy to clipboard operation
CivicTechJobs copied to clipboard

Audit Typescript config and fix typescript compiler errors

Open LoTerence opened this issue 7 months ago • 3 comments

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

Action Items

update tsconfig.json settings to ideal settings for our vite 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://www.typescriptlang.org/tsconfig/#isolatedModules

LoTerence avatar Apr 24 '25 08:04 LoTerence