Skip to content

Commit 756ec17

Browse files
committed
config(biome): experimental html full support
Signed-off-by: Adam Setch <[email protected]>
1 parent bca77a9 commit 756ec17

17 files changed

+178
-183
lines changed

biome.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.3.1/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.2/schema.json",
33
"assist": {
44
"actions": {
55
"source": {
@@ -62,8 +62,7 @@
6262
},
6363
"html": {
6464
"formatter": {
65-
"enabled": true,
66-
"indentScriptAndStyle": true
65+
"enabled": true
6766
},
6867
"experimentalFullSupportEnabled": true
6968
},

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": "2.3.1",
67+
"@biomejs/biome": "2.3.2",
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.

src/components/DownloadButton.astro

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
import { Icon } from 'astro-icon/components';
2+
import { Icon } from 'astro-icon/components';
33
4-
export interface Props {
5-
item: {
6-
url: string;
7-
name: string;
8-
};
9-
}
4+
export interface Props {
5+
item: {
6+
url: string;
7+
name: string;
8+
};
9+
}
1010
11-
const { item } = Astro.props;
11+
const { item } = Astro.props;
1212
---
1313
<a
1414
href={item.url}

src/components/Footer.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
import { Icon } from 'astro-icon/components';
3-
import { siteMetadata, URLs } from '~/constants';
2+
import { Icon } from 'astro-icon/components';
3+
import { siteMetadata, URLs } from '~/constants';
44
5-
const { currentPathname } = Astro.props;
6-
const isHomepage = currentPathname === '/';
5+
const { currentPathname } = Astro.props;
6+
const isHomepage = currentPathname === '/';
77
---
88
<div
99
class:list={[

src/components/GitHubRepo.astro

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
---
2-
import { Icon } from 'astro-icon/components';
3-
import { Octokit } from 'octokit';
4-
import { siteMetadata, URLs } from '~/constants';
5-
import type { RepoStats } from '~/types';
2+
import { Icon } from 'astro-icon/components';
3+
import { Octokit } from 'octokit';
4+
import { siteMetadata, URLs } from '~/constants';
5+
import type { RepoStats } from '~/types';
66
7-
const octokit = new Octokit();
7+
const octokit = new Octokit();
88
9-
const formatCount = (count: number) => {
10-
return new Intl.NumberFormat('en', {
11-
notation: 'compact',
12-
maximumFractionDigits: 1,
13-
}).format(count);
14-
};
9+
const formatCount = (count: number) => {
10+
return new Intl.NumberFormat('en', {
11+
notation: 'compact',
12+
maximumFractionDigits: 1,
13+
}).format(count);
14+
};
1515
16-
const loadRepoStats = async (): Promise<RepoStats> => {
17-
try {
18-
const repository = await octokit.rest.repos.get({
19-
owner: siteMetadata.repo.owner,
20-
repo: siteMetadata.repo.name,
21-
});
16+
const loadRepoStats = async (): Promise<RepoStats> => {
17+
try {
18+
const repository = await octokit.rest.repos.get({
19+
owner: siteMetadata.repo.owner,
20+
repo: siteMetadata.repo.name,
21+
});
2222
23-
const latestRelease = await octokit.rest.repos.getLatestRelease({
24-
owner: siteMetadata.repo.owner,
25-
repo: siteMetadata.repo.name,
26-
});
23+
const latestRelease = await octokit.rest.repos.getLatestRelease({
24+
owner: siteMetadata.repo.owner,
25+
repo: siteMetadata.repo.name,
26+
});
2727
28-
return {
29-
forks: formatCount(repository.data.forks_count),
30-
stars: formatCount(repository.data.stargazers_count),
31-
latestReleaseName: latestRelease.data.name?.replace('v', '') ?? '',
32-
};
33-
} catch (error) {
34-
console.error('Failed to load repo stats', error);
35-
return {
36-
forks: '',
37-
stars: '',
38-
latestReleaseName: '',
39-
};
40-
}
41-
};
28+
return {
29+
forks: formatCount(repository.data.forks_count),
30+
stars: formatCount(repository.data.stargazers_count),
31+
latestReleaseName: latestRelease.data.name?.replace('v', '') ?? '',
32+
};
33+
} catch (error) {
34+
console.error('Failed to load repo stats', error);
35+
return {
36+
forks: '',
37+
stars: '',
38+
latestReleaseName: '',
39+
};
40+
}
41+
};
4242
43-
const { forks, stars, latestReleaseName } = await loadRepoStats();
43+
const { forks, stars, latestReleaseName } = await loadRepoStats();
4444
---
4545
<a
4646
href={URLs.GITHUB.REPO}

src/components/GoogleAnalytics.astro

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
src="https://www.googletagmanager.com/gtag/js?id=G-QXML81DEDV"
55
></script>
66
<script>
7-
window.dataLayer = window.dataLayer || [];
8-
function gtag() {
9-
dataLayer.push(arguments);
10-
}
11-
gtag('js', new Date());
7+
window.dataLayer = window.dataLayer || [];
8+
function gtag() {
9+
dataLayer.push(arguments);
10+
}
11+
gtag('js', new Date());
1212

13-
gtag('config', 'G-QXML81DEDV');
13+
gtag('config', 'G-QXML81DEDV');
1414
</script>

src/components/Hero.astro

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
import { Image } from 'astro:assets';
3-
import notifications from '~/assets/notifications.png';
4-
import LatestRelease from '~/components/LatestRelease.astro';
5-
import Logo from '~/components/Logo.astro';
6-
import { siteMetadata } from '~/constants';
2+
import { Image } from 'astro:assets';
3+
import notifications from '~/assets/notifications.png';
4+
import LatestRelease from '~/components/LatestRelease.astro';
5+
import Logo from '~/components/Logo.astro';
6+
import { siteMetadata } from '~/constants';
77
---
88
<div class="bg-gitify-hero">
99
<div

0 commit comments

Comments
 (0)