From eaeb2d09eeef97a46ae9c85dd827d9cb6018901f Mon Sep 17 00:00:00 2001 From: mkelvers Date: Thu, 28 May 2026 11:25:36 +0200 Subject: [PATCH] ci: replace prettier and eslint with oxfmt and oxlint --- .forgejo/workflows/ci.yml | 14 +++++++------- README.md | 2 +- tsconfig.json | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 2e2c8c3..72adc6b 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -2,14 +2,14 @@ name: ci on: push: - branches: ['**'] + branches: ["**"] pull_request: schedule: - - cron: '0 2 * * *' + - cron: "0 2 * * *" workflow_dispatch: concurrency: - group: 'ci-${{ forgejo.ref }}' + group: "ci-${{ forgejo.ref }}" cancel-in-progress: true jobs: @@ -41,7 +41,7 @@ jobs: - name: Run go tests (race) env: - CGO_ENABLED: '1' + CGO_ENABLED: "1" run: go test -race ./... - name: Build server binary @@ -78,10 +78,10 @@ jobs: - name: Install dependencies run: bun install --frozen-lockfile - - name: Check prettier formatting - run: bunx prettier . --check + - name: Check formatting + run: bun run format:check - - name: Run eslint + - name: Run oxlint run: bun run lint:ts - name: Typecheck diff --git a/README.md b/README.md index 6cdc413..14b24d6 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ go build -o server ./cmd/server golangci-lint run ./... go mod tidy go test -race ./... -bunx prettier . --check +bunx oxfmt --check bun run lint:ts bun run typecheck bun run build:assets diff --git a/tsconfig.json b/tsconfig.json index afe4057..5d47a3c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,5 +12,5 @@ "removeComments": false, "skipLibCheck": true }, - "include": ["eslint.config.ts", "static/**/*.ts", "scripts/**/*.ts"] + "include": ["static/**/*.ts", "scripts/**/*.ts"] }