Skip to content

Commit 5d481fb

Browse files
committed
fix formatting issues
1 parent 3ebf43f commit 5d481fb

File tree

5 files changed

+44
-28
lines changed

5 files changed

+44
-28
lines changed

astro.config.mts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import starlight from '@astrojs/starlight'
2-
import { defineConfig } from 'astro/config'
31
import react from '@astrojs/react'
2+
import starlight from '@astrojs/starlight'
43
import tailwindcss from '@tailwindcss/vite'
4+
import { defineConfig } from 'astro/config'
55

66
// https://astro.build/config
77
export default defineConfig({
@@ -20,9 +20,7 @@ export default defineConfig({
2020
starlight({
2121
// https://starlight.astro.build/reference/configuration
2222
title: 'Ada URL',
23-
social: [
24-
{ icon: 'github', label: 'GitHub', href: 'https://github.com/ada-url/ada' },
25-
],
23+
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/ada-url/ada' }],
2624
sidebar: [
2725
{
2826
label: 'Getting Started',
@@ -84,9 +82,7 @@ export default defineConfig({
8482
dark: './astro/assets/logo-dark.svg',
8583
replacesTitle: true,
8684
},
87-
customCss: [
88-
'./astro/custom.css',
89-
],
85+
customCss: ['./astro/custom.css'],
9086
editLink: {
9187
baseUrl: 'https://github.com/ada-url/website/edit/main',
9288
},

astro/components/playground/form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import WASM from '@/lib/wasm/wasm.js'
21
import { ChevronDown, Loader2 } from 'lucide-react'
32
import { useCallback, useEffect, useState } from 'react'
43
import { useForm } from 'react-hook-form'
4+
import WASM from '@/lib/wasm/wasm.js'
55
import ParsingResult, { type WASMResponse } from './result'
66
import styles from './styles/form.module.css'
77
import { useToast } from './ui/use-toast'
@@ -61,7 +61,7 @@ export default function PlaygroundForm() {
6161
<form onSubmit={handleSubmit(onSubmit)}>
6262
<label className={styles.Label}>
6363
<select className={styles.Select} {...register('version')}>
64-
{versions.map((value, index) => (
64+
{versions.map((value, _index) => (
6565
<option className={styles.Option} value={value} key={value}>
6666
{value}
6767
</option>

astro/components/playground/ui/toast.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>
5656
type ToastActionElement = React.ReactElement<typeof ToastAction>
5757

5858
export {
59-
type ToastProps,
59+
Toast,
60+
ToastAction,
6061
type ToastActionElement,
62+
ToastClose,
63+
ToastDescription,
64+
type ToastProps,
6165
ToastProvider,
62-
ToastViewport,
63-
Toast,
6466
ToastTitle,
65-
ToastDescription,
66-
ToastClose,
67-
ToastAction,
67+
ToastViewport,
6868
}

astro/components/playground/ui/use-toast.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,4 @@ function useToast() {
185185
}
186186
}
187187

188-
export { useToast, toast }
188+
export { toast, useToast }

biome.jsonc

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
{
22
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3-
"organizeImports": {
4-
"enabled": true
3+
"assist": {
4+
"enabled": true,
5+
"actions": {
6+
"source": {
7+
"organizeImports": "on"
8+
}
9+
}
510
},
611
"linter": {
712
"enabled": true,
@@ -31,15 +36,16 @@
3136
"lineWidth": 100
3237
},
3338
"files": {
34-
"ignore": [
35-
"node_modules",
36-
"public",
37-
".next",
38-
".contentlayer",
39-
"lib/wasm",
40-
".vercel",
41-
".astro",
42-
"dist"
39+
"includes": [
40+
"**",
41+
"!node_modules",
42+
"!public",
43+
"!.next",
44+
"!.contentlayer",
45+
"!lib/wasm",
46+
"!.vercel",
47+
"!.astro",
48+
"!dist"
4349
]
4450
},
4551
"javascript": {
@@ -51,6 +57,20 @@
5157
"semicolons": "asNeeded"
5258
}
5359
},
60+
"overrides": [
61+
{
62+
"includes": ["**/*.astro"],
63+
"linter": {
64+
"rules": {
65+
"correctness": {
66+
"noUnusedImports": "off",
67+
"noUnusedVariables": "off",
68+
"noUnusedFunctionParameters": "off"
69+
}
70+
}
71+
}
72+
}
73+
],
5474
"css": {
5575
"formatter": {
5676
"enabled": true

0 commit comments

Comments
 (0)