Skip to content

Commit bbfbfa9

Browse files
committed
chore: migrate from yarn+prettier to pnpm+oxc
Replace Yarn 4.12.0 with pnpm 10.33.0 and Prettier with oxfmt+oxlint. Vercel auto-detects pnpm from pnpm-lock.yaml. CI updated accordingly.
1 parent 319ea09 commit bbfbfa9

13 files changed

Lines changed: 6777 additions & 8530 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@ jobs:
77
steps:
88
- uses: actions/checkout@v4
99

10+
- uses: pnpm/action-setup@v4
11+
1012
- uses: actions/setup-node@v4
1113
with:
1214
node-version-file: ".nvmrc"
13-
cache: yarn
14-
15-
- name: Enable Corepack
16-
run: corepack enable
15+
cache: pnpm
1716

1817
- name: Install dependencies
19-
run: yarn install --immutable
18+
run: pnpm install --frozen-lockfile
2019

2120
- name: Run tests
22-
run: yarn test
21+
run: pnpm test

.gitignore

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@ __diff_output__
1515
# build
1616
.next
1717
next-env.d.ts
18+
*.tsbuildinfo
1819

19-
# Yarn 3
20-
.pnp.*
21-
.yarn/*
22-
!.yarn/patches
23-
!.yarn/plugins
24-
!.yarn/releases
25-
!.yarn/sdks
26-
!.yarn/versions
20+
# agent state
21+
.claude/
22+
.playwright-mcp/

.husky/pre-commit

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
4-
yarn precommit
1+
pnpm precommit

.lintstagedrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
'**/*.{js,jsx,ts,tsx}': ['jest -c .jest.config.js --findRelatedTests --passWithNoTests', 'prettier --write'],
2+
'**/*.{js,jsx,ts,tsx}': ['jest -c .jest.config.js --findRelatedTests --passWithNoTests', 'oxfmt', 'oxlint'],
33
};

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auto-install-peers=true

.oxfmtrc.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"arrowParens": "avoid",
4+
"printWidth": 120,
5+
"semi": true,
6+
"singleQuote": true,
7+
"trailingComma": "es5",
8+
"sortPackageJson": false,
9+
"ignorePatterns": [
10+
"node_modules",
11+
"/.next",
12+
"/.yarn",
13+
"/public",
14+
"*.*",
15+
"!*.css",
16+
"!*.js",
17+
"!*.json",
18+
"!*.jsx",
19+
"!*.less",
20+
"!*.ts",
21+
"!*.tsx",
22+
"!*.yml"
23+
]
24+
}

.oxlintrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["typescript", "unicorn", "oxc", "react", "nextjs", "jsx-a11y", "import", "promise", "jest"],
4+
"categories": {
5+
"correctness": "error",
6+
"suspicious": "warn"
7+
},
8+
"rules": {
9+
"react/react-in-jsx-scope": "off",
10+
"import/no-named-as-default": "off",
11+
"import/no-unassigned-import": "off"
12+
}
13+
}

.prettierrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

.yarn/releases/yarn-4.12.0.cjs

Lines changed: 0 additions & 942 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)