Skip to content

[prefer-readonly-parameter-types] FR: Add an option to allow Readonly<> to satisfy the rule #4061

Closed
@marekdedic

Description

@marekdedic

Repro

See #2699 for an example of when this could be useful.

Rationale

I see this as a trade-off - turning such an option on would reduce the strictness of the rule (as far as I understand it, Readonly<> only guarantees shallow readonlyness, this rule checks for deep readonlyness), however, it would make it much easier to use in certain cases like #2699 or #2079.

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting responseIssues waiting for a reply from the OP or another partypackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions