This rule effects failures if unbound methods are passed as callbacks.
Examples of incorrect code for this rule:
return this.http
.get<Something>("https://api.some.com/things/1")
.pipe(
map(this.extractSomeProperty),
catchError(this.handleError)
);
Examples of correct code for this rule:
return this.http
.get<Something>("https://api.some.com/things/1")
.pipe(
map((s) => this.extractSomeProperty(s)),
catchError((e) => this.handleError(e))
);
return this.http
.get<Something>("https://api.some.com/things/1")
.pipe(
map(this.extractSomeProperty.bind(this)),
catchError(this.handleError.bind(this))
);
This rule has no options.