Skip to content

Mutable prefix for indexer interfaces #75

Description

@jonaskello

There is an escape hatch for mutable members of an interface by prefixing them. However this is not useful for indexer interfaces. So I propose to extend the prefix to apply to the interface name too. If the interface name starts with something that is in the ignore-prefix option then ignore it. This would mean that with this config:

"readonly-keyword": [true, {"ignore-prefix": "Mutable"}]

No member of this interface would not be checked:

interface MutableFoo {
  [key: string]: string;
  bar: number
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions