-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Revert "Move .
to lint:js
and lint:md
"
#17661
Conversation
This reverts commit 7b03831.
☁️ Nx Cloud ReportCI ran the following commands for commit 496b4a4. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
Oh I didn't realize there's a pre-commit hook. It's kind of a bummer to use the same npm script for linting in CI and also linting individual files, since the cache will be constantly cleaned out due to running eslint against different files. I wonder if it might be possible to create a separate script for the pre-commit hook, with a different cache-location. Would you be willing to review a PR to try it out if I work on that real quick? |
I am unaware of this. I'd assume eslint would keep a cache based on files, so running ona subset of files would not clear the cache. Is this an assumption? or do you have a link to the docs about this? |
That's how it used to work, I'll do a little investigating. |
We could change the precommit hook of course, it's configured here: Lines 88 to 95 in 7c87145
|
Alright cool, either things changed or I was just wrong, but changing the target does not remove the cache. But running I've opened an alternative to this revert PR at #17662. Please let me know what you think. |
This reverts commit 7b03831.
Issue: The precommit hooks now run yarn lint on ALL files, not just the changed ones.
What I did
reverted the change see above