Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

463
Visualizações
Husky 5 .huskey gitignore

10 days ago, Husky 5 was released https://dev.to/typicode/what-s-new-in-husky-5-32g5

after migrating to it (https://typicode.github.io/husky/#/)

I've noticed that there is a new .husky dir in the project.

by default it contains the following:

.huskey
   -> .gitignore
   -> /_

the .gitignore file is simply ignoring the _ dir

_

and inside the /_ dir there is a huskey.sh file which is obviously meant to be ignored.

in the documentation - you add hook by:

npx husky add .husky/pre-commit "npm test"

which will create a pre-commit file inside the .husky dir.

Should I commit that dir with the pre-commit file? not sure about that and can't find that in documentation.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

If you want those hooks to be standard for your repo then yes you will need to commit them. For example, if you have a commit-msg hook to lint commit messages and you want other developers cloning your repo to adhere to those lint rules then the commit-msg file is the way to enforce that.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda