lint: move some more rules to oxlint/oxfmt and upgrade linter versions (#6398)

This commit is contained in:
Matiss Janis Aboltins
2025-12-13 22:41:21 +00:00
committed by GitHub
parent 7648446bbf
commit 094da46fb0
44 changed files with 338 additions and 331 deletions

View File

@@ -6,9 +6,9 @@ on:
branches:
- master
paths:
- "packages/docs/**"
- ".github/workflows/docs-spelling.yml"
- ".github/actions/docs-spelling/**"
- 'packages/docs/**'
- '.github/workflows/docs-spelling.yml'
- '.github/actions/docs-spelling/**'
workflow_dispatch:
jobs:

View File

@@ -3,15 +3,15 @@ name: E2E Tests
on:
pull_request:
paths:
- "packages/**"
- "package.json"
- "yarn.lock"
- ".github/workflows/e2e-test.yml"
- "!packages/sync-server/**" # Sync server changes don't affect E2E tests
- "!packages/api/**" # API changes don't affect E2E tests
- "!packages/ci-actions/**" # CI actions changes don't affect E2E tests
- "!packages/docs/**" # Docs changes don't affect E2E tests
- "!packages/eslint-plugin-actual/**" # Eslint plugin changes don't affect E2E tests
- 'packages/**'
- 'package.json'
- 'yarn.lock'
- '.github/workflows/e2e-test.yml'
- '!packages/sync-server/**' # Sync server changes don't affect E2E tests
- '!packages/api/**' # API changes don't affect E2E tests
- '!packages/ci-actions/**' # CI actions changes don't affect E2E tests
- '!packages/docs/**' # Docs changes don't affect E2E tests
- '!packages/eslint-plugin-actual/**' # Eslint plugin changes don't affect E2E tests
env:
GITHUB_PR_NUMBER: ${{github.event.pull_request.number}}

View File

@@ -194,11 +194,11 @@ jobs:
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.FLATHUB_GITHUB_TOKEN }}
commit-message: "Update Actual flatpak to version ${{ needs.build.outputs.version }}"
branch: "release/${{ needs.build.outputs.version }}"
title: "Update Actual flatpak to version ${{ needs.build.outputs.version }}"
commit-message: 'Update Actual flatpak to version ${{ needs.build.outputs.version }}'
branch: 'release/${{ needs.build.outputs.version }}'
title: 'Update Actual flatpak to version ${{ needs.build.outputs.version }}'
body: |
This PR updates the Actual desktop flatpak to version ${{ needs.build.outputs.version }}.
:link: [View release notes](https://actualbudget.org/blog/release-${{ needs.build.outputs.version }})
reviewers: "jfdoming,MatissJanis,youngcw" # The core team that have accepted the collaborator access to the Flathub repo
reviewers: 'jfdoming,MatissJanis,youngcw' # The core team that have accepted the collaborator access to the Flathub repo

View File

@@ -10,14 +10,14 @@ env:
on:
pull_request:
paths:
- "packages/**"
- "package.json"
- "yarn.lock"
- ".github/workflows/electron-pr.yml"
- "!packages/api/**" # API changes don't affect Electron
- "!packages/ci-actions/**" # CI actions changes don't affect Electron
- "!packages/docs/**" # Docs changes don't affect Electron
- "!packages/eslint-plugin-actual/**" # Eslint plugin changes don't affect Electron
- 'packages/**'
- 'package.json'
- 'yarn.lock'
- '.github/workflows/electron-pr.yml'
- '!packages/api/**' # API changes don't affect Electron
- '!packages/ci-actions/**' # CI actions changes don't affect Electron
- '!packages/docs/**' # Docs changes don't affect Electron
- '!packages/eslint-plugin-actual/**' # Eslint plugin changes don't affect Electron
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}

View File

@@ -3,7 +3,7 @@ name: Publish nightly desktop app
# Publish nightly version of desktop app - Runs every day at midnight
on:
schedule:
- cron: "0 0 * * *"
- cron: '0 0 * * *'
workflow_dispatch:
defaults:

View File

@@ -14,14 +14,14 @@ name: Compare Sizes
on:
pull_request_target:
paths:
- "packages/**"
- "package.json"
- "yarn.lock"
- ".github/workflows/size-compare.yml"
- "!packages/sync-server/**" # Sync server changes don't affect the size of the web/api
- "!packages/ci-actions/**" # CI actions changes don't affect the size of the web/api
- "!packages/docs/**" # Docs changes don't affect the size of the web/api
- "!packages/eslint-plugin-actual/**" # Eslint plugin changes don't affect the size of the web/api
- 'packages/**'
- 'package.json'
- 'yarn.lock'
- '.github/workflows/size-compare.yml'
- '!packages/sync-server/**' # Sync server changes don't affect the size of the web/api
- '!packages/ci-actions/**' # CI actions changes don't affect the size of the web/api
- '!packages/docs/**' # Docs changes don't affect the size of the web/api
- '!packages/eslint-plugin-actual/**' # Eslint plugin changes don't affect the size of the web/api
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -41,7 +41,7 @@ jobs:
- name: Set up environment
uses: ./.github/actions/setup
with:
download-translations: "false"
download-translations: 'false'
- name: Wait for ${{github.base_ref}} web build to succeed
uses: fountainhead/action-wait-for-check@5a908a24814494009c4bb27c242ea38c93c593be # v1.2.0
@@ -85,7 +85,7 @@ jobs:
with:
branch: ${{github.base_ref}}
workflow: build.yml
workflow_conclusion: "" # ignore the conclusion of the workflow, since we already checked it
workflow_conclusion: '' # ignore the conclusion of the workflow, since we already checked it
name: build-stats
path: base
- name: Download API build artifact from ${{github.base_ref}}
@@ -94,7 +94,7 @@ jobs:
with:
branch: ${{github.base_ref}}
workflow: build.yml
workflow_conclusion: "" # ignore the conclusion of the workflow, since we already checked it
workflow_conclusion: '' # ignore the conclusion of the workflow, since we already checked it
name: api-build-stats
path: base
- name: Download build stats from PR
@@ -102,7 +102,7 @@ jobs:
with:
pr: ${{github.event.pull_request.number}}
workflow: build.yml
workflow_conclusion: "" # ignore the conclusion of the workflow, since we already checked it
workflow_conclusion: '' # ignore the conclusion of the workflow, since we already checked it
name: build-stats
path: head
allow_forks: true
@@ -111,7 +111,7 @@ jobs:
with:
pr: ${{github.event.pull_request.number}}
workflow: build.yml
workflow_conclusion: "" # ignore the conclusion of the workflow, since we already checked it
workflow_conclusion: '' # ignore the conclusion of the workflow, since we already checked it
name: api-build-stats
path: head
allow_forks: true