From 98fae3289af827a616a340beafd441864a6dcbfe Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Fri, 12 Jul 2024 02:08:07 +0800 Subject: [PATCH] style: check all files --- .github/workflows/Release-Linux.yaml | 16 ++++++++-------- .github/workflows/Release-Macos.yaml | 6 +++--- .github/workflows/Release-Windows.yaml | 9 ++++----- forge.config.js | 2 +- package.json | 4 ++-- 5 files changed, 18 insertions(+), 19 deletions(-) diff --git a/.github/workflows/Release-Linux.yaml b/.github/workflows/Release-Linux.yaml index a40fae5..119115b 100644 --- a/.github/workflows/Release-Linux.yaml +++ b/.github/workflows/Release-Linux.yaml @@ -4,16 +4,16 @@ on: workflow_dispatch: inputs: tag_name: - description: 'Tag to release' + description: "Tag to release" required: true - + jobs: release: runs-on: ubuntu-latest strategy: matrix: - architecture: [x64, arm64] # 添加架构 - + architecture: [x64, arm64] # 添加架构 + steps: - name: Checkout code uses: actions/checkout@v4 @@ -21,12 +21,12 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20' - + node-version: "20" + - name: Setup Python 3.10 uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: "3.10" - name: Verify Python Version run: python --version @@ -102,4 +102,4 @@ jobs: tag_name: ${{ github.event.inputs.tag_name }} name: ${{ env.ASSET_DEB_BASENAME }} files: ${{ env.ASSET_DEB_PATH }} - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/Release-Macos.yaml b/.github/workflows/Release-Macos.yaml index 48251e5..de7eb2a 100644 --- a/.github/workflows/Release-Macos.yaml +++ b/.github/workflows/Release-Macos.yaml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: tag_name: - description: 'Tag to release' + description: "Tag to release" required: true jobs: @@ -21,12 +21,12 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20' + node-version: "20" - name: Setup Python 3.10 uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: "3.10" - name: Verify Python Version run: python --version diff --git a/.github/workflows/Release-Windows.yaml b/.github/workflows/Release-Windows.yaml index ed7f5b6..0cc004a 100644 --- a/.github/workflows/Release-Windows.yaml +++ b/.github/workflows/Release-Windows.yaml @@ -4,16 +4,15 @@ on: workflow_dispatch: inputs: tag_name: - description: 'Tag to release' + description: "Tag to release" required: true - jobs: release: runs-on: windows-latest strategy: matrix: - architecture: [x64, arm64, i386] # Add architecture + architecture: [x64, arm64, i386] # Add architecture steps: - name: Checkout code @@ -22,12 +21,12 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20' + node-version: "20" - name: Setup Python 3.10 uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: "3.10" - name: Verify Python Version run: python --version diff --git a/forge.config.js b/forge.config.js index 08b1d34..685768e 100644 --- a/forge.config.js +++ b/forge.config.js @@ -3,7 +3,7 @@ module.exports = { asar: true, appBundleId: "io.github.pd4d10.debugtron", icon: "assets/icon", - executableName: "debugtron" + executableName: "debugtron", }, makers: [ { name: "@electron-forge/maker-squirrel", config: {} }, diff --git a/package.json b/package.json index 4f8397c..e6f3771 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "author": "Rongjian Zhang ", "main": ".vite/build/main.js", "scripts": { - "lint": "prettier --check 'src/**/*.{ts,tsx}'", - "lint-fix": "prettier --write 'src/**/*.{ts,tsx}'", + "lint": "prettier --ignore-unknown --check '**/*'", + "lint-fix": "prettier --ignore-unknown --write '**/*'", "make": "electron-forge make", "package": "electron-forge package", "publish": "electron-forge publish",