Closed OmgImAlexis closed 7 years ago
You're caching your node_modules on Travis. This is why that's a bad idea.
I'm not sure what you mean by that? We use yarn and we cache the yarn cache not the npm cache?
This results in stale dependencies (of which would be ESLint for example) on Travis. That's most likely why you're seeing different results. Try clearing the Travis cache: https://docs.travis-ci.com/user/caching/#Clearing-Caches
We haven't cached the node_modules before and I tried clearing the cache. It's also testing against our own code so I don't see how the cache of deps would cause anything at all.
Not sure what's causing this but I did see an issue opened similarly with Windows and *nix so maybe it's a cross platform bug.
When testing against this branch on my OSX laptop I get no issues at all yet on travis I see a few that don't even point to the correct lines.
https://travis-ci.org/pymedusa/Medusa/builds/205416269