Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ jobs:
- run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN || secrets.GITHUB_TOKEN }}
# Lint + format gate (Biome). Fails on errors; warnings are the
# documented legacy baseline tracked in biome.json.
- run: npx biome ci .
- run: npx tsc --noEmit
- run: npm run test
- run: npm run build
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN || secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
6 changes: 6 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Fast confidence gate before code leaves this machine — mirrors CI's
# correctness checks. The slow `next build` is left to CI.
# Bypass in a pinch with `git push --no-verify`.
npm run lint || exit 1
npm run typecheck || exit 1
npm run test || exit 1
39 changes: 39 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"$schema": "https://biomejs.dev/schemas/2.5.0/schema.json",
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
"files": {
"ignoreUnknown": true,
"includes": [
"**",
"!**/public",
"!**/scripts",
"!**/next-env.d.ts",
"!**/package-lock.json",
"!**/*.css"
]
},
"formatter": { "enabled": true, "indentStyle": "space", "indentWidth": 2, "lineWidth": 100 },
"linter": {
"enabled": true,
"domains": { "next": "recommended", "react": "recommended" },
"rules": {
"recommended": true,
"correctness": { "useExhaustiveDependencies": "warn", "useHookAtTopLevel": "warn" },
"suspicious": {
"noImplicitAnyLet": "warn",
"useIterableCallbackReturn": "warn",
"noArrayIndexKey": "warn",
"noAssignInExpressions": "warn"
},
"a11y": {
"useButtonType": "warn",
"noLabelWithoutControl": "warn",
"noStaticElementInteractions": "warn",
"noSvgWithoutTitle": "warn",
"noAutofocus": "warn"
}
}
},

Check notice on line 36 in biome.json

View workflow job for this annotation

GitHub Actions / build

deserialize

The use of the recommended field has been deprecated, and will removed in the next major version of Biome. Use preset instead.
"javascript": { "formatter": { "quoteStyle": "double" } },
"assist": { "enabled": true, "actions": { "source": { "organizeImports": "on" } } }
}
Loading
Loading