Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ppass cwd to linter command #605

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thunderer199
Copy link

Node.js linters (eslint, stylelint, etc) run binary from relative node_modules that depend on the working directory. But not always working directory has node_modules, in the case of monorepo it can be some sub-folder.

The lint run command already has cwd option, but doesn't pass it to cmd command.
The fix is passing opts to linter cmd to properly calculate the path to node_modules if it's not in working directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant