Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Fix incorrect example comments for unicode-bom rule (fixes #11937) #11938

Merged
merged 2 commits into from Jul 3, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Next

Docs: Fix incorrect example comments for unicode-bom rule (fixes #11937)

  • Loading branch information...
BrandonYeager committed Jul 3, 2019
commit ad946c7c9753bf670d75e734eb5b88119829871d
@@ -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,15 +43,15 @@ 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;
```

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;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.