1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-05-29 22:37:44 +02:00

chore: better Prettier config for easier reviews

This commit is contained in:
2023-10-23 23:11:59 +02:00
parent c7ad15a465
commit e566ef6c38
105 changed files with 2138 additions and 2080 deletions

View File

@ -1,8 +1,8 @@
---
title: '🧼 Clean Code'
title: "🧼 Clean Code"
description: 'What is "Clean Code", what are "Design Patterns", and why is it so important today? Tips and tricks to make your code more readable and maintainable in the long term.'
isPublished: true
publishedOn: '2022-02-23T08:00:18.758Z'
publishedOn: "2022-02-23T08:00:18.758Z"
---
Hello! 👋
@ -110,7 +110,7 @@ const transaction = charge(user, subscription)
```typescript
interface Car {
carModel: string
carColor: 'red' | 'blue' | 'yellow'
carColor: "red" | "blue" | "yellow"
}
const printCar = (car: Car): void => {
console.log(`${car.carModel} (${car.carColor})`)
@ -122,7 +122,7 @@ const printCar = (car: Car): void => {
```typescript
interface Car {
model: string
color: 'red' | 'blue' | 'yellow'
color: "red" | "blue" | "yellow"
}
const printCar = (car: Car): void => {
console.log(`${car.model} (${car.color})`)
@ -170,17 +170,17 @@ We have to keep it as simple as possible, not to implement features that are not
### Example (bad way)
```typescript
import fs from 'node:fs'
import path from 'node:path'
import fs from "node:fs"
import path from "node:path"
const createFile = async (
name: string,
isTemporary: boolean = false
isTemporary: boolean = false,
): Promise<void> => {
if (isTemporary) {
return await fs.promises.writeFile(path.join('temporary', name), '')
return await fs.promises.writeFile(path.join("temporary", name), "")
}
return await fs.promises.writeFile(name, '')
return await fs.promises.writeFile(name, "")
}
```
@ -189,15 +189,15 @@ const createFile = async (
### Example (good way)
```typescript
import fs from 'node:fs'
import path from 'node:path'
import fs from "node:fs"
import path from "node:path"
const createFile = async (name: string): Promise<void> => {
await fs.promises.writeFile(name, '')
await fs.promises.writeFile(name, "")
}
const createTemporaryFile = async (name: string): Promise<void> => {
await createFile(path.join('temporary', name))
await createFile(path.join("temporary", name))
}
```

View File

@ -1,8 +1,8 @@
---
title: '🗓️ Git version control: Ultimate Guide'
description: 'What is `git`, what are the most used commands, best practices, and tips and tricks. The Ultimate guide to master `git` in your daily workflow.'
title: "🗓️ Git version control: Ultimate Guide"
description: "What is `git`, what are the most used commands, best practices, and tips and tricks. The Ultimate guide to master `git` in your daily workflow."
isPublished: true
publishedOn: '2022-10-27T14:33:07.465Z'
publishedOn: "2022-10-27T14:33:07.465Z"
---
Hello! 👋

View File

@ -1,8 +1,8 @@
---
title: '👋 Hello, world!'
description: 'First post of the blog, introduction and explanation of how this blog is made.'
title: "👋 Hello, world!"
description: "First post of the blog, introduction and explanation of how this blog is made."
isPublished: true
publishedOn: '2022-02-20T08:00:18.758Z'
publishedOn: "2022-02-20T08:00:18.758Z"
---
Hello, world! 👋

View File

@ -1,8 +1,8 @@
---
title: '❌ Mistakes I made as a junior developer'
description: 'Here are mistakes I made when I started, to prevent you from making the same mistakes.'
title: "❌ Mistakes I made as a junior developer"
description: "Here are mistakes I made when I started, to prevent you from making the same mistakes."
isPublished: true
publishedOn: '2022-03-14T07:42:52.989Z'
publishedOn: "2022-03-14T07:42:52.989Z"
---
Hello! 👋

View File

@ -1,8 +1,8 @@
---
title: '🧠 Programming Challenges'
description: 'What are Programming Challenges and Competitive Programming and an introduction to Time/Space Complexity with Big O Notation.'
title: "🧠 Programming Challenges"
description: "What are Programming Challenges and Competitive Programming and an introduction to Time/Space Complexity with Big O Notation."
isPublished: true
publishedOn: '2023-05-21T10:20:18.837Z'
publishedOn: "2023-05-21T10:20:18.837Z"
---
Hello! 👋

View File

@ -1,8 +1,8 @@
---
title: '🟢 Thream v1.0.0'
description: 'Your open source platform to stay close with your friends and communities, talk, chat, collaborate, share and have fun.'
title: "🟢 Thream v1.0.0"
description: "Your open source platform to stay close with your friends and communities, talk, chat, collaborate, share and have fun."
isPublished: true
publishedOn: '2022-04-11T10:24:55.206Z'
publishedOn: "2022-04-11T10:24:55.206Z"
---
Hello! 👋