Bug: [@typescript-eslint/prefer-readonly-parameter-types] gives error "Cannot read properties of undefined (reading 'checkFlags')" #11289
Labels
bug
Something isn't working
external
This issue is with another package, not typescript-eslint itself
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
triage
Waiting for team members to take a look
Before You File a Bug Report Please Confirm You Have Done The Following...
Issue Description
When I have a dependency on
"@types/jest": "^29.5.14",
then I get the following error:
If I remove this dependency then I don't get the error.
Specifically in my jest test file it doesn't seem to like parameters in my describe calls.
I'm not sure if the
@typescript-eslint/prefer-readonly-parameter-types
rule has a bug or there is a conflict or what. But it took me forever to reduce my project down to this super small reproduction steps.Reproduction Repository Link
https://github.com/stephen-carter-at-sf/typescript_eslint_bug
Repro Steps
npm install
npx eslint test/dummy.test.ts
Versions
The text was updated successfully, but these errors were encountered: