Skip to content

Is there a way to use husky when creating a cra template? #8696

Closed
@cmacdonnacha

Description

@cmacdonnacha

In my package.json file I can use husky to run prettier to format my code after a commit.

"husky": {
    "hooks": {
      "pre-commit": "pretty-quick --staged"
    }
  }

Is there a way to put this into my own custom cra template? Into the template.json file?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions