Skip to content

Commit ccbd03c

Browse files
committed
Update TypeScript settings
1 parent bbc657b commit ccbd03c

14 files changed

Lines changed: 41 additions & 53 deletions

File tree

src/components/about/hero.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
import Picture from "@components/picture.astro";
2+
import Picture from "@/components/picture.astro";
33
4-
import avatarPng from "@assets/avatar.png";
4+
import avatarPng from "@/assets/avatar.png";
55
---
66

77
<section>

src/components/created-updated-time.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import Time from "@components/time.astro";
2+
import Time from "@/components/time.astro";
33
44
type Props = { created: Date; updated: Date; class?: string };
55
const { created, updated, class: className } = Astro.props;

src/components/page/header.astro

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import "@styles/header.scss";
2+
import "@/styles/header.scss";
33
44
import {
55
headerId,
@@ -15,7 +15,7 @@ import {
1515
modeTitleId,
1616
navId,
1717
navListId,
18-
} from "@components/page/header.ids";
18+
} from "@/components/page/header.ids.ts";
1919
---
2020

2121
<header id={headerId} class="header no-decor">
@@ -107,10 +107,10 @@ import {
107107
modeTitleId,
108108
navId,
109109
navListId,
110-
} from "@components/page/header.ids";
111-
import FocusTrap from "@lib/focus-trap";
112-
import Store from "@lib/store.ts";
113-
import { colors } from "@styles/data/colors.json";
110+
} from "@/components/page/header.ids.ts";
111+
import FocusTrap from "@/lib/focus-trap.ts";
112+
import Store from "@/lib/store.ts";
113+
import { colors } from "@/styles/data/colors.json";
114114

115115
const header = document.getElementById(headerId) as HTMLElement;
116116

src/components/projects/item-card.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import type { ImageMetadata } from "astro";
33
4-
import Picture from "@components/picture.astro";
4+
import Picture from "@/components/picture.astro";
55
66
type Props = {
77
image: ImageMetadata & { alt: string };

src/content/writings/every-way-to-create-a-metronome-in-javascript.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ dateCreated: 2024-06-27
44
dateUpdated: 2024-06-27
55
---
66

7-
import Picture from "@components/picture.astro";
7+
import Picture from "@/components/picture.astro";
88

9-
import alrightAlrightAlrightGif from "@assets/alright-alright-alright.gif";
10-
import kidGivingThumbsUpGif from "@assets/kid-giving-thumbs-up.gif";
11-
import pepeSilvaJpg from "@assets/pepe-silva.jpg";
12-
import wompWompJpg from "@assets/womp-womp.jpg";
9+
import alrightAlrightAlrightGif from "@/assets/alright-alright-alright.gif";
10+
import kidGivingThumbsUpGif from "@/assets/kid-giving-thumbs-up.gif";
11+
import pepeSilvaJpg from "@/assets/pepe-silva.jpg";
12+
import wompWompJpg from "@/assets/womp-womp.jpg";
1313

1414
Okay, it's not _every way_. A more accurate title would be "every viable way I
1515
could find and think of to create metronomes in JavaScript using only browser

src/layout/article.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import "@styles/article.scss";
2+
import "@/styles/article.scss";
33
---
44

55
<article>

src/layout/page.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
import "@styles/page.scss";
2+
import "@/styles/page.scss";
33
4-
import Fonts from "@components/page/fonts.astro";
5-
import Footer from "@components/page/footer.astro";
6-
import Header from "@components/page/header.astro";
4+
import Fonts from "@/components/page/fonts.astro";
5+
import Footer from "@/components/page/footer.astro";
6+
import Header from "@/components/page/header.astro";
77
88
type Props = { title: string };
99
const { title } = Astro.props;

src/pages/index.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
import Hero from "@components/about/hero.astro";
3-
import Section from "@components/about/section.astro";
4-
import Page from "@layout/page.astro";
2+
import Hero from "@/components/about/hero.astro";
3+
import Section from "@/components/about/section.astro";
4+
import Page from "@/layout/page.astro";
55
---
66

77
<Page title="About">

src/pages/notes.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
import { getCollection } from "astro:content";
33
4-
import PostItem from "@components/post-item.astro";
5-
import Page from "@layout/page.astro";
4+
import PostItem from "@/components/post-item.astro";
5+
import Page from "@/layout/page.astro";
66
77
const notes = await getCollection("notes");
88
---

src/pages/notes/[id].astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import type { CollectionEntry } from "astro:content";
33
44
import { getCollection, render } from "astro:content";
55
6-
import CreatedUpdatedTime from "@components/created-updated-time.astro";
7-
import Article from "@layout/article.astro";
8-
import Page from "@layout/page.astro";
6+
import CreatedUpdatedTime from "@/components/created-updated-time.astro";
7+
import Article from "@/layout/article.astro";
8+
import Page from "@/layout/page.astro";
99
1010
export async function getStaticPaths() {
1111
return (await getCollection("notes")).map((note) => ({

0 commit comments

Comments
 (0)