no-useless-constructor
Disallow unnecessary constructors.
🔒
Extending "plugin:@typescript-eslint/strict"
in an ESLint configuration enables this rule.
This rule extends the base eslint/no-useless-constructor
rule.
It adds support for:
- constructors marked as
protected
/private
(i.e. marking a constructor as non-public), public
constructors when there is no superclass,- constructors with only parameter properties.