Skip to content

Commit 58b6447

Browse files
authored
Merge branch 'main' into chore/refresh-lock
2 parents b4190be + 3ec3f94 commit 58b6447

File tree

13 files changed

+96
-60
lines changed

13 files changed

+96
-60
lines changed

astro.config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import tailwindcss from '@tailwindcss/vite';
2-
import icon from 'astro-icon';
3-
41
import { defineConfig } from 'astro/config';
2+
import icon from 'astro-icon';
3+
import tailwindcss from '@tailwindcss/vite';
54

65
// https://astro.build/config
76
export default defineConfig({

biome.json

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,41 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3-
"organizeImports": {
4-
"enabled": true
2+
"$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
3+
"assist": {
4+
"actions": {
5+
"source": {
6+
"organizeImports": {
7+
"level": "on",
8+
"options": {
9+
"groups": [
10+
["astro:*", "*astro-*", "astro*/*"],
11+
":PACKAGE:",
12+
":ALIAS:"
13+
]
14+
}
15+
}
16+
}
17+
}
518
},
619
"linter": {
720
"enabled": true,
821
"rules": {
922
"recommended": true,
1023
"correctness": {
1124
"useJsxKeyInIterable": "off",
12-
"noChildrenProp": "off"
25+
"noChildrenProp": "off",
26+
"noUnusedImports": "warn"
27+
},
28+
"style": {
29+
"noParameterAssign": "error",
30+
"useAsConstAssertion": "error",
31+
"useDefaultParameterLast": "error",
32+
"useEnumInitializers": "error",
33+
"useSelfClosingElements": "error",
34+
"useSingleVarDeclarator": "error",
35+
"noUnusedTemplateLiteral": "error",
36+
"useNumberNamespace": "error",
37+
"noInferrableTypes": "error",
38+
"noUselessElse": "error"
1339
}
1440
}
1541
},
@@ -30,11 +56,24 @@
3056
},
3157
"overrides": [
3258
{
33-
"include": ["*.astro"],
59+
"includes": ["**/*.astro"],
3460
"javascript": {
3561
"formatter": {
3662
"quoteStyle": "double"
3763
}
64+
},
65+
"linter": {
66+
"rules": {
67+
"style": {
68+
"useConst": "off",
69+
70+
"useImportType": "off"
71+
},
72+
"correctness": {
73+
"noUnusedVariables": "off",
74+
"noUnusedImports": "off"
75+
}
76+
}
3877
}
3978
}
4079
],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"tailwindcss-motion": "1.1.1"
6565
},
6666
"devDependencies": {
67-
"@biomejs/biome": "1.9.4",
67+
"@biomejs/biome": "2.0.0",
6868
"husky": "9.1.7"
6969
},
7070
"packageManager": "[email protected]",

pnpm-lock.yaml

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
onlyBuiltDependencies:
2+
- '@tailwindcss/oxide'
3+
- esbuild
4+
- sharp

src/components/Footer.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
import { Icon } from "astro-icon/components";
3-
4-
import { URLs, siteMetadata } from "~/constants";
3+
import { siteMetadata, URLs } from "~/constants";
54
65
const { currentPathname } = Astro.props;
76
const isHomepage = currentPathname === "/";

src/components/GitHubRepo.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
import { Icon } from "astro-icon/components";
33
import { Octokit } from "octokit";
4-
5-
import { URLs, siteMetadata } from "~/constants";
4+
import { siteMetadata, URLs } from "~/constants";
65
import type { RepoStats } from "~/types";
76
87
const octokit = new Octokit();

src/components/Hero.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
import { Image } from "astro:assets";
3-
43
import notifications from "~/assets/notifications.png";
54
import LatestRelease from "~/components/LatestRelease.astro";
65
import Logo from "~/components/Logo.astro";

src/components/LatestRelease.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
import { Icon } from "astro-icon/components";
33
import { format } from "date-fns";
44
import { Octokit } from "octokit";
5-
6-
import { URLs, siteMetadata } from "~/constants";
5+
import DownloadButton from "~/components/DownloadButton.astro";
6+
import { siteMetadata, URLs } from "~/constants";
77
import type {
88
DownloadLink,
99
DownloadLinks,
1010
HeroData,
1111
ReleaseAsset,
1212
} from "~/types";
13-
import DownloadButton from "./DownloadButton.astro";
1413
1514
const octokit = new Octokit();
1615

src/layouts/Layout.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2+
import "~/styles/app.css";
3+
24
import Footer from "~/components/Footer.astro";
35
import GoogleAnalytics from "~/components/GoogleAnalytics.astro";
46
import Navbar from "~/components/Navbar.astro";
5-
6-
import "~/styles/app.css";
77
import { siteMetadata } from "~/constants";
88
99
export interface Props {

0 commit comments

Comments
 (0)