From 4dd19a3c4c037adc860a65e96f2ba3eeccace1de Mon Sep 17 00:00:00 2001 From: Klaus Meinhardt Date: Wed, 6 Feb 2019 09:12:18 +0100 Subject: [PATCH] Docs: mention 'prefer-spread' in docs of 'no-useless-call' (#11348) --- docs/rules/no-useless-call.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/rules/no-useless-call.md b/docs/rules/no-useless-call.md index 0356c127050..196cc6df36a 100644 --- a/docs/rules/no-useless-call.md +++ b/docs/rules/no-useless-call.md @@ -37,6 +37,7 @@ obj.foo.call(otherObj, 1, 2, 3); obj.foo.apply(otherObj, [1, 2, 3]); // The argument list is variadic. +// Those are warned by the `prefer-spread` rule. foo.apply(undefined, args); foo.apply(null, args); obj.foo.apply(obj, args); @@ -66,3 +67,7 @@ a[++i].foo.call(a[i], 1, 2, 3); ## When Not To Use It If you don't want to be notified about unnecessary `.call()` and `.apply()`, you can safely disable this rule. + +## Related Rules + +* [prefer-spread](prefer-spread.md)