# javascript-precommit **Repository Path**: mirrors_iliakan/javascript-precommit ## Basic Information - **Project Name**: javascript-precommit - **Description**: Installs git precommit hook for running checks & lints before git commit - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-10-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Installs git precommit hook for running lints & checks before git commit. # Usage 1. Make sure your `.git` dir is on the same path as `package.json`. In other words, they share the same parent folder. Usually it is so. 2. Edit your `package.json`, add `precommit: `, e.g. ```js { "name": "My package.json", "precommit": "gulp lint" } ``` 3. npm i javascript-precommit Now every git commit will run `gulp lint` task and only pass if the task is successful.