Skip to content

Commit 4f44e4d

Browse files
committed
Massive upgrade of deps
1 parent f6a59fc commit 4f44e4d

File tree

26 files changed

+1894
-2677
lines changed

26 files changed

+1894
-2677
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 59 deletions
This file was deleted.

bin/rss/RssFeedGenerator.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { join } from "node:path";
22

3+
import { describe, it, expect, assert } from "vitest";
4+
35
import { RssFeedGenerator } from "./RssFeedGenerator";
46

57
describe("RssFeedGenerator", () => {
@@ -67,7 +69,7 @@ describe("RssFeedGenerator", () => {
6769
const articles = feed.match(/<entry>.*?<\/entry>/gs);
6870

6971
if (articles === null) {
70-
fail("No articles found");
72+
assert.fail("No articles found");
7173
}
7274

7375
expect(articles[0]).toMatch(/<title type="html"><!\[CDATA\[Newest\]\]><\/title>/);

bin/rss/RssFeedGenerator.ts

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ export class RssFeedGenerator {
1111
const BASE_URL = "https://codecoolture.com";
1212

1313
const feed = new Feed({
14-
author: {
15-
name: "Sergio Álvarez",
16-
17-
link: "https://codecoolture.com/about",
18-
},
14+
author: { name: "Sergio Álvarez", email: "[email protected]", link: "https://codecoolture.com/about" },
1915
copyright: `All rights reserved. Sergio Álvarez. ${new Date().getFullYear()}`,
2016
description:
2117
"Articles and notes about software development. Written by Sergio Álvarez. Better code, one piece at a time.",
@@ -40,18 +36,12 @@ export class RssFeedGenerator {
4036

4137
for (const apiArticle of apiArticlesFromNewestToOldest) {
4238
feed.addItem({
43-
author: [
44-
{
45-
46-
link: "https://codecoolture.com/about",
47-
name: "Sergio Álvarez",
48-
},
49-
],
39+
author: [{ email: "[email protected]", link: "https://codecoolture.com/about", name: "Sergio Álvarez" }],
5040
title: apiArticle.title,
5141
id: `${BASE_URL}${apiArticle.url}`,
5242
link: `${BASE_URL}${apiArticle.url}`,
5343
description: apiArticle.spoiler ?? undefined,
54-
content: marked(apiArticle.content),
44+
content: await marked(apiArticle.content),
5545
date: new Date(apiArticle.date),
5646
image: apiArticle.cover ?? undefined,
5747
});

cms/lib/Markdown.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { join } from "node:path";
22

3+
import { beforeEach, describe, expect, it } from "vitest";
4+
35
import { Markdown } from "./Markdown";
46

57
describe("Markdown", () => {

cms/lib/MarkdownRepository.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { join } from "path";
22

3+
import { describe, it, expect } from "vitest";
4+
35
import { DirectoryNotFound, FileNotFound } from "./errors";
46
import { MarkdownRepository } from "./MarkdownRepository";
57

cms/models/Article.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { join } from "node:path";
22

3+
import { describe, it, expect } from "vitest";
4+
35
import { Markdown } from "@/cms/lib/Markdown";
46

57
import { Article } from "./Article";

components/Blockquote/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export function Blockquote({ children }: Pick<JSX.IntrinsicElements["blockquote"], "children">) {
1+
export function Blockquote({ children }: Pick<React.JSX.IntrinsicElements["blockquote"], "children">) {
22
return <blockquote className="Blockquote">{children}</blockquote>;
33
}

components/Code/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { classNames } from "@/lib/classNames";
22

3-
type CodeProps = Pick<JSX.IntrinsicElements["code"], "className" | "children"> & {
3+
type CodeProps = Pick<React.JSX.IntrinsicElements["code"], "className" | "children"> & {
44
"data-qa"?: string;
55
};
66

components/Codeblock/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useDarkMode } from "@/hooks";
22
import { classNames } from "@/lib/classNames";
33

4-
type CodeblockProps = Pick<JSX.IntrinsicElements["pre"], "children" | "className">;
4+
type CodeblockProps = Pick<React.JSX.IntrinsicElements["pre"], "children" | "className">;
55

66
export function Codeblock({ children }: CodeblockProps) {
77
const { isDarkModeEnabled } = useDarkMode();

0 commit comments

Comments
 (0)