Skip to content

Commit c549e5f

Browse files
styles: use @antfu
1 parent d6ec966 commit c549e5f

24 files changed

+1616
-193
lines changed

.eslintignore

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

.eslintrc

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

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ jobs:
2424
- name: Install dependencies
2525
run: yarn --immutable
2626
- name: Run Eslint
27-
run: yarn run lint --fix=false
28-
- name: Run Prettier
29-
run: yarn run format --write=false --check
27+
run: yarn run lint
3028

3129
typecheck:
3230
name: Typecheck
@@ -67,4 +65,4 @@ jobs:
6765
- name: Install dependencies
6866
run: yarn --immutable
6967
- name: Building
70-
run: yarn run generate
68+
run: yarn run generate

.github/workflows/deploy-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- master
77

88
concurrency:
9-
group: "pages"
9+
group: pages
1010
cancel-in-progress: true
1111

1212
permissions:
@@ -48,4 +48,4 @@ jobs:
4848
needs: building
4949
steps:
5050
- name: Deploy artifact to GitHub Pages
51-
uses: actions/deploy-pages@v4
51+
uses: actions/deploy-pages@v4

.prettierignore

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

.prettierrc

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
**[horu.me](higherorderlogic.github.io)**
1+
**[horu.me](higherorderlogic.github.io)**

components/content/blogs-list.vue

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
<script lang="ts" setup>
2-
import type { IBlog } from "~/types";
2+
import type { IBlog } from '~/types'
33
44
const { data: blogs } = await useAsyncData(
5-
"blogs-list",
6-
async () => {
7-
return (await queryContent<IBlog>("/blog/").find()).sort(
8-
(a, b) => +new Date(b.date) - +new Date(a.date),
9-
);
10-
},
5+
'blogs-list',
6+
async () => (await queryContent<IBlog>('/blog/').find()).sort((a, b) => +new Date(b.date) - +new Date(a.date))
7+
,
118
{ default: () => [] },
12-
);
9+
)
1310
1411
function getYear(a: string) {
15-
const year = new Date(a).getFullYear();
16-
return Number.isNaN(year) ? 1990 : year;
12+
const year = new Date(a).getFullYear()
13+
return Number.isNaN(year) ? 1990 : year
1714
}
1815
</script>
1916

2017
<template>
2118
<prose-ul>
22-
<prose-p v-if="blogs === null || !blogs.length"
23-
>Nothing to find here.</prose-p
24-
>
19+
<prose-p v-if="blogs === null || !blogs.length">
20+
Nothing to find here.
21+
</prose-p>
2522
<template v-for="(blog, idx) in blogs" v-else :key="blog.path">
2623
<prose-h2
27-
v-if="idx === 0 || getYear(blog.date) != getYear(blogs[idx - 1].date)"
24+
v-if="idx === 0 || getYear(blog.date) !== getYear(blogs[idx - 1].date)"
2825
:id="getYear(blog.date).toString()"
29-
class="year-index">
26+
class="year-index"
27+
>
3028
{{ getYear(blog.date) }}
3129
</prose-h2>
32-
<prose-li class="blog-index"
33-
><prose-a :href="blog._path" class="blog-title">{{
34-
blog.title
35-
}}</prose-a>
30+
<prose-li class="blog-index">
31+
<prose-a :href="blog._path" class="blog-title">
32+
{{
33+
blog.title
34+
}}
35+
</prose-a>
3636
<div class="blog-data">
3737
{{ `${useFormattedDate(blog.date)} · ${blog.readTime}` }}
3838
</div>

components/content/profile.vue

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script lang="ts" setup>
2-
const { githubUsername } = useAppConfig();
2+
const { githubUsername } = useAppConfig()
33
4-
const githubProfileURL = `https://github.com/${githubUsername}`;
5-
const githubAvatarURL = `${githubProfileURL}.png`;
6-
const twitterProfileURL = `https://twitter.com/${githubUsername}`;
4+
const githubProfileURL = `https://github.com/${githubUsername}`
5+
const githubAvatarURL = `${githubProfileURL}.png`
6+
const twitterProfileURL = `https://twitter.com/${githubUsername}`
77
</script>
88

99
<template>
@@ -14,17 +14,19 @@ const twitterProfileURL = `https://twitter.com/${githubUsername}`;
1414
</nuxt-link>
1515
</div>
1616
<div class="content-container social-links-container">
17-
<prose-a :href="githubProfileURL" target="_blank" rel="noopener"
18-
>Github</prose-a
19-
>
20-
<prose-a :href="twitterProfileURL" target="_blank" rel="noopener"
21-
>Twitter</prose-a
22-
>
17+
<prose-a :href="githubProfileURL" target="_blank" rel="noopener">
18+
Github
19+
</prose-a>
20+
<prose-a :href="twitterProfileURL" target="_blank" rel="noopener">
21+
Twitter
22+
</prose-a>
2323
</div>
2424
<div class="content-container">
25-
<prose-p>{{
26-
`Hey, I'm ${githubUsername}. You can call me Horu!`
27-
}}</prose-p>
25+
<prose-p>
26+
{{
27+
`Hey, I'm ${githubUsername}. You can call me Horu!`
28+
}}
29+
</prose-p>
2830
</div>
2931
</div>
3032
</template>

components/document-driven-not-found.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<template>
2-
<prose-h1 id="404" class="not-found-header">404</prose-h1
3-
><prose-p class="not-found-msg">Uh oh, this page can't be found.</prose-p>
2+
<prose-h1 id="404" class="not-found-header">
3+
404
4+
</prose-h1><prose-p class="not-found-msg">
5+
Uh oh, this page can't be found.
6+
</prose-p>
47
</template>
58

69
<style>

0 commit comments

Comments
 (0)