Files
node/tools
Antoine du Hamel 26288ff25e tools: add ESLint rule no-array-destructuring
Iterating over arrays should be avoided because it relies on
user-mutable global methods (`Array.prototype[Symbol.iterator]`
and `%ArrayIteratorPrototype%.next`), we should instead use
other alternatives. This commit adds a rule that disallow
array destructuring syntax in favor of object destructuring syntax.
Note that you can ignore this rule if you are using
the array destructuring syntax over a safe iterable, or
actually want to iterate over a user-provided object.

PR-URL: https://github.com/nodejs/node/pull/36818
Reviewed-By: Rich Trott <rtrott@gmail.com>
2021-03-03 19:53:28 +01:00
..
2020-12-16 23:45:26 +01:00
2021-02-15 16:14:15 +01:00
2020-12-26 12:19:26 +01:00
2021-02-25 00:16:30 +01:00
2018-10-24 17:19:28 -04:00
2020-12-16 23:45:26 +01:00
2020-12-16 23:45:26 +01:00
2020-12-26 12:19:26 +01:00
2019-03-04 11:06:23 -08:00
2021-01-30 07:49:28 -08:00
2021-02-13 18:08:48 +01:00
2020-12-16 23:45:26 +01:00
2020-12-16 23:45:26 +01:00
2020-12-22 01:09:42 +00:00
2018-06-06 19:44:15 +02:00
2020-08-06 20:07:49 -07:00
2020-12-21 14:24:51 +01:00
2020-12-16 23:45:26 +01:00
2019-01-21 20:16:14 +01:00