Skip to content

Bug: cache doesn't invalidate on plugin version upgrade #16284

@tdeo

Description

@tdeo

Environment

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?

@babel/eslint-parser

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: eslint/eslintrc#88

Metadata

Metadata

Assignees

Labels

acceptedThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionbugESLint is working incorrectlyrepro:neededThis issue should include a reproducible examplerepro:yesIssues with a reproducible example

Type

No type

Projects

Status

Complete

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions