Skip to content

Support husky v6 #1006

@morenyang

Description

@morenyang

Current Behavior

Currently, in tsdx, the configuration of husky uses v4 style. But since husky stores its configuration in .husky directory, the existing configurations are no longer working.

https://typicode.github.io/husky/#/?id=migrate-from-v4-to-v6

Expected behavior

husky works, and be able to run git hooks

Suggested solution(s)

migrate the configurations to support husky v6

Additional context

Your environment

  System:
    OS: Linux 5.4 Ubuntu 20.04 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
    Memory: 9.38 GB / 12.17 GB
    Container: Yes
    Shell: 5.8 - /usr/bin/zsh
  Binaries:
    Node: 14.16.1 - ~/.nvm/versions/node/v14.16.1/bin/node
    Yarn: 1.22.10 - ~/.nvm/versions/node/v14.16.1/bin/yarn
    npm: 7.9.0 - ~/.nvm/versions/node/v14.16.1/bin/npm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions