Xameer
Xameer

Reputation: 31237

Husky not getting triggered on git events

I have created a react app which implements husky to capture lint errors:

Environment

git version 2.21.0 (Apple Git-122), node v8.16.2, npm v6.4.1

Lint implementation

Husky implementation

Testing git commits

Problem

The lint is never called when the commit is triggered. What is wrong here? Btw, I have tried solutions proposed here.

Upvotes: 0

Views: 2952

Answers (1)

Azhar Husain
Azhar Husain

Reputation: 141

husky requires node > v10. Otherwise, it will skip with a warning message in the console.

Your node version is v8.16.2, please upgrade the same.

Upvotes: 1

Related Questions