lint-staged is failing after migrating to a monorepo setup #9925
Unanswered
chawkichalladia
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I started my project as a standalone next app, after that, I added turborepo and moved to a monorepo setup in inticipation of the backend part.
now that everything moved inside the apps workspace, lintstaged no longer works and shows me the error "Couldn't find any
pages
orapp
directory. Please create one under the project root".also, the command that is executed, seems to be running from the perspective of the root of the workspace as the file paths are "apps//".
the liststaged configs only exist at the next project level and no configs exist at the root level, when I added configs to the root level, the next configs were ignored. also, husky simply runs
lint-staged
on the pre-commit hook.Additional information
please let me know if any more information is needed
Beta Was this translation helpful? Give feedback.
All reactions