Skip to content

Commit

Permalink
docs: Fix examples in unicode-bom (#17631)
Browse files Browse the repository at this point in the history
Fix examples in `unicode-bom` docs
  • Loading branch information
fasttime committed Oct 8, 2023
1 parent 000290c commit 1000187
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/src/rules/unicode-bom.md
Expand Up @@ -31,9 +31,10 @@ Example of **correct** code for this rule with the `"always"` option:
::: correct

```js
// U+FEFF at the beginning

/*eslint unicode-bom: ["error", "always"]*/

U+FEFF
var abc;
```

Expand Down Expand Up @@ -70,9 +71,10 @@ Example of **incorrect** code for this rule with the `"never"` option:
::: incorrect

```js
// U+FEFF at the beginning

/*eslint unicode-bom: ["error", "never"]*/

U+FEFF
var abc;
```

Expand Down

0 comments on commit 1000187

Please sign in to comment.