From e76b7df3bcca08210a0808c0f85a80ee9b130699 Mon Sep 17 00:00:00 2001 From: Paulo Hernane Date: Fri, 18 Aug 2023 09:54:11 -0300 Subject: [PATCH] day 4 of 100 days of code --- blog/2023-08-17-day-4-100-days-of-code.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 blog/2023-08-17-day-4-100-days-of-code.md diff --git a/blog/2023-08-17-day-4-100-days-of-code.md b/blog/2023-08-17-day-4-100-days-of-code.md new file mode 100644 index 00000000..ed521e1d --- /dev/null +++ b/blog/2023-08-17-day-4-100-days-of-code.md @@ -0,0 +1,15 @@ +--- +slug: day-4-100-days-of-code +title: Day 4 of 100 Days of Code +authors: paulohfs +tags: [100DaysOfCode, Typescript, NodeJS, ESLint, Prettier, zod, English] +--- + +Today I was very busy with work and college, but I managed to study, so I see this topics today: + +I do this in a old work project, I rework the configuration because was old and broken, so I can't share the code, but I will try to do a post about this topics soon. + +- [How to configure Typescript](https://www.digitalocean.com/community/tutorials/typescript-new-project) with [nodemon](https://blog.logrocket.com/configuring-nodemon-with-typescript/) and ts-node to run a NodeJS project on development mode. I hade some problems with the ESM, that make me see more about use `nodenext` in the tscompiler configuration. +- How to configure ESLint and Prettier to work with Typescript. +- How to configure the build in this configuration. aka `tsc --build` and `tsc --watch`. +- How to use zod to validate data in Typescript. I used this library to [parse the .env file](https://sergiodxa.com/articles/using-zod-to-safely-read-env-variables) and validate the environment variables.