Nx plugin for installing Husky in your monorepo, and setting up basic configuration for pre-commit hook, which will run linter and prettier on all staged files.
This plugin can only be installed in already existing Nx monorepo. Nx version 16.3.2 or higher is required.
First, install this plugin in your monorepo as a dev dependency:
npm i @spyrosoft/spyro-husky-plugin--save-dev
Second, run the setup
generator:
npx nx g @spyrosoft/spyro-husky-plugin:setup