hiyaryan / 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 distorted thinking and finding alternative modes of thought (i.e. reframing) while cognitive distortions are occurring. The CDJ does that work for you. -- The CDJ is in beta testing!!
https://thecdj.app
2 stars 0 forks source link

Migrate project from JavaScript to TypeScript. #139

Open hiyaryan opened 1 month ago

hiyaryan commented 1 month 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 1 month 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