Skip to content

Commit

Permalink
fix(docs): silence undeclared variable warnings in unrelated example
Browse files Browse the repository at this point in the history
  • Loading branch information
strager committed Mar 16, 2024
1 parent 92aaa74 commit 68bd5cb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/errors/E0720.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# E0720: function 'let' call may be confused for destructuring; remove parentheses to declare a variable

```config-for-examples
{
"globals": {
"let": true,
"first": true
}
}
```

In JavaScript, variables can be named `let` and interpreted as a function
call if it is followed by parentheses. This code calls function `let`
instead of destructuring an object:
Expand Down

0 comments on commit 68bd5cb

Please sign in to comment.