From 8b216e04fb0dd0a1a4d3730ebe4b24780020b09c Mon Sep 17 00:00:00 2001 From: Brandon Yeager Date: Wed, 3 Jul 2019 13:40:14 -0500 Subject: [PATCH] Docs: Fix incorrect example comments for unicode-bom rule (fixes #11937) (#11938) * Docs: Fix incorrect example comments for unicode-bom rule (fixes #11937) * Docs: Add explicit default option in "never" examples (fixes #11937) --- docs/rules/unicode-bom.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/rules/unicode-bom.md b/docs/rules/unicode-bom.md index d97f4d4eaf0..bb9925204d4 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; ```