From b398e0b9ff455e4e7d70f19d5ccea5819c21eb86 Mon Sep 17 00:00:00 2001 From: YeonJuan Date: Sun, 19 Apr 2020 00:25:55 +0900 Subject: [PATCH] Docs: add rule comment in prefer-rest-params doc (#13191) --- docs/rules/prefer-rest-params.md | 4 ++++ 1 file changed, 4 insertions(+) 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); }