Skip to content

Commit

Permalink
docs: update previous code
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanujkanti4441 committed Nov 26, 2023
1 parent 530293d commit 9f6e722
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/src/rules/capitalized-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,12 @@ Examples of **correct** code with `ignoreConsecutiveComments` set to `true`:
```js
/* eslint capitalized-comments: ["error", "always", { "ignoreConsecutiveComments": true }] */

foo();
// This comment is valid since it has the correct capitalization.
// this comment is ignored since it follows another comment,
// and this one as well because it follows yet another comment.

bar();
/* Here is a block comment which has the correct capitalization, */
/* but this one is ignored due to being consecutive; */
/*
Expand Down
4 changes: 2 additions & 2 deletions docs/src/rules/max-lines-per-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ is equivalent to

### code

Examples of **incorrect** code for this rule with a perticular max value:
Examples of **incorrect** code for this rule with a particular max value:

::: incorrect

Expand Down Expand Up @@ -110,7 +110,7 @@ function foo() {

:::

Examples of **correct** code for this rule with a perticular max value:
Examples of **correct** code for this rule with a particular max value:

::: correct

Expand Down
2 changes: 1 addition & 1 deletion docs/src/rules/no-eval.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ var obj = { x: "foo" },

Examples of **correct** code for this rule with the `{"allowIndirect": true}` option:

::: correct
::: correct { "sourceType": "script" }

```js
/*eslint no-eval: ["error", {"allowIndirect": true} ]*/
Expand Down
2 changes: 2 additions & 0 deletions docs/src/rules/no-unused-expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ Examples of **correct** code for the default `{ "allowShortCircuit": false, "all

{} // In this context, this is a block statement, not an object literal

{ myLabel: foo() } // In this context, this is a block statement with a label and expression, not an object literal

function namedFunctionDeclaration () {}

(function aGenuineIIFE () {}());
Expand Down

0 comments on commit 9f6e722

Please sign in to comment.