
Flint
Write code your way while ensuring remote consistency.
FreeOpen SourceCodeCLI235 impressions#883 of its week
Flint is a Git-integrated code formatter that lets each developer work in their preferred style locally while maintaining a consistent style remotely. By automatically applying “local” and “remote” formatting passes during pull and push operations, Flint prevents formatting noise in commits and code reviews.
Pushing code
Pulling code
Flint is a Git-integrated code formatter that lets developers use personal style locally while keeping a consistent remote code style.
- for
- Developers who want personal formatting locally but need team-wide style consistency.
- pricing
- open source
- license
- MIT
Key features
- Git-hook integration — Automatically runs formatting on pull and push via Git hooks.
- Local & remote style configs — Supports separate formatting commands for local and remote code.
- npm package — Installable via npm as a dev dependency.
- Bash-based implementation — Written in Bash, making it adaptable to many environments.
- Git wrapper option — Can replace git commands with flint to apply formatting transparently.
Use cases
- Develop locally with personal linting rules while preserving team style on push
- Pull remote changes and auto-reformat to local preferences for readability
- Push commits that are automatically reformatted to match remote style guidelines
- Keep commit history clean by separating formatting changes from logic changes
Flint FAQ
How do I install Flint?+
Run `npm install --save-dev @capsulescodes/flint` and then initialize with `npx flint init`.
Can Flint be used as a Git replacement?+
Yes, you can run Flint commands like `flint status` instead of git to get formatting hooks applied.
What does Flint do during pull and push?+
It applies the configured remote formatting on pull and reformats code to the remote style on push.
What is the hidden temporary commit mentioned in the caveats?+
Flint creates a temporary commit during certain Git operations, which can make the branch appear ahead by one commit.
How do I configure local and remote formatters?+
Create a `flint.config.json` file specifying commands for `local` and `remote` for each file extension.
Summarized by DevHunt from github.com · Oct 5, 2026. Details may change; check the official site.





.png?width=64)





