refactor: split config lsp and formatter schemas (#22986)
This commit is contained in:
parent
6405e3a7b1
commit
326471a25c
6 changed files with 63 additions and 51 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue