diff --git a/docs/rules/prefer-rest-params.md b/docs/rules/prefer-rest-params.md index 6930b4fa75b..c67e744cc59 100644 --- a/docs/rules/prefer-rest-params.md +++ b/docs/rules/prefer-rest-params.md @@ -14,6 +14,8 @@ This rule is aimed to flag usage of `arguments` variables. Examples of **incorrect** code for this rule: ```js +/*eslint prefer-rest-params: "error"*/ + function foo() { console.log(arguments); } @@ -32,6 +34,8 @@ function foo(action) { Examples of **correct** code for this rule: ```js +/*eslint prefer-rest-params: "error"*/ + function foo(...args) { console.log(args); }