Fix Your Mistakes, Don't Commit Them! Pre-Commit Git Hook Checks with Husky and Lint Staged.

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 49

  • @leighhalliday
    @leighhalliday  3 года назад +3

    Check out my course called Next Level Next.js! A full stack course covering GraphQL, TypeScript, Apollo, Prisma, auth and lots more! next.leighhalliday.com

  • @mathewsmachadoamorim5557
    @mathewsmachadoamorim5557 3 года назад +6

    Man, your videos are one of the best on the whole RUclips! You explain everything in such a smoothly way, and the way you speak conveys peace.

    • @leighhalliday
      @leighhalliday  3 года назад +1

      Thanks so much Mathews! I hope I don't put you to sleep :D

  • @shashikavirajh6234
    @shashikavirajh6234 2 года назад +1

    Superb video man. Everything within 10 minutes. I was trying to set this up by reading so many articles and finally landed here. It took only 20 minutes to apply all these and its working. This channel should get more attention than this. Hats off.

  • @DjLeonSKennedy
    @DjLeonSKennedy 3 года назад +3

    That's awesome ! gonna buy your course indeed, all loud and clear!

    • @leighhalliday
      @leighhalliday  3 года назад

      Nice!! I hope you enjoy it :) Thank you!!

  • @introvertsgo
    @introvertsgo 3 года назад +4

    Great video. I always come away understanding more and being more confident.

    • @leighhalliday
      @leighhalliday  3 года назад +1

      Thanks Kev :D Glad you enjoyed it!

  • @romko-romario
    @romko-romario 2 года назад

    It's extra clear: thanks for the best explanation on the subject!

  • @TheJorge421
    @TheJorge421 2 года назад

    I love your videos, hope you will keep uploading

  • @igor_cojocaru
    @igor_cojocaru 3 года назад +1

    Cool stuff Leigh!
    Thanks

  • @programmercouple
    @programmercouple 3 года назад +3

    Good stuff!! Learned something new today because of your video❤️

  • @mahmirr
    @mahmirr 3 года назад

    Very well done. Clearly experienced with doing proper tutorials.

  • @ТатьянаФомина-ч3т
    @ТатьянаФомина-ч3т 2 года назад

    Thank you very much for this video, it helped me a lot!

  • @shashikavirajh6234
    @shashikavirajh6234 2 года назад

    A suggestion. There are so many MERN courses at the moment. But none covers a good real life project with some software engineering best practices like ci/cd, unit test, docker and deployment to aws.

  • @mertgenc9890
    @mertgenc9890 2 года назад

    totally awesome! thanks for help!

  • @AjithKumarsham
    @AjithKumarsham 3 года назад

    Very helpful, thanks man!

  • @Viciius
    @Viciius 3 года назад

    I haven't seen it yet but guess it's great as always.
    Thank you for such an amazing content! :D

    • @leighhalliday
      @leighhalliday  3 года назад

      Thanks John! I hope you'll like it when you get the chance to check it out!

    • @mrkhoros
      @mrkhoros 3 года назад

      I watched it, it was great.

  • @andrewregrets
    @andrewregrets 3 года назад +1

    Wow, I thought you have to import React to use JSX. I am confused 🤔

  • @rangabharath4253
    @rangabharath4253 3 года назад

    Awesome as always 👍😀

  • @moriteza64
    @moriteza64 3 года назад

    Hi thanks for a great video
    why when adding .husky file and run yarn lint-staged the output terminal is not beauty like when we run directly "lint-staged" cl ?
    instead of those beautiful icons just text without intend :/

  • @sylvain1099
    @sylvain1099 3 года назад

    Thanks a lot for that video. Very helpful

  • @aliveyeyt4136
    @aliveyeyt4136 3 года назад

    love your vids bro!

  • @keivansf3459
    @keivansf3459 2 года назад

    Thanks a lot for this

  • @ricardorien
    @ricardorien Год назад

    Thanks a tons!

  • @yannistheodorakopoulos5916
    @yannistheodorakopoulos5916 3 года назад

    Hello Leigh. Thanks for the video. Your content is amazing and I've learned a lot from it so far.
    I've worked in a company that we've utilized pre-commit git hooks in our workflow, and I found overwhelming and not really helpful not to be able to push code that has failed tests, as it is something that would be handled by the CI tools (by preventing merges, or not building a new production build etc)
    Is there something I'm missing about utilizing them in the pre-commit phase?

    • @leighhalliday
      @leighhalliday  3 года назад

      Hey Yannis! There isn't a rule... I would only use them if they help your workflow. Maybe type checks only and leave tests to the CI tool?

  • @tuananhdo1870
    @tuananhdo1870 Год назад

    amazing!

  • @berlino5563
    @berlino5563 3 года назад

    Good job! 👍

  • @adelmohamedtadjerouni2418
    @adelmohamedtadjerouni2418 2 года назад

    Great !!! , thank you

  • @Yash-qe3bv
    @Yash-qe3bv 3 года назад

    you used "git co -b something", so co is checkout right? but I cant write "co", it errors me: git co is not a command,

    • @leighhalliday
      @leighhalliday  3 года назад

      You’re right, it’s a shortcut for git checkout

  • @orangekanso
    @orangekanso 3 года назад

    The platform "win32" is incompatible with this module - not very useful in a mixed dev env

    • @leighhalliday
      @leighhalliday  3 года назад

      Hmmm... that sucks! Sorry!! I don't have Windows so wasn't aware... I'd say at a company though most devs are working in the same environment.

  • @naplix
    @naplix 3 года назад

    I don't speak English but....
    Si les marca error al instalar husky al commitear, agregen esto en husky.sh:
    (add this to husky.sh if mark error when commit)
    if [ -t 1 ]; then
    exec

  • @tanaris334
    @tanaris334 7 месяцев назад

    stop it, get some help. Check these things in your pipelines flow not on commits