Skip to content

Commit

Permalink
day 4 of 100 days of code
Browse files Browse the repository at this point in the history
  • Loading branch information
PauloHFS committed Aug 18, 2023
1 parent 2c31df6 commit e76b7df
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions blog/2023-08-17-day-4-100-days-of-code.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit e76b7df

Please sign in to comment.