typescript code review(2-page)
I am beginner to typescript. I decided to convert a js code to ts.I did it using "strict:true" but i dont feel like i have written any typesafe code but i dont get any error.Can anyone have the time to review my code here is my backend code https://github.com/HISHAN03/OnlineClipboard/tree/main/backend and this is my frontend https://github.com/HISHAN03/OnlineClipboard/tree/main/client
GitHub
OnlineClipboard/backend at main · HISHAN03/OnlineClipboard
Contribute to HISHAN03/OnlineClipboard development by creating an account on GitHub.
GitHub
OnlineClipboard/client at main · HISHAN03/OnlineClipboard
Contribute to HISHAN03/OnlineClipboard development by creating an account on GitHub.
Solution:Jump to solution
Also it would be good to use some linter like ESLint which has plugins for react/nextjs and typescript to ensure code quality
3 Replies
Please use a code formatter like Prettier (http://prettier.io), without a consistent formatting your code is hard to read.
Solution
Also it would be good to use some linter like ESLint which has plugins for react/nextjs and typescript to ensure code quality
Thank you for ur time 🙌🏻