From 8b4377096c0b0e47fc2a2d0944c3d6038f4e37e8 Mon Sep 17 00:00:00 2001 From: risu729 <79110363+risu729@users.noreply.github.com> Date: Tue, 9 Jan 2024 13:48:08 +0900 Subject: [PATCH] chore: update biome config --- .github/workflows/biome.yml | 3 ++- biome.json | 6 ++++- package.json | 45 +++++++++++++++++++------------------ 3 files changed, 30 insertions(+), 24 deletions(-) diff --git a/.github/workflows/biome.yml b/.github/workflows/biome.yml index 74efabc..e34aa97 100644 --- a/.github/workflows/biome.yml +++ b/.github/workflows/biome.yml @@ -8,6 +8,7 @@ on: permissions: contents: read + pull-requests: write # for biome ci jobs: biome: @@ -22,4 +23,4 @@ jobs: version: latest - name: Run Biome - run: biome ci --error-on-warnings . + run: biome ci --changed --error-on-warnings . diff --git a/biome.json b/biome.json index 0288740..c227d99 100644 --- a/biome.json +++ b/biome.json @@ -3,7 +3,11 @@ "vcs": { "enabled": true, "clientKind": "git", - "useIgnoreFile": true + "useIgnoreFile": true, + "defaultBranch": "main" + }, + "files": { + "ignoreUnknown": true }, "formatter": { "formatWithErrors": true diff --git a/package.json b/package.json index e401ce0..b86c6d5 100644 --- a/package.json +++ b/package.json @@ -1,24 +1,25 @@ { - "$schema": "https://json.schemastore.org/package.json", - "name": "gdrive4d", - "private": true, - "scripts": { - "start": "bun src/main.ts", - "start:screen": "screen -DRS gdrive4d bun start", - "check": "biome check --apply-unsafe ." - }, - "dependencies": { - "@googleapis/drive": "8.5.0", - "consola": "3.2.3", - "discord.js": "14.14.1", - "normalize-url": "8.0.0" - }, - "devDependencies": { - "@biomejs/biome": "1.5.0", - "@tsconfig/bun": "1.0.1", - "@tsconfig/strictest": "2.0.2", - "bun-types": "1.0.21", - "ignore-sync": "7.0.1", - "typescript": "5.3.3" - } + "$schema": "https://json.schemastore.org/package.json", + "name": "gdrive4d", + "private": true, + "scripts": { + "start": "bun src/main.ts", + "start:screen": "screen -DRS gdrive4d bun start", + "check": "biome check --changed --apply-unsafe .", + "check-all": "biome check --apply-unsafe ." + }, + "dependencies": { + "@googleapis/drive": "8.5.0", + "consola": "3.2.3", + "discord.js": "14.14.1", + "normalize-url": "8.0.0" + }, + "devDependencies": { + "@biomejs/biome": "1.5.0", + "@tsconfig/bun": "1.0.1", + "@tsconfig/strictest": "2.0.2", + "bun-types": "1.0.21", + "ignore-sync": "7.0.1", + "typescript": "5.3.3" + } }