cognovi-ai / the-cdj

The Cognitive Distortion Journal (CDJ) is a smart journaling tool that helps remedy distorted thinking. It can feel impossible to follow the CBT technique of labeling and reframing distorted thinking when you've been thinking this way your whole life. The CDJ can help with that 🧠✨ -- v2 is in development!
https://thecdj.app
4 stars 0 forks source link

Migrate project from JavaScript to TypeScript. #139

Open hiyaryan opened 6 months ago

hiyaryan commented 6 months ago

To improve the development experience of The CDJ, the project should be converted to TypeScript. Please refer to the link below for instructions.

Migrating from JavaScript

In the section from the link above Moving to TypeScript Files, it discusses how to tighten up the behavior of the TypeScript compiler with noEmitOnError and noImplicitAny. We want to include these stricter options in our tsconfig. These can help us find bugs and improve the code overall from the beginning.

hiyaryan commented 5 months ago

~~This would also be a good opportunity to convert the project to Next.ts using The app Router.

This will also significantly improve developer experience by simplifying and standardizing routing. These improvements are noticeable in the restructuring of the application using the app Router.

The app Router is just one of many Next.ts utilities that improve React development. Feel free to explore!~~

Edit: Moved to a new issue #147