Skip to content

[no-this-alias] incorrect report for destructuring #759

Closed
@bradzacher

Description

@bradzacher

Repro

{
  "rules": {
    "@typescript-eslint/no-this-alias": ["error"]
  }
}
class Foo {
  prop: string = '';
  meth() {
    const {prop} = this;
  }
}

Expected Result
no reports

Actual Result
reports on the desctructuring

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas prthere is a PR raised to close thispackage: 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