Skip to content

Commit

Permalink
ci: use Biome instead of ESLint and Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mashabow committed Sep 24, 2024
1 parent 13a7012 commit be02d01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: CI
on: push

jobs:
eslint:
name: ESLint
biome:
name: Lint and Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -14,20 +14,7 @@ jobs:
node-version-file: '.node-version'
cache: 'pnpm'
- run: pnpm install
- run: pnpm lint:eslint

prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: 'pnpm'
- run: pnpm install
- run: pnpm lint:prettier
- run: pnpm lint:biome

tsc:
name: Type Check
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts",
"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",
"lint-and-format": "biome check .",
"lint:biome": "biome check .",
"lint:biome:ci": "biome ci .",
"lint:tsc": "tsc --noEmit",
"test": "vitest",
"release": "pnpm build && changeset publish"
Expand Down

0 comments on commit be02d01

Please sign in to comment.