Write code your way while ensuring remote consistency. Flint empowers developers to use their personal style and formatting preferences locally, while maintaining a consistent remote codebase. By integrating with Git, Flint automatically formats code during pull and push operations. This approach prevents commits from being cluttered with formatting changes, making code reviews cleaner and collaboration smoother. Note Flint is currently in alpha. Contributions are warmly welcomed. Table of Contents Installation 1. Install Flint using your package manager # npm npm install --save-dev @capsulescodes/flint 2. Initialize Flint # npm node_modules/.bin/flint init The command creates a .flint directory in your project's root [ unless already present ]. directory in your project's root [ unless already present ]. The command creates a flint.config.json file in your project's root [ unless already present ]. 3. Optional - Copy the Flint git wrapper inside your local shell configuration file # Flint git wrapper git () { if [[ -f " $PWD /.flint/git.sh " ]] ; then bash " $PWD /.flint/git.sh " " $@ " ; else command git " $@ " ; fi } The function calls flint around git if a .flint/git.sh file is present inside the current working directory. If not, it will call git as usual. Note Running flint init --wrap integrates the wrapper during setup. You can also use flint as a git alternative. More options below. Usage Once initialized, Flint integrates with your Git workflow to streamline coding practices. Local Development : Format your code according to personal preferences. : Format your code according to personal preferences. Pulling Code : Flint adapts remote code to your local style for easier readability. : Flint adapts remote code to your local style for easier readability. Committing and Pushing Code : Flint reformats your code to align with remote style guidelines. This ensures : Maintaining Code Consistency :Ensures the repository always adheres to agreed-upon styles. :Ensure...
First seen: 2025-07-05 00:13
Last seen: 2025-07-05 03:14