ayushya / git-pre-commit-hook-eslint

EsLint Git Pre-commit Hook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git-pre-commit-hook-eslint

EsLint Git Pre-commit Hook

Instructions
  1. Copy the pre-commit file to your repository > .git/hooks/{copy file here}
  2. Inside .git/hooks/ , run > chmod u+x pre-commit
  3. In Line 22:13 change directory to point to .eslintrc file in your project.
  4. Run > npm install -g eslint babel-eslint eslint-plugin-react
  5. Commit your code to see the validations working.

Thanks To linhmtran168

About

EsLint Git Pre-commit Hook


Languages

Language:Shell 100.0%