• falseWhite
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    19 days ago

    Never had any issues.

    The article is just a sad dev ramble.

    I don’t know what’s available for the Rust ecosystem, but for JS/TS someone already did all the hard work and it just works like magic. The library is called Husky.

    • Michal
      link
      fedilink
      arrow-up
      1
      ·
      18 days ago

      Can you share what you use git commit hooks for?

      • falseWhite
        link
        fedilink
        arrow-up
        6
        ·
        18 days ago

        I run an eslint fix and prettier formatter. It’s a typescript project.

    • tyler
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      18 days ago

      husky has to be one of the most annoying and outright hostile libraries I’ve seen. Anytime I pull an open source project to get it working on my machine I have to go through and set up an entire development pipeline just to make a code change even if I never intend on upstreaming that change because husky forces formatting on commits. What an idiotic thing to do. The article covers this clearly. It’s just not something that should be done on commit.

      • falseWhite
        link
        fedilink
        arrow-up
        6
        ·
        18 days ago

        Wow. How difficult is it to add --no-verify or simply -n flag to skip the pre-commit hooks?

        • tyler
          link
          fedilink
          arrow-up
          1
          arrow-down
          2
          ·
          17 days ago

          What’s the point then? Why bother with hooks at all?