Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 800 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 800 Bytes

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