@pretty-cozy/git-hooks

0.4.0 • Public • Published

@pretty-cozy/git-hooks

A pretty cozy collection of git hooks to verify commit messages and lint your code.

Setup

  1. Install the package
    npm i -D @pretty-cozy/git-hooks
  2. Add a lint-staged config to your package.json, for example:
    "lint-staged": {
      "*.{ts,tsx}": [
        "npm run lint:fix"
      ],
      "*.{json,md,html}": [
        "prettier --write"
      ]
    }
  3. Add a prepare script to your package.json to auto install the hooks on npm i:
    "scripts": {
      "prepare": "cozy-git-hooks install --quiet"
    }

Readme

Keywords

none

Package Sidebar

Install

npm i @pretty-cozy/git-hooks

Weekly Downloads

7

Version

0.4.0

License

MIT

Unpacked Size

5.66 kB

Total Files

6

Last publish

Collaborators

  • prettycoffee