[prefer-readonly-parameter-types] False positive with Readonly<Element>
or Readonly<HTMLElement>
#2699
Closed
3 tasks done
Labels
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
working as intended
Issues that are closed as they are working as intended
Repro
Expected Result
I expect my function to pass linting.
Actual Result
My function fails linting by violating the
@typescript-eslint/prefer-readonly-parameter-types
rule. My IDE (Vim) statesError: Parameter should be a read only type
. Running the linter from the command line (eslint file.ts
) gives the same error.Additional Info
Versions
@typescript-eslint/eslint-plugin
4.5.0
@typescript-eslint/parser
4.5.0
TypeScript
4.0.3
ESLint
7.11.0
node
14.14.0
The text was updated successfully, but these errors were encountered: