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.

@thunderer199 thunderer199 force-pushed the feat/pass-cwd-to-linter-cmd branch from c688eef to cb6edd7 Compare July 2, 2024 05:21
@fredrikaverpil
Copy link
Contributor

fredrikaverpil commented Oct 3, 2024

Hey @thunderer199 FYI, please note I opened another PR which touches cwd in #674

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.

2 participants