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
2020-04-05 20:43:20 +02:00
2018-08-25 17:09:59 +02:00
2020-10-06 08:27:10 +00:00
2020-03-20 17:21:50 -07:00
2021-02-15 16:14:15 +01:00
2021-03-03 19:53:28 +01:00
2020-12-26 12:19:26 +01:00
2021-02-25 00:16:30 +01:00
2020-04-30 06:17:32 +02:00
2020-11-20 13:11:21 +00:00
2021-03-03 12:42:26 -05:00
2021-02-08 04:26:22 -08:00
2018-10-24 17:19:28 -04:00
2020-12-16 23:45:26 +01:00
2021-02-05 20:18:47 +08:00
2021-02-25 00:16:26 +01:00
2019-05-09 21:41:05 -07:00
2018-06-11 20:09:28 +02:00
2020-10-13 01:37:01 +00:00
2020-08-07 08:43:19 -07:00
2019-08-26 21:31:08 -07:00
2020-12-05 21:15:18 -08:00
2020-12-16 23:45:26 +01:00
2020-12-25 04:28:35 -08:00
2019-07-02 06:08:03 +02:00
2019-07-02 06:08:03 +02:00
2019-07-02 06:08:03 +02:00
2019-04-13 20:33:06 -04:00
2019-07-01 22:07:42 -07:00
2019-09-23 12:06:47 -07:00
2020-07-29 09:42:36 +00:00
2020-12-27 06:30:31 -08: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-08 04:26:22 -08:00
2020-12-16 23:45:26 +01: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
2019-05-20 11:09:02 +02:00
2019-01-28 12:24:38 +01:00
2020-12-04 22:56:13 +00:00
2020-08-10 16:42:14 +02:00
2020-03-10 20:14:52 +11:00
2020-12-04 22:56:13 +00:00
2020-12-16 23:45:26 +01:00
2020-12-04 22:56:13 +00:00
2020-12-21 14:47:22 +01:00
2019-01-21 20:16:14 +01:00
2018-06-06 19:44:15 +02:00
2018-12-06 22:45:08 -08:00
2020-05-16 06:42:16 +02:00
2020-08-06 20:07:49 -07:00
2019-09-24 21:50:59 -07:00
2021-01-16 00:31:43 +01:00
2020-12-21 14:24:51 +01:00
2020-12-16 23:45:26 +01:00
2019-12-25 23:11:02 +01:00
2019-01-21 20:16:14 +01:00