Closed o-nix closed 5 years ago
Thank you for this report.
That syntax doesn't exist in JavaScript, so the no-useless-constructor
rule, one of ESLint core rule that verifies JavaScript, cannot realize the syntax.
Please open issue on eslint-plugin-typescript
to request a rule to check it for TypeScript.
....Hm, https://github.com/nzakas/eslint-plugin-typescript/issues/101 looks like the one.
Oh, thank you for clarification!
What version of TypeScript are you using?
3.1.6
What version of
typescript-eslint-parser
are you using?5.8.0 +
standardjs
config.What code were you trying to parse?
What did you expect to happen?
Should be valid code.
What happened?
It currently triggers
no-useless-constructor
.https://www.typescriptlang.org/docs/handbook/classes.html#parameter-properties
So this shouldn't be invalid.