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
64 changes: 64 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"$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",
"useJsxKeyInIterable": "warn"
},
"suspicious": {
"noShadowRestrictedNames": "warn",
"noArrayIndexKey": "warn",
"noAssignInExpressions": "warn"
},
"a11y": {
"useButtonType": "warn",
"noStaticElementInteractions": "warn",
"useSemanticElements": "warn",
"useKeyWithClickEvents": "warn",
"useAriaPropsSupportedByRole": "warn"
}
}
},

Check notice on line 50 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"
}
}
}
}
3 changes: 1 addition & 2 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import type { NextConfig } from "next";
// shell). Defaults cover the prod shell + local shell dev. We never send
// X-Frame-Options: DENY (that would block framing outright).
const FRAME_ANCESTORS =
process.env.NEXT_PUBLIC_FRAME_ANCESTORS ??
"https://shell.mindpods.org http://localhost:3100";
process.env.NEXT_PUBLIC_FRAME_ANCESTORS ?? "https://shell.mindpods.org http://localhost:3100";

const nextConfig: NextConfig = {
output: "standalone",
Expand Down
Loading
Loading