diff --git a/docs/rules/no-magic-numbers.md b/docs/rules/no-magic-numbers.md index d0d6cdff96d8..92b8667a8f2d 100644 --- a/docs/rules/no-magic-numbers.md +++ b/docs/rules/no-magic-numbers.md @@ -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.