Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Cache persists when eslint rules have changed #124

Closed
peternewnham opened this issue Nov 22, 2016 · 3 comments
Closed

Cache persists when eslint rules have changed #124

peternewnham opened this issue Nov 22, 2016 · 3 comments

Comments

@peternewnham
Copy link
Contributor

The eslint-loader cache is only ever invalidated when a file is changed. This means that if you make changes to your eslint rules, the last cached lint result will still be output by eslint-loader and not the outcome based on the updated rules. The only way to fix this is to either modify each file being linted or manually delete the cache.

The entire cache should be invalidated if the eslint rules have changed.

@peternewnham peternewnham changed the title Cache persists when eslint options have changed Cache persists when eslint rules have changed Nov 22, 2016
@MoOx
Copy link
Contributor

MoOx commented Nov 23, 2016

Indeed. What to make a PR for this?

@peternewnham
Copy link
Contributor Author

I started work on a fix last night. I'll submit a PR later today for initial review so you can check my solution isn't completely crazy.

@peternewnham
Copy link
Contributor Author

Resolved by #151

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants