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

Add support for lerna-based eslint runs #10

Merged
merged 6 commits into from
Oct 15, 2020

Conversation

isachivka
Copy link
Contributor

Hi!

In our monorepository we use lerna for running eslint parallel

Like this:

    "lint": "lerna run lint --parallel --no-bail",

In this case process.cwd() return not repo-root path, but package path.

In my solution I search repo-root by searching package.json with workspaces property

@isachivka
Copy link
Contributor Author

@joshuajaco
Copy link
Owner

Thanks for this. About the coverage, couldn't we ignore the json error and let it crash? I think eslint won't run with an invalid package.json anyway.

@isachivka
Copy link
Contributor Author

@joshuajaco I drop it. Thx for feedback

Copy link
Owner

@joshuajaco joshuajaco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@joshuajaco joshuajaco merged commit 3e69322 into joshuajaco:master Oct 15, 2020
@joshuajaco
Copy link
Owner

Published in v0.6.1

@isachivka isachivka deleted the patch-1 branch October 15, 2020 19:36
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