From f3adf78b50bce33f803a0f4b4f41c6147cad6271 Mon Sep 17 00:00:00 2001 From: Jan K9f Date: Fri, 25 Apr 2025 08:28:06 +0200 Subject: [PATCH 1/2] chore(frontend): update project name and improve linting command --- frontend/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index dac95a0..9aa14d5 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,5 +1,5 @@ { - "name": "lf10-starter2024", + "name": "trustworthy-casino", "version": "0.0.0", "scripts": { "ng": "bunx @angular/cli", @@ -9,7 +9,7 @@ "test": "bunx @angular/cli test", "format": "prettier --write \"src/**/*.{ts,html,css,scss}\"", "format:check": "prettier --check \"src/**/*.{ts,html,css,scss}\"", - "lint": "bunx @angular/cli lint" + "lint": "bunx @angular/cli lint && bunx oxlint --deny-warnings" }, "private": true, "dependencies": { From 7b94fd56bc37e30ef8f4645332c125768aef8250 Mon Sep 17 00:00:00 2001 From: Jan K9f Date: Fri, 25 Apr 2025 09:14:04 +0200 Subject: [PATCH 2/2] feat(ci): add oxlint job to CI workflow - Introduced oxlint job to the CI workflow for enhanced linting checks. - Updated ci.yml to include a new job `oxlint` that runs on frontend changes. - Adjusted package.json scripts to separate oxlint from the general lint task. --- .gitea/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ frontend/package.json | 3 ++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 23f9fe5..97c5b31 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -103,6 +103,35 @@ jobs: cd frontend bun run lint + oxlint: + runs-on: ubuntu-latest + name: oxlint + needs: changed_files + if: ${{ needs.changed_files.outputs.frontend == 'true' || needs.changed_files.outputs.workflow == 'true' }} + container: + image: catthehacker/ubuntu:act-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + - name: Install bun + uses: oven-sh/setup-bun@v2 + - uses: actions/cache@v4 + working-directory: ./frontend + with: + path: | + frontend/node_modules/ + key: ${{ runner.os }}-bun- + restore-keys: | + ${{ runner.os }}-bun- + - name: Install dependencies + run: | + cd frontend + bun install + - name: Run oxlint + run: | + cd frontend + bun run oxlint + prettier: runs-on: ubuntu-latest name: prettier diff --git a/frontend/package.json b/frontend/package.json index 9aa14d5..e949360 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,7 +9,8 @@ "test": "bunx @angular/cli test", "format": "prettier --write \"src/**/*.{ts,html,css,scss}\"", "format:check": "prettier --check \"src/**/*.{ts,html,css,scss}\"", - "lint": "bunx @angular/cli lint && bunx oxlint --deny-warnings" + "lint": "bunx @angular/cli lint", + "oxlint": "bunx oxlint --deny-warnings" }, "private": true, "dependencies": {