CLI tool that automatically sets up Prettier, Husky, and lint-staged in any project. Running `npx prettier-husky-lint-staged-installer` (v1.4.1) installs Husky v9, creates a `.husky/pre-commit` hook running `npx lint-staged`, and adds a `lint-staged` config in `package.json` to format all staged files with Prettier. Unlike manual setup guides, this tool provides a one-command automated installation with zero configuration. It supports npm, pnpm, and bun. Actively maintained with regular dependency updates and OIDC trust.
npm install prettier-husky-lint-staged-installerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs and configures Prettier, Husky, and lint-staged with default settings.
Run `npm uninstall husky` and then run `npx prettier-husky-lint-staged-installer` to get the correct Husky v9 setup.
Backup your package.json before running the installer, or manually merge after installation.
Ensure `lint-staged` and `prettier` are in `devDependencies` before committing.
Delete the old `.husky/precommit` file or run the installer again to overwrite with the new format.
Ensure the `.husky/` directory exists and is writable. Run `mkdir -p .husky && npx prettier-husky-lint-staged-installer`.
Check that `lint-staged` is installed as a devDependency. Run `npm install --save-dev lint-staged` then test with `git commit`.
Update npm: `npm install -g npm@latest`. Then run the command again exactly: `npx prettier-husky-lint-staged-installer`.