Skip to content

Commit 9e80ceb

Browse files
author
repo-platform-sync
committed
chore: sync repo-platform build eef979454f48
1 parent 29ad7a9 commit 9e80ceb

4 files changed

Lines changed: 29 additions & 111 deletions

File tree

‎.github/repo-platform-manifest.json‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
".github/copilot-instructions.md": {"class": "mirror", "kind": "symlink", "hash": "79909577a70fc4971a7fcfd3cbec6a1af7182ca2dadc87f2979dce5e28f93ca0"},
1212
".github/dependabot.yml": {"class": "managed", "hash": "08797f7ab8d963e4b940fe249ac348e778e16591e7508cbc4e26be57738b7ce8"},
1313
".github/instructions/review.instructions.md": {"class": "managed", "hash": "89d5c9bc2bea185a076b37a4cefb5ffea25a37f050c4e39512b875b95e2db380"},
14-
".github/repo-platform-manifest.json": {"class": "managed", "hash": null, "commit": "b0343f64d30923fea312ab9e0ff691d21b0d55f6"},
14+
".github/repo-platform-manifest.json": {"class": "managed", "hash": null, "commit": "eef979454f4866061f47332c7d10625fa844b120"},
1515
".github/settings.local.yml": {"class": "starter"},
1616
".github/settings.yml": {"class": "managed", "hash": "81223482b2cb3f29ef26883396b8d0313b10bd0f35a5f80151681fd6e54d8311"},
1717
".github/workflows/auto-assign.yml": {"class": "managed", "hash": "42534cbfecfcc71acbee7f232d2c2b6c03b523e8158fdbac354d25a27aaf6510"},
@@ -32,9 +32,11 @@
3232
".release-please-manifest.json": {"class": "starter"},
3333
".typography-allow": {"class": "managed", "hash": "768ce791aa89e0061a7ccce09ee389478c45062d28d0c256e09b9e7160455ac3"},
3434
".yamllint": {"class": "managed", "hash": "5a32565bac44b0b6b2bc8741b2962d2b07ff3afcd2c4ea832ec5cab63af5f3ed"},
35-
"AGENTS.md": {"class": "split", "grammar": "managed-region", "begin": "<!-- BEGIN REPO-PLATFORM MANAGED -->", "end": "<!-- END REPO-PLATFORM MANAGED -->", "hash": "5835d34305caf2b6a7255f8e518c2afcad3981b8738a3119da6050d0fb669644"},
35+
"AGENTS.md": {"class": "split", "grammar": "managed-region", "begin": "<!-- BEGIN REPO-PLATFORM MANAGED -->", "end": "<!-- END REPO-PLATFORM MANAGED -->", "hash": "ffb11b9b0776da11864666fa3dc574385f251765f4a83c4936cebe76c7d8bd9c"},
3636
"CLAUDE.md": {"class": "mirror", "kind": "symlink", "hash": "a54ff182c7e8acf56acfd6e4b9c3ff41e2c41a31c9b211b2deb9df75d9a478f9"},
3737
"LICENSE.md": {"class": "split", "grammar": "managed-region", "begin": "<!-- BEGIN REPO-PLATFORM MANAGED -->", "end": "<!-- END REPO-PLATFORM MANAGED -->", "hash": "d0dc0940411f2d6102e0165497daa4e0a00c4b12794796fed35b2c6e3c9e3fd6"},
38+
"biome.json": {"class": "managed", "hash": "9409dfcb662acc191da623346272f722cdfe4cffaf7dd22f61384338a55451ef"},
39+
"biome.local.jsonc": {"class": "starter"},
3840
"release-please-config.json": {"class": "starter"}
3941
}
4042
}

‎AGENTS.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ GitHub Settings as Code: GitHub Action applying declarative repository settings:
2626

2727
- bun: `bun install`, `bun run <script>` (scripts in `package.json`)
2828
- `.bun-version` is managed by sync; pin another version in a repo-owned workflow's version input, not in the dotfile.
29+
- `biome.json` is managed by sync and holds the fleet's lint floor; the repository's own biome settings and per-path exceptions go in `biome.local.jsonc`.
2930

3031
## Repository-specific guidance
3132

‎biome.json‎

Lines changed: 20 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -1,122 +1,33 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.5.15/schema.json",
3-
"vcs": {
4-
"enabled": true,
5-
"clientKind": "git",
6-
"useIgnoreFile": true
7-
},
8-
"files": {
9-
"includes": ["**", "!lib", "!.github/repo-platform-manifest.json"]
10-
},
11-
"formatter": {
12-
"enabled": true,
13-
"includes": ["**", "!src/generated/upstream-gaps.ts"],
14-
"indentStyle": "space",
15-
"indentWidth": 2,
16-
"lineWidth": 100
17-
},
2+
"$schema": "https://biomejs.dev/schemas/2.5.11/schema.json",
3+
"extends": ["./biome.local.jsonc"],
184
"linter": {
195
"enabled": true,
206
"rules": {
21-
"preset": "recommended",
22-
"correctness": {
23-
"noUnusedImports": "error",
24-
"noUnusedVariables": "error"
7+
"complexity": {
8+
"noExcessiveCognitiveComplexity": {
9+
"level": "error",
10+
"options": { "maxAllowedComplexity": 15 }
11+
},
12+
"noExcessiveLinesPerFunction": { "level": "error", "options": { "maxLines": 80 } },
13+
"useMaxParams": { "level": "error", "options": { "max": 6 } }
2514
},
2615
"style": {
27-
"noNonNullAssertion": "error",
28-
"noRestrictedImports": {
29-
"level": "error",
30-
"options": {
31-
"paths": {
32-
"@actions/core": "Only src/action/ implements the Io port over @actions/core; every other layer takes an Io."
33-
},
34-
"patterns": [
35-
{
36-
"group": ["**/private-open", "**/private-open.*"],
37-
"message": "Only the redaction projections may open a Private<T> seal; render through publicDetail/toPublicView, or compose the private report."
38-
}
39-
]
40-
}
41-
}
42-
}
43-
}
44-
},
45-
"javascript": {
46-
"formatter": {
47-
"quoteStyle": "double"
16+
"noNestedTernary": "error",
17+
"noUselessElse": "error",
18+
"noNegationElse": "error",
19+
"noParameterAssign": "error"
20+
},
21+
"suspicious": { "noAssignInExpressions": "error", "noUnusedExpressions": "error" },
22+
"performance": { "noBarrelFile": "error", "noReExportAll": "error" },
23+
"correctness": { "noInvalidUseBeforeDeclaration": "error" }
4824
}
4925
},
5026
"overrides": [
5127
{
52-
"includes": ["src/generated/upstream-gaps.ts"],
53-
"assist": {
54-
"actions": {
55-
"source": {
56-
"organizeImports": "off"
57-
}
58-
}
59-
}
60-
},
61-
{
62-
"includes": ["src/**"],
63-
"plugins": ["./lint/never-throw.grit"]
64-
},
65-
{
66-
"includes": ["src/**", "!src/sections/shared/schema-helpers.ts"],
67-
"plugins": ["./lint/rule-gate.grit"]
68-
},
69-
{
70-
"includes": ["src/action/**"],
71-
"linter": {
72-
"rules": {
73-
"style": {
74-
"noRestrictedImports": {
75-
"level": "error",
76-
"options": {
77-
"patterns": [
78-
{
79-
"group": ["**/private-open", "**/private-open.*"],
80-
"message": "Only the redaction projections may open a Private<T> seal; render through publicDetail/toPublicView, or compose the private report."
81-
}
82-
]
83-
}
84-
}
85-
}
86-
}
87-
}
88-
},
89-
{
90-
"includes": ["src/flows/redact.ts"],
91-
"linter": {
92-
"rules": {
93-
"style": {
94-
"noRestrictedImports": "off"
95-
}
96-
}
97-
}
98-
},
99-
{
100-
"includes": [
101-
"src/private.ts",
102-
"src/discovery/discover.ts",
103-
"src/report/delivery.ts",
104-
"test/private.test.ts"
105-
],
106-
"linter": {
107-
"rules": {
108-
"style": {
109-
"noRestrictedImports": {
110-
"level": "error",
111-
"options": {
112-
"paths": {
113-
"@actions/core": "Only src/action/ implements the Io port over @actions/core; every other layer takes an Io."
114-
}
115-
}
116-
}
117-
}
118-
}
119-
}
28+
"includes": ["biome.json", ".github/repo-platform-manifest.json"],
29+
"formatter": { "enabled": false },
30+
"assist": { "enabled": false }
12031
}
12132
]
12233
}

‎biome.local.jsonc‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// The repository's own biome layer: exclusions, the formatter, extra rules, and per-path overrides with their
2+
// reasons. The managed biome.json extends this file and applies last, so the floor cannot be lowered here; the one
3+
// relaxation is a per-path `overrides` entry below with its reason beside it (docs/modules/typescript.md).
4+
{}

0 commit comments

Comments
 (0)