Skip to content

fishme/JSprinciples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS Principles

Validation examples with git hooks.

Getting Started

Well I guess you know that you will need git. :-)

Installation

By default .git folder is hidden.

Visual Studio Code

If you use Visual Code then set this setting. That will enable the hidden git folder.

 "files.exclude": {
    "**/.git": false
  }

You can also open your project in the terminal and run open .git/

How to use

replace this with a validation from hooks/

   # !!!!!!
   # paste from hooks/*
   # !!!!!!

cp templates/pre-commit ./.git/hooks/pre-commit && chmod +x .git/hooks/pre-commit

If you want to know more about hooks read the git documentation

None ZSH Users

If you don't use zsh then you have to change the fist 2 lines from the template

#!/bin/zsh
source ~/.zshrc

replace with #!/bin/sh

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

  • David Hohl - Initial work - Fishme

See also the list of contributors who participated in this project.

License

This project is licensed under the GNU License - see the LICENSE.md file for details

About

git hooks for javascript development

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published