-
Notifications
You must be signed in to change notification settings - Fork 404
run eslint from monorepo root #1719
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
Conversation
|
During development it can be handy to be able to run lint only in the package you are currently working in, especially as I cannot get the UI integration to work with yarn at the moment. Linting takes quite some time. Is there a way to restrict the lint to a single package in this setup? |
|
Yeah, I noticed that, so I was just doing:
To restrict to a specific directory. |
|
In eslint/eslint#16960 there is a good amount of users complaining about the suggestion to centralize eslint config in a repo root file. It seems like this feedback was not expected when the flat config system was developed. But starting with eslint 10 there is a new resolution system that looks up the config in the current directory and then moves up. For us I think it is not a big deal to move everything to repo root. Linting per package is not really needed and possible by calls as you showed above. So from my point of view we can proceed here and get this work ready for merge. Thank you! |
dc6e514 to
618981a
Compare
|
I think this has to wait on the |
dc6e514 to
618981a
Compare
webmaster128
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasn't this PR supposed to remove all the "lint" scripts from the packages in favour of the top levels lint?
618981a to
c355cce
Compare
|
Yep, just had to rebase the last commit against recent changes first. Wanted to see if the early non-conflicting commits passed CI |

Unless there's a good reason not to run eslint on the whole repo?