Scope Biome checks to maintained JS sources (#6008)
* fix: scope biome checks * chore: remove redundant biome ignore
This commit is contained in:
@@ -40,6 +40,20 @@
|
||||
| `./scripts/reload2.sh` | Reload both Debug and Release |
|
||||
| `./scripts/rebuild.sh` | Clean rebuild |
|
||||
|
||||
## Web and JS Tooling
|
||||
|
||||
Run Biome from the repository root with:
|
||||
|
||||
```bash
|
||||
bun run biome:check
|
||||
```
|
||||
|
||||
The root `biome.json` intentionally scopes `biome check .` to maintained web and JS/TS sources.
|
||||
It excludes generated bundles, build outputs, vendored trees, and review-tool metadata such as
|
||||
`.greptile/`.
|
||||
Biome formatting and import sorting are disabled for now; do not wire this into required CI until
|
||||
the remaining source lint diagnostics are paid down.
|
||||
|
||||
## Rebuilding GhosttyKit
|
||||
|
||||
If you make changes to the ghostty submodule, rebuild the xcframework:
|
||||
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"$schema": "https://biomejs.dev/schemas/2.5.0/schema.json",
|
||||
"root": true,
|
||||
"vcs": {
|
||||
"enabled": true,
|
||||
"clientKind": "git",
|
||||
"useIgnoreFile": true,
|
||||
"defaultBranch": "main"
|
||||
},
|
||||
"files": {
|
||||
"ignoreUnknown": true,
|
||||
"includes": [
|
||||
"biome.json",
|
||||
"package.json",
|
||||
"scripts/**/*.{js,mjs,cjs,ts,tsx,json,jsonc}",
|
||||
"web/**",
|
||||
"webviews/**",
|
||||
"Resources/feed-tui/**",
|
||||
"!.greptile",
|
||||
"!skills",
|
||||
"!vendor",
|
||||
"!ghostty",
|
||||
"!web/db/migrations",
|
||||
"!!GhosttyKit.xcframework",
|
||||
"!!Native/**/target",
|
||||
"!!Packages/**/.build",
|
||||
"!!Resources/agent-session-react",
|
||||
"!!Resources/agent-session-solid",
|
||||
"!!Resources/markdown-viewer",
|
||||
"!!web/.next",
|
||||
"!!web/.pagefind-site",
|
||||
"!!web/.vercel",
|
||||
"!!web/build",
|
||||
"!!web/coverage",
|
||||
"!!web/dist",
|
||||
"!!web/out",
|
||||
"!!web/public/pagefind",
|
||||
"!!webviews/build",
|
||||
"!!webviews/coverage",
|
||||
"!!webviews/dist",
|
||||
"!!**/node_modules"
|
||||
]
|
||||
},
|
||||
"formatter": {
|
||||
"enabled": false
|
||||
},
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"rules": {
|
||||
"preset": "recommended"
|
||||
}
|
||||
},
|
||||
"assist": {
|
||||
"enabled": false
|
||||
}
|
||||
}
|
||||
@@ -15,6 +15,7 @@
|
||||
"vercel": "^50.9.5",
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "2.5.0",
|
||||
"@tailwindcss/cli": "^4.3.0",
|
||||
"esbuild": "0.27.0",
|
||||
"tailwindcss": "^4.3.0",
|
||||
@@ -22,6 +23,24 @@
|
||||
},
|
||||
},
|
||||
"packages": {
|
||||
"@biomejs/biome": ["@biomejs/[email protected]", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.5.0", "@biomejs/cli-darwin-x64": "2.5.0", "@biomejs/cli-linux-arm64": "2.5.0", "@biomejs/cli-linux-arm64-musl": "2.5.0", "@biomejs/cli-linux-x64": "2.5.0", "@biomejs/cli-linux-x64-musl": "2.5.0", "@biomejs/cli-win32-arm64": "2.5.0", "@biomejs/cli-win32-x64": "2.5.0" }, "bin": { "biome": "bin/biome" } }, "sha512-4kURkd9hAPrdDM3C9n82ycYgx8hvQcW6MjKTEejruj8rK0N8P3OPpdy8BvI8kt3KWY4ycF5XtDOrktetEfhfuw=="],
|
||||
|
||||
"@biomejs/cli-darwin-arm64": ["@biomejs/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-Mn3Fwi3SA5fgmfCPqmzpWF2DLZnms3BVAhM088nTnGrTZmHS3wwIjcoZPqpXeNgd3DrrLH6xp8vTLIBuJoZiXw=="],
|
||||
|
||||
"@biomejs/cli-darwin-x64": ["@biomejs/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-rg3VPL5P8mYro6pqlXYXuJWph21slVp3SZtAqWSrkZs40d2gTzYmHF8E/X1iTID25btmNKltNDJ926sqVBp7DQ=="],
|
||||
|
||||
"@biomejs/cli-linux-arm64": ["@biomejs/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-tl+LW8fdD96/xdeWtWwc82LIOc5CoY7N2AsogLTp5R4ECErYt+8Jl/N68ezN9vzSiqPTxw6vjcihoLPYKZHrlw=="],
|
||||
|
||||
"@biomejs/cli-linux-arm64-musl": ["@biomejs/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-vQdM4oSGaf7ZNeGO9w5+Y8SBtyser9M6znxYbm7Ec8wInxJu1WiKxFYZW5Auj2d80bcVvefuGGRxoFOE0eee8g=="],
|
||||
|
||||
"@biomejs/cli-linux-x64": ["@biomejs/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-zpEGf4RQbFEh8Vt7OmavLyyOzRbtcE9osCqrS1kfvt8jDvxwhKXLSf7n0ebr/ov0RJ9ssP+lhs6C8a9WwFvrQA=="],
|
||||
|
||||
"@biomejs/cli-linux-x64-musl": ["@biomejs/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-+9hIcMngJ+yGUahXqZuZ8CoWKJE9SAZsFsM3QDvXpNsLbXZ9lqVzgBhOk/jTSYkOA0GLP9eu3teukqpLUojHMg=="],
|
||||
|
||||
"@biomejs/cli-win32-arm64": ["@biomejs/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-jB0wAvTLI4itx5VidqVUejPQFhRUxiZ9l9FvZ26D5fl6t3qme+ZB4PD3bTSeL1vZ8NI2Rx/zj6H9zcESuGHKGw=="],
|
||||
|
||||
"@biomejs/cli-win32-x64": ["@biomejs/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-VT/lF+GId+67j8aDfLkxdxNoVApsPSTbyAtB3jJq0IWTrY77WXfbPfpngxq0bA6JCEv/7k8C9qWjDRKRznDlyw=="],
|
||||
|
||||
"@cspotcode/source-map-support": ["@cspotcode/[email protected]", "", { "dependencies": { "@jridgewell/trace-mapping": "0.3.9" } }, "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw=="],
|
||||
|
||||
"@dimforge/rapier2d-simd-compat": ["@dimforge/[email protected]", "", {}, "sha512-bijvwWz6NHsNj5e5i1vtd3dU2pDhthSaTUZSh14DUGGKJfw8eMnlWZsxwHBxB/a3AXVNDjL9abuHw1k9FGR+jg=="],
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"scripts": {
|
||||
"agent-session-web:build": "sh scripts/build-agent-session-web.sh",
|
||||
"agent-session-web:test": "bun test webviews/src/agent-session/shared/*.test.ts",
|
||||
"biome:check": "biome check .",
|
||||
"feed-tui": "bun Resources/feed-tui/index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -17,6 +18,7 @@
|
||||
},
|
||||
"license": "GPL-3.0-or-later",
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "2.5.0",
|
||||
"@tailwindcss/cli": "^4.3.0",
|
||||
"esbuild": "0.27.0",
|
||||
"tailwindcss": "^4.3.0"
|
||||
|
||||
Reference in New Issue
Block a user