|
|
|
|
|
by conaclos
877 days ago
|
|
Typically, you would check the formatting of the entire codebase on the CI or even locally (to ensure that you are doing the same checks on the CI and locally). On a large code base this can take several seconds, reducing developer experience. Yes, you can use git hook to check only changed files. However, this requires more setup and may lead to some misses. Biome can also format malformed code. It supports formatting as you type. Biome has less known non-idempotent formatting (For some edge cases you need to run twice Prettier to get a stabilized output). Biome is also a linter. You get two tools that are closely compatible. |
|