Allow disabling cache#172
Allow disabling cache#172angelikatyborska wants to merge 1 commit intostandard:masterfrom angelikatyborska:master
Conversation
|
Sorry you ran into trouble :( Ah interesting, so when This is definitely something we should keep in mind when we upgrade For this PR, I'm a bit conflicted. I think the reason this happened was due to the out-of-date cache after upgrading. I've not heard of any other issues around file caching for existing versions. If we can instead clear the cache automatically in new versions that could be a better solution. If not, maybe a @feross any thoughts? |
|
Superseded by #181 |
This allows to either set the command-line option
--cache=falseor addcache: falseinpackage.jsonto disable caching, and change the cache's location with--cache-location=""orcacheLocation: ""inpackage.json.The option in
package.jsontakes precedence (because that's how it was already defined for theparseroption).Backstory:
We use semistandard at my job. Today one of our projects had suddenly failing builds on CI due to lint errors that did not appear on developers' machines. The cause was an update to semistandard that slightly changed linting rules. However, a simple
rm -rf node_modules && npm installon developers' machines did not help reveal the issues. After some hair-pulling, we realized those new issues suddenly appear after an unrelated edit is made to a file. That lead to the discovery that ESLint is capable of caching (where it's disabled by default), and that this project hardcodescache: true. We would like to disable caching in our project to minimalize the chance of discrepancy between linting results on developers' machines and CI as speed is not an issue in the project.