Biome vs ESLint+Prettier: end the war in the comments #856
|
We use Biome. It is fast and one tool, but plugin coverage is smaller. Tell us what rules you miss, what you do not miss, and whether formatter-and-linter-in-one is worth the trade. Extra credit: how do you make sure CI runs the exact same command as your local pre-commit, so lint errors are never a surprise? |
Replies: 1 comment 1 reply
|
I’d keep Biome for Flisk unless there’s a specific missing rule that justifies another tool. Looking through the current setup, CI already runs I’d have the hook call the existing lint script from the same directory, using the dependency version installed from the lockfile. That keeps the configuration and file coverage together instead of maintaining a separate command in the hook. If checking everything on each commit becomes too slow, a smaller local check is reasonable but we should make that difference explicit and keep the full CI-equivalent command easy to run. |
I’d keep Biome for Flisk unless there’s a specific missing rule that justifies another tool.
Looking through the current setup, CI already runs
bun run lintfromcli/, but the pre-commit config doesn’t include Biome. That seems like a useful place to improve consistency.I’d have the hook call the existing lint script from the same directory, using the dependency version installed from the lockfile. That keeps the configuration and file coverage together instead of maintaining a separate command in the hook.
If checking everything on each commit becomes too slow, a smaller local check is reasonable but we should make that difference explicit and keep the full CI-equivalent command easy to…