Skip to content

Commit 1d2f63c

Browse files
committed
migrate to biome
1 parent c61be67 commit 1d2f63c

24 files changed

+96
-76
lines changed

.eslintrc.js

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

biome.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"formatter": {
4+
"enabled": true,
5+
"indentStyle": "space",
6+
"indentWidth": 2,
7+
"lineWidth": 80
8+
},
9+
"linter": {
10+
"enabled": true,
11+
"rules": {
12+
"recommended": true
13+
}
14+
},
15+
"files": {
16+
"ignore": [
17+
"**/node_modules",
18+
"**/dist",
19+
"**/target",
20+
"**/build",
21+
".docusaurus",
22+
".astro",
23+
".next",
24+
".svelte-kit",
25+
".direnv"
26+
]
27+
},
28+
"vcs": {
29+
"enabled": true,
30+
"clientKind": "git",
31+
"useIgnoreFile": true
32+
}
33+
}

bun.lockb

-402 Bytes
Binary file not shown.

package.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44
"private": true,
55
"description": "website2",
66
"author": "chelproc",
7-
"keywords": [
8-
"gatsby"
9-
],
7+
"keywords": ["gatsby"],
108
"scripts": {
119
"develop": "gatsby develop",
1210
"start": "gatsby develop",
1311
"build": "gatsby build",
1412
"serve": "gatsby serve",
1513
"clean": "gatsby clean",
16-
"lint": "eslint .",
14+
"check": "biome check .",
1715
"type-check": "tsc --noEmit"
1816
},
1917
"dependencies": {
@@ -41,17 +39,17 @@
4139
"schema-dts": "^1.1.2"
4240
},
4341
"devDependencies": {
42+
"@biomejs/biome": "^1.9.4",
4443
"@types/color": "^3.0.6",
4544
"@types/node": "^20.11.16",
4645
"@types/react": "^18.2.52",
4746
"@types/react-dom": "^18.2.18",
4847
"autoprefixer": "^10.4.17",
49-
"eslint": "^8.56.0",
50-
"eslint-config-airbnb-typescript-prettier": "^5.0.0",
5148
"gatsby-plugin-postcss": "^6.13.1",
5249
"postcss": "^8.4.33",
5350
"prettier": "^3.3.3",
5451
"tailwindcss": "^3.4.1",
5552
"typescript": "5.1.6"
56-
}
53+
},
54+
"trustedDependencies": ["@biomejs/biome"]
5755
}

src/components/ActionButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import React, { ReactNode } from "react";
21
import clsx from "clsx";
32
import { Link } from "gatsby";
3+
import React, { type ReactNode } from "react";
44
import { FiArrowRight } from "react-icons/fi";
55

66
export default function ActionButton({

src/components/ActivityPageTemplate.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import clsx from "clsx";
2-
import React, { ReactNode } from "react";
3-
import { IconType } from "react-icons";
2+
import React, { type ReactNode } from "react";
3+
import type { IconType } from "react-icons";
44
import ActionButton from "./ActionButton";
55
import GlobalFooter from "./GlobalFooter";
66
import GlobalHeader from "./GlobalHeader";

src/components/ArticleList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import React from "react";
21
import clsx from "clsx";
2+
import { format } from "date-fns";
33
import { Link, graphql } from "gatsby";
44
import { GatsbyImage } from "gatsby-plugin-image";
5-
import { format } from "date-fns";
65
import nullthrows from "nullthrows";
6+
import React from "react";
77
import noImage from "../images/no-image.svg";
88

99
export default function ArticleList({

src/components/CommonHead.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
2-
import type { WithContext, Thing } from "schema-dts";
3-
import faviconImage from "../images/favicon.png";
2+
import type { Thing, WithContext } from "schema-dts";
43
import config from "../../gatsby-config";
4+
import faviconImage from "../images/favicon.png";
55

66
export default function CommonHead({
77
title,

src/components/GlobalFooter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import clsx from "clsx";
2-
import React from "react";
32
import { Link } from "gatsby";
3+
import React from "react";
44
import ActionButton from "./ActionButton";
55
import Logo from "./Logo";
66

src/components/GlobalHeader.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import React from "react";
21
import { Popover, Transition } from "@headlessui/react";
2+
import clsx from "clsx";
3+
import { Link } from "gatsby";
4+
import React from "react";
35
// import { FiArrowRight, FiMenu } from "react-icons/fi";
46
import { FiMenu } from "react-icons/fi";
5-
import { Link } from "gatsby";
6-
import clsx from "clsx";
77
import Logo from "./Logo";
88

99
const links = [

0 commit comments

Comments
 (0)