Skip to content

Commit

Permalink
Docs: add no-magic-numbers array destructuring example
Browse files Browse the repository at this point in the history
  • Loading branch information
moeriki committed Jun 26, 2020
1 parent 47a92cd commit 7276334
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/rules/no-magic-numbers.md
Expand Up @@ -142,6 +142,11 @@ const { tax = 0.25 } = accountancy;
function mapParallel(concurrency = 3) { /***/ }
```

```js
let head;
[head = 100] = []
```

### enforceConst

A boolean to specify if we should check for the const keyword in variable declaration of numbers. `false` by default.
Expand Down

0 comments on commit 7276334

Please sign in to comment.