refactor: split config lsp and formatter schemas (#22986)

This commit is contained in:
Dax 2026-04-16 21:35:26 -04:00 committed by GitHub
commit 326471a25c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 63 additions and 51 deletions

View file

@ -14,6 +14,7 @@
- Use Bun APIs when possible, like `Bun.file()`
- Rely on type inference when possible; avoid explicit type annotations or interfaces unless necessary for exports or clarity
- Prefer functional array methods (flatMap, filter, map) over for loops; use type guards on filter to maintain type inference downstream
- In `src/config`, follow the existing self-export pattern at the top of the file (for example `export * as ConfigAgent from "./agent"`) when adding a new config module.
Reduce total variable count by inlining when a value is only used once.