Rafiul Faisal
Rafiul Faisal

Reputation: 1

husky pre-commit fail for lint staged. yarn format:fix failed without output (FAILED). husky - pre-commit hook exited with code 1 (error)

While using commit, I am getting pre-commit error from husky. If I run yarn lint, yarn lint:fix manually it don't give any error. But when I try to commit it give me error. 1

While using commit, I am getting pre-commit error from husky. If I run yarn lint, yarn lint:fix manually it don't give any error. But when I try to commit it gives me error:

"lint-staged": {
    "*.{js,jsx,ts,tsx}": [
        "yarn format:fix",
        "yarn lint:fix"
    ]
},

Upvotes: 0

Views: 117

Answers (0)

Related Questions