Skip to content

Commit 6f3a3ee

Browse files
committed
setup typos
1 parent 23e6be0 commit 6f3a3ee

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

.github/workflows/check.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,23 @@ jobs:
55
name: Check
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v3
8+
- uses: actions/checkout@v4
99
- uses: oven-sh/setup-bun@v2
1010
with:
1111
bun-version: "1.2.4"
1212
- run: bun install --frozen-lockfile
1313
- run: bun check
14+
typos:
15+
name: Check Typos
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: crate-ci/typos@v1
1420
build:
1521
name: Build
1622
runs-on: ubuntu-latest
1723
steps:
18-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
1925
- uses: oven-sh/setup-bun@v2
2026
with:
2127
bun-version: "1.2.4"

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["astro-build.astro-vscode"]
2+
"recommendations": ["astro-build.astro-vscode", "tekumara.typos-vscode"]
33
}

_typos.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[default.extend-words]
2+
progate = "progate"

shell.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ pkgs.mkShell {
55
pkgs.biome
66
pkgs.astro-language-server
77
pkgs.nodejs-slim # required by astro to find sharp
8+
pkgs.typos
9+
pkgs.typos-lsp
810
];
911
}

src/schema.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ export type Project = z.infer<ReturnType<typeof CreateProjectSchema>>;
88

99
export const CreateArticleSchema = ({ image }: { image: ImageFunction }) =>
1010
z.object({
11-
// excerpt: z.string().nullable(),
12-
// longExcerpt: z.string().nullable(),
1311
date: z
1412
.date()
1513
.transform((date) => new TZDate(date).withTimeZone("Asia/Tokyo")),

0 commit comments

Comments
 (0)