chore(biome): removed prettier, added biome (#407) · simstudioai/sim@8c268e2 · GitHub
Skip to content

Commit 8c268e2

Browse files
chore(biome): removed prettier, added biome (#407)
* chore: replace prettier with biome and add linting * chore: update devcontainer settings to use biome for linting and remove eslint, prettier * chore: update docker-compose to use Postgres 17-alpine and standardize quotes * chore: fixed more BUT disabled most rules due to limit * added additional rules, fixed linting & ts errors * added additional rules * rebased & linted * fixed oauth * updated biome & minor modifications --------- Co-authored-by: Aditya Tripathi <aditya@climactic.co>
1 parent 0c8a773 commit 8c268e2

717 files changed

Lines changed: 13321 additions & 11973 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.devcontainer/devcontainer.json‎

Lines changed: 5 additions & 13 deletions

‎.devcontainer/docker-compose.yml‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.8'
2-
31
services:
42
app:
53
build:
@@ -20,12 +18,12 @@ services:
2018
db:
2119
condition: service_healthy
2220
ports:
23-
- '3000:3000'
24-
- '3001:3001'
21+
- "3000:3000"
22+
- "3001:3001"
2523
working_dir: /workspace
2624

2725
db:
28-
image: postgres:16
26+
image: postgres:17-alpine
2927
restart: unless-stopped
3028
volumes:
3129
- postgres-data:/var/lib/postgresql/data
@@ -34,9 +32,9 @@ services:
3432
- POSTGRES_PASSWORD=postgres
3533
- POSTGRES_DB=simstudio
3634
ports:
37-
- '5432:5432'
35+
- "5432:5432"
3836
healthcheck:
39-
test: ['CMD-SHELL', 'pg_isready -U postgres']
37+
test: ["CMD-SHELL", "pg_isready -U postgres"]
4038
interval: 5s
4139
timeout: 5s
4240
retries: 5

‎.prettierrc‎

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

‎apps/docs/app/(docs)/[[...slug]]/page.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { notFound } from 'next/navigation'
21
import { DocsBody, DocsDescription, DocsPage, DocsTitle } from 'fumadocs-ui/page'
2+
import { notFound } from 'next/navigation'
33
import mdxComponents from '@/components/mdx-components'
44
import { source } from '@/lib/source'
55

@@ -19,7 +19,7 @@ export default async function Page(props: { params: Promise<{ slug?: string[] }>
1919
tableOfContent={{
2020
style: 'clerk',
2121
enabled: true,
22-
header: <div className="mb-2 text-sm font-medium">On this page</div>,
22+
header: <div className='mb-2 font-medium text-sm'>On this page</div>,
2323
single: false,
2424
}}
2525
article={{

‎apps/docs/app/(docs)/layout.tsx‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import type { ReactNode } from 'react'
2-
import Link from 'next/link'
32
import { DocsLayout } from 'fumadocs-ui/layouts/docs'
43
import { ExternalLink, GithubIcon } from 'lucide-react'
4+
import Link from 'next/link'
55
import { source } from '@/lib/source'
66

77
const GitHubLink = () => (
8-
<div className="fixed bottom-4 right-4 z-50">
8+
<div className='fixed right-4 bottom-4 z-50'>
99
<Link
10-
href="https://github.com/simstudioai/sim"
11-
target="_blank"
12-
rel="noopener noreferrer"
13-
className="flex items-center justify-center w-8 h-8 rounded-full bg-background border border-border hover:bg-muted transition-colors"
10+
href='https://github.com/simstudioai/sim'
11+
target='_blank'
12+
rel='noopener noreferrer'
13+
className='flex h-8 w-8 items-center justify-center rounded-full border border-border bg-background transition-colors hover:bg-muted'
1414
>
15-
<GithubIcon className="h-4 w-4" />
15+
<GithubIcon className='h-4 w-4' />
1616
</Link>
1717
</div>
1818
)
@@ -23,13 +23,13 @@ export default function Layout({ children }: { children: ReactNode }) {
2323
<DocsLayout
2424
tree={source.pageTree}
2525
nav={{
26-
title: <div className="flex items-center font-medium">Sim Studio</div>,
26+
title: <div className='flex items-center font-medium'>Sim Studio</div>,
2727
}}
2828
links={[
2929
{
3030
text: 'Visit Sim Studio',
3131
url: 'https://simstudio.ai',
32-
icon: <ExternalLink className="h-4 w-4" />,
32+
icon: <ExternalLink className='h-4 w-4' />,
3333
},
3434
]}
3535
sidebar={{
@@ -43,4 +43,4 @@ export default function Layout({ children }: { children: ReactNode }) {
4343
<GitHubLink />
4444
</>
4545
)
46-
}
46+
}

‎apps/docs/app/global.css‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@import 'tailwindcss';
2-
@import 'fumadocs-ui/css/neutral.css';
3-
@import 'fumadocs-ui/css/preset.css';
1+
@import "tailwindcss";
2+
@import "fumadocs-ui/css/neutral.css";
3+
@import "fumadocs-ui/css/preset.css";
44
:root {
55
--color-fd-primary: #802fff; /* Purple from control-bar component */
66
}

‎apps/docs/app/layout.config.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ export const baseOptions: BaseLayoutProps = {
1111
nav: {
1212
title: (
1313
<>
14-
<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-label="Logo">
15-
<circle cx={12} cy={12} r={12} fill="currentColor" />
14+
<svg width='24' height='24' xmlns='http://www.w3.org/2000/svg' aria-label='Logo'>
15+
<circle cx={12} cy={12} r={12} fill='currentColor' />
1616
</svg>
1717
My App
1818
</>

‎apps/docs/app/layout.tsx‎

Lines changed: 3 additions & 3 deletions

0 commit comments

Comments
 (0)