Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Husky pretty-quick fix #18

Open
JuraJuki opened this issue Jul 31, 2020 · 0 comments
Open

Husky pretty-quick fix #18

JuraJuki opened this issue Jul 31, 2020 · 0 comments

Comments

@JuraJuki
Copy link

JuraJuki commented Jul 31, 2020

11:25 Commit failed with error
0 file committed, 3 files failed to commit: feat(reservations): create reservation with refetch
husky > pre-commit (node v14.4.0)
$ yarn pretty-quick --staged
error Command "pretty-quick" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
husky > pre-commit hook failed (add --no-verify to bypass)

add https://www.npmjs.com/package/pretty-quick

Package.json example:

 "husky": {
        "hooks": {
            "pre-commit": "yarn husky:pre-commit",
            "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
        }
    },
   "devDependencies": {
        "@types/jwt-decode": "^2.2.1",
        "cypress": "^4.7.0",
        "pretty-quick": "^2.0.1",
        "start-server-and-test": "^1.11.0"
    },
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant