-
Notifications
You must be signed in to change notification settings - Fork 375
chore: add eslintcache #56
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
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
为什么需要增加cache呢?他的收益是?
为什么需要增加cache呢?他的收益是?
https://gist.github.com/banyudu/e69fb0221743e6e824ea027d4c473675
这篇文章我看了,老实说不是很认可。缓存想要命中,特别是在scm系统中,意味着每次提交代码都会带上一个变更的cache文件,对于scm来说是很难接受的(额外的噪音)
但是他的收益也不是很大(缓存可以加快速度,其他没了),如果他是一种收益大于成本的行为的话,相信eslint会将其作为默认项配置的(类似jest,babel等)
这个pr我关闭了
.eslintcache is not pushed in .gitignore. just in your local :)
本地在大多数时间不会全量运行eslint。通过commitlint只会运行少量的几个(另外在editor中可以自行保证之检查有限的几个文件)。不需要缓存
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.