Skip to content

jobline/githooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Hooks

Prevent code from gradually degrading in quality.

Pre-Commit

You can bypass the hook using git commit --no-verify

Current checks:

  • [WHITESPACE]
  • [ESLINT]
  • [SPELLING]
  • [GIT_COMMIT_MESSAGE]

Pre-requisite

▶ brew install aspell
▶ npm install -g eslint eslint-config-airbnb eslint-plugin-react

What the result will look like

[WHITESPACE] --> 👍 LGTM <-- "Looks Good To Me"
[ESLINT] --> 👍 LGTM
[GIT_COMMIT_MESSAGE] --> 🚫 Malformed git commit message. Re-edit? [y/n]

...

Learn about Git Hooks

About

.git/hooks to maintain code style

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published