You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npx husky add .husky/pre-commit "npm run lint-staged"
The short term fix would be to update the task to only install Husky <5, which may be the preferred default since there are license complications right now.
Right now, if you run the following on an empty project:
Note that husky 5.0.9 was installed, but our package.json looks like:
Husky 5 no longer uses that config style format (see https://typicode.github.io/husky/#/?id=migrate-from-v4-to-v5), instead you need to run the commands like:
npx husky add .husky/pre-commit "npm run lint-staged"
The short term fix would be to update the task to only install Husky <5, which may be the preferred default since there are license complications right now.
mrm/packages/mrm-task-lint-staged/index.js
Line 7 in f213462
Longer term, mrm should perhaps ask if the user prefers 4/5 and use the appropriate config format.
The text was updated successfully, but these errors were encountered: