From ad946c7c9753bf670d75e734eb5b88119829871d Mon Sep 17 00:00:00 2001 From: Brandon Yeager Date: Wed, 3 Jul 2019 11:39:04 -0500 Subject: [PATCH] Docs: Fix incorrect example comments for unicode-bom rule (fixes #11937) --- docs/rules/unicode-bom.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/rules/unicode-bom.md b/docs/rules/unicode-bom.md index d97f4d4eaf0..cf7b87b8851 100644 --- a/docs/rules/unicode-bom.md +++ b/docs/rules/unicode-bom.md @@ -24,7 +24,7 @@ This rule has a string option: Example of **correct** code for this rule with the `"always"` option: ```js -/*eslint unicode-bom: "error"*/ +/*eslint unicode-bom: ["error", "always"]*/ U+FEFF var abc; @@ -33,7 +33,7 @@ var abc; Example of **incorrect** code for this rule with the `"always"` option: ```js -/*eslint unicode-bom: "error"*/ +/*eslint unicode-bom: ["error", "always"]*/ var abc; ``` @@ -43,7 +43,7 @@ var abc; Example of **correct** code for this rule with the default `"never"` option: ```js -/*eslint unicode-bom: ["error", "never"]*/ +/*eslint unicode-bom: "error"*/ var abc; ``` @@ -51,7 +51,7 @@ var abc; Example of **incorrect** code for this rule with the `"never"` option: ```js -/*eslint unicode-bom: ["error", "never"]*/ +/*eslint unicode-bom: "error"*/ U+FEFF var abc;