创建 /.husky/pre-commit 文件:
/.husky/pre-commit
npx --no-install lint-staged
此配置已尽可能考虑到 Windows 和 macOS 之间的通用性。