Skip to content

[no-useless-constructor] ignores parameter properties #334

@texastoland

Description

@texastoland

Repro

{
  "rules": {
    "@typescript/no-useless-constructor": "error"
  }
}
class C {
  constructor(readonly x) {}
}

Expected Result

No error.

Actual Result

Useless constructor.eslint(no-useless-constructor)

Additional Info

#167 @armano2

Versions

package version
@typescript-eslint/eslint-plugin 1.2.0
@typescript-eslint/parser 1.4.2
TypeScript 3.3.3333
ESLint 5.15.1
node 6.7.0
npm 11.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting responseIssues waiting for a reply from the OP or another partybugSomething isn't workingpackage: 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