lint-prepush is a Node.js tool that runs linters on staged files before a git push, enforcing code quality within teams. Current stable version is 3.0.3 (released 2024-11-30), with a slow release cadence. It uses a simple package.json configuration to define tasks per file glob, supports concurrent task execution for speed, and integrates with any git hook manager (e.g., Husky). Unlike lint-staged which operates on pre-commit, lint-prepush operates on pre-push, catching issues after local commits. Requires Node.js >=18.18.0. Dependencies include cosmiconfig for config loading, execa for running commands, and log-symbols for visual feedback. No security issues reported.
npm install lint-prepushNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install lint-prepush and Husky, create a pre-push hook, and configure lint tasks in package.json.
Update Node.js to >=18.18.0.
Use Node >=10 for v2.x. For current versions, use Node >=18.18.0.
Explicitly set the 'base' option in configuration to your default branch (e.g., 'main').
Use format: { "concurrent": ["eslint", "jest"] }Use the object format with 'concurrent' for multiple tasks.
Add configuration: "lint-prepush": { "tasks": { "*.js": "eslint" } }Set 'base' to an existing branch (e.g., 'main' or 'master') or omit to auto-detect (v3+).
Install the linter locally (npm install --save-dev eslint) or ensure it's globally accessible.
No dependency data recorded yet.