Skip to content

Commit be02d01

Browse files
committed
ci: use Biome instead of ESLint and Prettier
1 parent 13a7012 commit be02d01

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: CI
33
on: push
44

55
jobs:
6-
eslint:
7-
name: ESLint
6+
biome:
7+
name: Lint and Format
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v4
@@ -14,20 +14,7 @@ jobs:
1414
node-version-file: '.node-version'
1515
cache: 'pnpm'
1616
- run: pnpm install
17-
- run: pnpm lint:eslint
18-
19-
prettier:
20-
name: Prettier
21-
runs-on: ubuntu-latest
22-
steps:
23-
- uses: actions/checkout@v4
24-
- uses: pnpm/action-setup@v2
25-
- uses: actions/setup-node@v3
26-
with:
27-
node-version-file: '.node-version'
28-
cache: 'pnpm'
29-
- run: pnpm install
30-
- run: pnpm lint:prettier
17+
- run: pnpm lint:biome
3118

3219
tsc:
3320
name: Type Check

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"scripts": {
3030
"build": "tsup src/index.ts --format cjs,esm --dts",
3131
"generate:example-api": "openapi2aspida -i https://raw.githubusercontent.com/OAI/OpenAPI-Specification/3.1.0/examples/v3.0/petstore-expanded.yaml -o ./example/generated-api",
32-
"lint-and-format": "biome check .",
32+
"lint:biome": "biome check .",
33+
"lint:biome:ci": "biome ci .",
3334
"lint:tsc": "tsc --noEmit",
3435
"test": "vitest",
3536
"release": "pnpm build && changeset publish"

0 commit comments

Comments
 (0)