Skip to content

Commit 1000187

Browse files
authored
docs: Fix examples in unicode-bom (#17631)
Fix examples in `unicode-bom` docs
1 parent 000290c commit 1000187

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/src/rules/unicode-bom.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ Example of **correct** code for this rule with the `"always"` option:
3131
::: correct
3232

3333
```js
34+
// U+FEFF at the beginning
35+
3436
/*eslint unicode-bom: ["error", "always"]*/
3537

36-
U+FEFF
3738
var abc;
3839
```
3940

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

7273
```js
74+
// U+FEFF at the beginning
75+
7376
/*eslint unicode-bom: ["error", "never"]*/
7477

75-
U+FEFF
7678
var abc;
7779
```
7880

0 commit comments

Comments
 (0)