chore: migrate to vite-plus unified toolchain (#2869) · gitify-app/gitify@9f08f0f · GitHub
Skip to content

Commit 9f08f0f

Browse files
authored
chore: migrate to vite-plus unified toolchain (#2869)
* chore: replace biome with oxlint and oxfmt dependencies * chore: add oxlint configuration mirroring biome rules * chore: add oxfmt configuration mirroring biome formatter * chore: remove biome configuration * chore(vscode): switch recommended extension and formatter to oxc * ci(lint): run oxlint and oxfmt instead of biome * docs: replace biome references with oxlint and oxfmt * chore(vite): use oxlint instead of biome in vite-plugin-checker * refactor: convert biome-ignore directives to oxlint-disable * refactor: address lint findings surfaced by oxlint * test: update snapshot affected by oxfmt jsx whitespace * style: apply oxfmt formatting across codebase * ci(renovate): include .github in sparse checkout for setup-node action * chore: replace oxlint and oxfmt with vite-plus * refactor(vite): consolidate lint, fmt, and staged config into vite.config.ts * chore(husky): run vp staged in pre-commit hook * chore(vscode): point oxc extension at vite.config.ts * ci(lint): run pnpm check via vite-plus * docs: describe vite-plus toolchain * chore(gitignore): ignore vite-plugin-electron index.html stub at root * refactor: drop redundant type assertions flagged by sonarcloud * feat(fmt): port biome import sort rules to oxfmt sortImports * style: re-sort imports per new oxfmt groups * refactor(types): inline primer-private VariantType and ColorModeWithAuto * Revert "refactor(types): inline primer-private VariantType and ColorModeWithAuto" This reverts commit cfcfa5a.
1 parent d401cfb commit 9f08f0f

249 files changed

Lines changed: 2695 additions & 4597 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/copilot-instructions.md‎

Lines changed: 33 additions & 10 deletions

‎.github/labeler.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ labels:
99
- label: 'build'
1010
sync: true
1111
matcher:
12-
title: '^(ci|build)(\((?!release)\w+\))?: (?!.*\brelease\b).*'
12+
title: '^(ci|build)(\((?!release)\w+\))?: (?!.*\brelease\b).*'
1313

1414
- label: 'chore'
1515
sync: true
@@ -46,7 +46,7 @@ labels:
4646
sync: true
4747
matcher:
4848
title: '^test(\(\w+\))?: .*'
49-
49+
5050
checks:
5151
- context: 'Semantic Pull Request'
5252
description:
@@ -62,4 +62,4 @@ checks:
6262
- build
6363
- release
6464
- chore
65-
- dependency
65+
- dependency

‎.github/release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ changelog:
2929
- chore
3030
- title: Other Changes
3131
labels:
32-
- "*"
32+
- '*'

‎.github/workflows/lint.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ permissions: {}
77

88
jobs:
99
lint-code:
10-
name: Lint Code [biomejs]
10+
name: Lint Code [vite-plus]
1111
runs-on: ubuntu-latest
1212
permissions:
1313
contents: read
@@ -21,8 +21,8 @@ jobs:
2121
- name: Setup Node.js
2222
uses: ./.github/actions/setup-node
2323

24-
- name: Run linter
25-
run: pnpm lint:check
24+
- name: Run lint and format checks
25+
run: pnpm check
2626

2727
lint-actions:
2828
name: Lint GitHub Actions [actionlint]

‎.github/workflows/renovate.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ jobs:
2121
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222
with:
2323
persist-credentials: false
24-
sparse-checkout: renovate.json
24+
sparse-checkout: |
25+
renovate.json
26+
.github
2527
2628
- uses: ./.github/actions/setup-node
2729
with:
28-
run-install: "false"
30+
run-install: 'false'
2931

3032
- name: Install Renovate
3133
run: pnpm install --global renovate

‎.github/workflows/zizmor.yml‎

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
name: GitHub Actions Security Analysis
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- "**"
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- '**'
1010

1111
permissions: {}
1212

1313
jobs:
14-
zizmor:
15-
name: Run zizmor 🌈
16-
runs-on: ubuntu-latest
17-
permissions:
18-
security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files.
19-
contents: read # Only needed for private repos. Needed to clone the repo.
20-
actions: read # Only needed for private repos. Needed for upload-sarif to read workflow run info.
21-
steps:
22-
- name: Checkout repository
23-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24-
with:
25-
persist-credentials: false
14+
zizmor:
15+
name: Run zizmor 🌈
16+
runs-on: ubuntu-latest
17+
permissions:
18+
security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files.
19+
contents: read # Only needed for private repos. Needed to clone the repo.
20+
actions: read # Only needed for private repos. Needed for upload-sarif to read workflow run info.
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24+
with:
25+
persist-credentials: false
2626

27-
- name: Run zizmor 🌈
28-
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3
27+
- name: Run zizmor 🌈
28+
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Build files
22
dist/
33
build/
4+
# vite-plugin-electron stub at project root
5+
/index.html
46

57
# TypeScript incremental compilation cache
68
*.tsbuildinfo

‎.husky/pre-commit‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pnpm dlx lint-staged
1+
pnpm exec vp staged

‎.vscode/extensions.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"recommendations": [
3-
"biomejs.biome",
3+
"oxc.oxc-vscode",
44
"bradlc.vscode-tailwindcss",
55
"GraphQL.vscode-graphql",
66
"GraphQL.vscode-graphql-syntax",

‎.vscode/settings.json‎

Lines changed: 14 additions & 5 deletions

0 commit comments

Comments
 (0)