You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
prefer-method-signature Use a method signature instead of a property signature of function type.
Expected behavior
When using "inline typings" shouldn't suggest using method signature as it will cause some other lint to fail such as unused variable (parameter). Also generally when functions are passed as params are passed more as properties rather than methods (i might be wrong)
The text was updated successfully, but these errors were encountered:
That's a bug in that lint rule then. TypeScript's own --noUnusedParameters doesn't warn for that.
Should be fixed by #2235, which uses TypeScript's implementation now.
Bug Report
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
"Inline typings" e.g.
are currently also being linted
Expected behavior
When using "inline typings" shouldn't suggest using method signature as it will cause some other lint to fail such as unused variable (parameter). Also generally when functions are passed as params are passed more as properties rather than methods (i might be wrong)
The text was updated successfully, but these errors were encountered: