[prefer-readonly-parameter-types] Emits an error on a recursive type #1665
Labels
bug
Something isn't working
has pr
there is a PR raised to close this
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
Being checked without any exception.
Actual Result
Emitting an error like the following.
Additional Info
It looks like there is no recursiveness checking in
isTypeReadonly
function.Versions
@typescript-eslint/eslint-plugin
2.22.0
@typescript-eslint/parser
2.22.0
TypeScript
3.8.3
ESLint
6.8.0
node
12.16.0
npm
6.13.7
The text was updated successfully, but these errors were encountered: