-
-
Notifications
You must be signed in to change notification settings - Fork 456
Closed
Description
Description
After upgrading to v11.2.1, lint-staged exits with the following error.
× Current directory is not a git directory!
I am using lint-staged in a monorepo, so each package runs the command (as advised here https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo), rather than being run from the repository root directory.
Steps to reproduce
- run
lint-stagedin a child directory of the git repository's root.
Debug Logs
expand to view
{
'*': [
'eslint --fix',
'prettier --write'
]
}
Environment
- OS: Windows 10
- Node.js: 14.18.0
lint-staged: 11.2.1
Metadata
Metadata
Assignees
Labels
No labels