Skip to content

Commit

Permalink
add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Dec 22, 2023
1 parent 7476cd9 commit 4458a1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/rules/no-implicit-coercion.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ Examples of **incorrect** code for the default `{ "number": true }` option:
/*eslint no-implicit-coercion: "error"*/

var n = +foo;
var n = -(-foo);
var n = foo - 0;
var n = 1 * foo;
```

Expand Down

0 comments on commit 4458a1c

Please sign in to comment.