Skip to content

Commit 740acd7

Browse files
committed
style(biome): use check which combines lint and format
1 parent 89436cd commit 740acd7

File tree

14 files changed

+73
-64
lines changed

14 files changed

+73
-64
lines changed

biome.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.7.0/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"vcs": {
4+
"enabled": false,
5+
"clientKind": "git",
6+
"useIgnoreFile": false
7+
},
38
"files": {
4-
"ignore": [".next", "node_modules", "**/*.test.*"]
9+
"ignoreUnknown": false,
10+
"ignore": ["src/components/ui/*.tsx", "src/app/providers.tsx"]
511
},
612
"organizeImports": {
713
"enabled": true
@@ -26,14 +32,17 @@
2632
}
2733
}
2834
}
29-
},
30-
"include": ["./src/*"],
31-
"ignore": ["./src/components/ui/*", "src/app/providers.tsx"]
35+
}
3236
},
3337
"formatter": {
3438
"enabled": true,
3539
"indentStyle": "space",
3640
"indentWidth": 2,
3741
"lineWidth": 80
42+
},
43+
"javascript": {
44+
"formatter": {
45+
"quoteStyle": "double"
46+
}
3847
}
3948
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"build": "next build",
88
"start": "next start",
99
"prod": "next build && next start",
10-
"format": "biome format src --write",
11-
"lint": "biome lint src"
10+
"lint": "biome check src",
11+
"lint:fix": "biome check src --write"
1212
},
1313
"dependencies": {
1414
"@radix-ui/react-accordion": "^1.2.3",

src/app/(about)/overview/_components/organising-team.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
"use client";
2+
import { useOutsideClick } from "@/hooks/use-outside-click";
3+
import { AnimatePresence, motion } from "framer-motion";
4+
import { X } from "lucide-react";
25
import Image from "next/image";
36
import React, {
47
type RefObject,
@@ -7,9 +10,6 @@ import React, {
710
useRef,
811
useState,
912
} from "react";
10-
import { AnimatePresence, motion } from "framer-motion";
11-
import { useOutsideClick } from "@/hooks/use-outside-click";
12-
import { X } from "lucide-react";
1313

1414
const team = [
1515
{

src/app/(articles)/[slug]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { notFound } from "next/navigation";
21
import { CustomMdx } from "@/components/mdx";
3-
import { getArticles } from "@/lib/mdx";
42
import { TracingBeam } from "@/components/ui/tracing-beam";
3+
import { getArticles } from "@/lib/mdx";
4+
import { notFound } from "next/navigation";
55

66
export default async function Article(props: {
77
params: Promise<{ slug: string }>;

src/app/(articles)/_components/sponsors.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Image from "next/image";
21
import { sponsors } from "@/lib/constants";
2+
import Image from "next/image";
33

44
export default function Sponsors() {
55
const years = [...new Set(sponsors.flatMap((sponsor) => sponsor.year))]

src/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { Metadata } from "next";
22
import { Roboto_Mono } from "next/font/google";
33
import "./globals.css";
4-
import NavBar from "@/components/nav-bar";
5-
import Footer from "@/components/footer";
64
import { PostHogProvider } from "@/app/providers";
5+
import Footer from "@/components/footer";
6+
import NavBar from "@/components/nav-bar";
77

88
const robotoMono = Roboto_Mono({
99
weight: "400",

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import AboutSection from "@/components/about-section";
2+
import Gallery from "@/components/gallery";
23
import HeroSection from "@/components/hero-section";
34
import Sponsors from "@/components/sponsors";
4-
import Gallery from "@/components/gallery";
55

66
const images = [
77
"/gallery/DSC_0004-4.jpg",

src/app/posthog-page-view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use client";
22

33
import { usePathname, useSearchParams } from "next/navigation";
4-
import { useEffect, Suspense } from "react";
54
import { usePostHog } from "posthog-js/react";
5+
import { Suspense, useEffect } from "react";
66

77
function PostHogPageView(): null {
88
const pathname = usePathname();

src/components/about-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Building2Icon, ThumbsUpIcon, Speech, Code2Icon } from "lucide-react";
1+
import { Building2Icon, Code2Icon, Speech, ThumbsUpIcon } from "lucide-react";
22

33
export default function AboutSection() {
44
return (

src/components/mdx.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import Image, { type ImageProps } from "next/image";
1+
import Sponsors from "@/app/(articles)/_components/sponsors";
2+
import { cn } from "@/lib/utils";
23
import { MDXRemote, type MDXRemoteProps } from "next-mdx-remote/rsc";
4+
import Image, { type ImageProps } from "next/image";
35
import type React from "react";
46
import type { JSX } from "react";
5-
import { cn } from "@/lib/utils";
6-
import Sponsors from "@/app/(articles)/_components/sponsors";
77

88
function slugify(str: string) {
99
return str

0 commit comments

Comments
 (0)