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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy