Latest Supply Chain Attack:Mini Shai-Hulud Hits @antv npm Packages, 639 Versions Compromised.Learn More
Sign In

ivan-githook

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ivan-githook

git hook

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
4
-50%
Maintainers
1
Weekly downloads
 
Created
Source

git钩子

目前钩子为git commit指令之后针对add过的文件进行eslint检查和stylelint检查,因此请进行eslint和stylelint的配置。

使用

npm install -D husky

npm install -D ivan-githook

项目package.json中scripts增加一条

"precommit": "ivan-githook"

Keywords

.gitignore

FAQs

Package last updated on 23 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts