Skip to content

How Lintlane works

Lintlane connects code checks, Git hooks, commit messages, and CI for JavaScript, React, and Next.js projects. It coordinates proven tools so you can use the same workflow from your first local edit to a pull request.

  1. Set up onceinit connects tools, hooks, and CI. doctor verifies the setup.
  2. Edit and checkUse check, check:fix, or the local dashboard while developing.
  3. Run the pipelinerun executes your enabled checks before you commit or push.
  4. Stage and commitChoose files with Git. Commitizen helps write a message; hooks check staged code and validate the message.
  5. Push and verifyThe push hook validates outgoing messages. GitHub Actions runs your configured remote checks.

This is the successful path. A failing check blocks the relevant operation until you fix it. Husky hooks run only when installed and enabled.

Utility What it does Configuration / entry point
Lintlane Sets up the project, resolves checks, runs tools, diagnoses problems, serves the dashboard, and generates CI. lintlane settings in package.json; CLI commands below.
Biome Formats code and checks lint rules; applies supported fixes when asked. biome.json, extending a Lintlane preset.
lint-staged Runs configured commands on staged files and manages partially staged files so unstaged edits stay separate. lint-staged in package.json, or an existing lint-staged config.
Husky Connects Git events to the project’s hook scripts. .husky/*, the prepare script, and Git’s core.hooksPath.
Commitizen Asks questions and builds a Conventional Commit message. config.commitizen.path in package.json.
cz-conventional-changelog Supplies Commitizen’s standard questions for type, scope, description, and other commit fields. Loaded by lintlane/presets/commitizen.cjs.
commitlint Validates a supplied message or messages from Git history. commitlint.config.mjs, normally exporting lintlane/commitlint.
@commitlint/config-conventional Supplies the baseline Conventional Commits validation rules. Extended by Lintlane’s commitlint preset.
Git Tracks staged changes, creates commits, invokes hooks, and pushes history. The project’s Git repository.
npm / pnpm / Yarn / Bun Installs dependencies and runs the project’s scripts. packageManager in package.json, then lockfile, launcher, or npm fallback.
GitHub Actions Runs the generated remote workflow. .github/workflows/biome.yml.
Your type checker, build tool, and test runner Run through detected or configured project scripts. Lintlane does not install these tools for you. scripts and lintlane.checks in package.json.

Lintlane bundles lint-staged, Commitizen, its standard adapter, and commitlint dependencies. Biome is a peer dependency installed into the consuming project; Husky is installed there when hook setup is enabled.

Terminal window
# Edit code, inspect issues, and apply supported fixes.
npx lintlane check
npx lintlane check:fix
# Run enabled project checks before committing or pushing.
npx lintlane run
# Choose what to commit, then answer the guided questions.
git add src/example.ts
npx lintlane commit
# The pre-push hook validates outgoing messages; GitHub Actions follows.
git push