[Nx](https://nx.dev) plugin for installing [Husky](https://www.npmjs.com/package/husky) in your monorepo, and setting up basic configuration for pre-commit hook, which will run linter and prettier on all staged files.
npm install @spyrosoft/spyro-husky-pluginNx 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-devsetup
Second, run the generator:`console``
npx nx g @spyrosoft/spyro-husky-plugin:setup