Bug: cache doesn't invalidate on plugin version upgrade
See original GitHub issueEnvironment
Node version: v16.15.1 npm version: N/A - using yarn Local ESLint version: 8.23.0 Global ESLint version: no global eslint installed Operating System: MacOS 12.5.1
What parser are you using?
What did you do?
I upgraded eslint-plugin-react from 7.37.1 to 7.37.7.
Due to new rules addition and the cache for the former version still being used, offenses for those new rules weren’t being reported.
My code contains the following:
const Componnent = () => {
return <table>
<thead>
<th align="center">title</th>
</thead>
</table>
}
What did you expect to happen?
Offenses to be reported
What actually happened?
Nothing was reported
Participation
- I am willing to submit a pull request for this issue.
Additional comments
Should be fixed by this PR: https://github.com/eslint/eslintrc/pull/88
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Page Cache Purge Bug
Hi, To my understanding, page caches should NEVER be invalidated unless a purge policy is set or it is manually purged. However, this...
Read more >Gradle build fails to recover from invalid cached library ...
I suspect the bug occurs because you upgrade your project from an older version of Android Studio/Android Gradle plugin/Gradle, then delete the AAR...
Read more >WordPress Changes Not Showing? Here's How to Fix the ...
Having issues with WordPress changes not showing on your site? It's usually problems with caching - we'll show you how to fix the...
Read more >Where could IntellijIDEA cache maven dependencies?
In the Invalidate Caches dialog, Click Invalidate and Restart . If you click Just restart , cache files won't be deleted. After the...
Read more >How to clear Confluence plugins cache
To clear the Confluence plugins cache when it gets out of sync or ... (in recent Confluence versions, you may not see this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think the only way we can guarantee this with the new config system is to ask plugin authors to include a
version
field in their plugin object, as we no longer know thepackage.json
to read to get this info with the new config system.No. What you’re looking at is the code that loads the plugins from the command line
--plugin
flag. That is not the standard way to load plugins. Please read the documentation for the new config system: https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new