-
Notifications
You must be signed in to change notification settings - Fork 4
Open
@liujinxing
Description
ts-lib-scripts 目前采用 eslint + prettier 处理代码格式化的,对于大型代码库来说,速度很慢,严重影响开发体验,体现在:
- git提交集成了代码格式化,导致提交非常缓慢
- vscode 调用 eslint + prettier 进行自动格式化代码,有时导致 vscode 卡顿,甚至卡死
社区出现一些基于 wasm 的更快速的代码格式化方案,如:
根据社区的测试,dprint 性能是 prettier 的 5 倍,deno fmt 性能是 prettier 的 17 倍。(其中 deno fmt 内部采用了dprint,二者之间的内部差距可能是采用 wasm 的方式不同导致)。内部需要做性能测试,验证性能提升幅度,和对开发体验的提升。
Metadata
Metadata
Assignees
Labels
No labels