mirror of
https://github.com/evroon/bracket.git
synced 2026-07-31 02:10:50 -04:00
This PR migrates formatting in `frontend/` from Prettier to `oxfmt`,
including script wiring and dependency cleanup. It removes the Prettier
plugin/config path so formatting is handled by a single tool.
- **Script migration**
- Renamed/rewired formatting scripts in `frontend/package.json`:
- `prettier:check` → `format:check` (`oxfmt --check .`)
- `prettier:write` → `format:write` (`oxfmt .`)
- Updated dependent scripts:
- `test` now runs `pnpm run format:write`
- `openapi-ts` now runs `pnpm run format:write` after generation
- **Dependency cleanup**
- Removed `prettier-plugin-organize-imports` from `dependencies`
- Removed `prettier` from `devDependencies`
- Added `oxfmt` (latest stable at update time)
- **Config removal**
- Deleted `frontend/.prettierrc.js` (no longer used after migration)
- **Lockfile alignment**
- Updated `frontend/pnpm-lock.yaml` to reflect the dependency and script
ecosystem change
```json
{
"scripts": {
"format:check": "oxfmt --check .",
"format:write": "oxfmt .",
"openapi-ts": "openapi-ts && pnpm run format:write",
"test": "tsc && pnpm run format:write"
}
}
```
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Erik Vroon <11857441+evroon@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
63 lines
1.7 KiB
JSON
63 lines
1.7 KiB
JSON
{
|
|
"name": "bracket",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"analyze": "ANALYZE=true vite build",
|
|
"openapi-ts": "openapi-ts && pnpm run format:write",
|
|
"start": "vite start",
|
|
"update-deps": "ncu -c 30d -u",
|
|
"typecheck": "tsc",
|
|
"export": "vite build && vite export",
|
|
"format:check": "oxfmt --check .",
|
|
"format:write": "oxfmt .",
|
|
"test": "tsc && pnpm run format:check"
|
|
},
|
|
"dependencies": {
|
|
"@emotion/react": "11.14.0",
|
|
"@emotion/server": "11.11.0",
|
|
"@hcaptcha/react-hcaptcha": "2.0.2",
|
|
"@hello-pangea/dnd": "18.0.1",
|
|
"@mantine/core": "8.3.7",
|
|
"@mantine/dates": "8.3.7",
|
|
"@mantine/dropzone": "8.3.7",
|
|
"@mantine/form": "9.0.1",
|
|
"@mantine/hooks": "8.3.7",
|
|
"@mantine/notifications": "8.3.7",
|
|
"@mantine/spotlight": "8.3.7",
|
|
"@react-icons/all-files": "4.1.0",
|
|
"@tabler/icons-react": "3.41.0",
|
|
"@vitejs/plugin-react": "6.0.1",
|
|
"axios": "1.18.0",
|
|
"date-fns": "4.1.0",
|
|
"dayjs": "1.11.20",
|
|
"i18next": "26.0.3",
|
|
"nuqs": "2.8.9",
|
|
"react": "19.2.0",
|
|
"react-dom": "19.2.0",
|
|
"react-i18next": "17.0.1",
|
|
"react-icons": "5.6.0",
|
|
"react-qr-code": "2.0.18",
|
|
"react-router": "8.3.0",
|
|
"swr": "2.4.1",
|
|
"vite-tsconfig-paths": "^6.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"@hey-api/openapi-ts": "0.97.3",
|
|
"@types/node": "26.0.1",
|
|
"@types/react": "19.2.14",
|
|
"@types/react-dom": "19.2.3",
|
|
"i18next-browser-languagedetector": "8.2.1",
|
|
"i18next-http-backend": "3.0.5",
|
|
"npm-check-updates": "20.0.0",
|
|
"oxfmt": "0.61.0",
|
|
"postcss": "8.5.18",
|
|
"postcss-preset-mantine": "1.18.0",
|
|
"postcss-simple-vars": "7.0.1",
|
|
"typescript": "5.9.3",
|
|
"vite": "8.0.16"
|
|
}
|
|
}
|