no-useless-constructor
)This rule extends the base eslint/no-useless-constructor
rule. It adds support for:
protected
/ private
(i.e. marking a constructor as non-public),public
constructors when there is no superclass,{ // note you must disable the base rule as it can report incorrect errors "no-useless-constructor": "off", "@typescript-eslint/no-useless-constructor": ["error"] }
See eslint/no-useless-constructor
options.
Taken with ❤️ from ESLint core