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
..
actions tools: lint shell scripts 2020-12-16 23:45:26 +01:00
bootstrap tools: update Boxstarter script and document 2020-04-05 20:43:20 +02:00
clang-format
code_cache tools: add missing uv_setup_argv() calls 2020-10-06 08:27:10 +00:00
configure.d deps: minor ICU fixes: maint docs/tool, downloader 2020-03-20 17:21:50 -07:00
doc doc: optimize HTML rendering 2021-02-15 16:14:15 +01:00
eslint-rules tools: add ESLint rule no-array-destructuring 2021-03-03 19:53:28 +01:00
gyp tools: update gyp-next to v0.7.0 2020-12-26 12:19:26 +01:00
icu deps: bump minimum ICU version to 68 2021-02-25 00:16:30 +01:00
inspector_protocol tools: fix redundant-move warning in inspector 2020-04-30 06:17:32 +02:00
macos-installer
msvs win,build,tools: support VS prerelease 2020-11-20 13:11:21 +00:00
node-lint-md-cli-rollup tools: bump remark-present-lint-node from 2.0.0 to 2.0.1 2021-02-08 04:26:22 -08:00
node_modules tools: update eslint-plugin-markdown configuration 2021-03-03 12:42:26 -05:00
pip
rpm tools: lint shell scripts 2020-12-16 23:45:26 +01:00
snapshot src: put (de)serialization code into node_snapshotable.h/cc 2021-02-05 20:18:47 +08:00
v8_gypfiles tools: update V8 gypfiles for 8.9 2021-02-25 00:16:26 +01:00
.eslintrc.yaml tools: enable camelcase linting in tools 2019-05-09 21:41:05 -07:00
build-addons.js
certdata.txt crypto: update certdata to NSS 3.56 2020-10-13 01:37:01 +00:00
checkimports.py tools: fix C++ import checker argument expansion 2020-08-07 08:43:19 -07:00
compress_json.py tools: fix Python 3 issues in inspector_protocol 2019-08-26 21:31:08 -07:00
cpplint.py tools: refloat 7 Node.js patches to cpplint.py 2020-12-05 21:15:18 -08:00
create_android_makefiles
create_expfile.sh tools: lint shell scripts 2020-12-16 23:45:26 +01:00
genv8constants.py tools: correct usage message for genv8constants.py 2020-12-25 04:28:35 -08:00
getarch.py tools: move python code out of jenkins shell 2019-07-02 06:08:03 +02:00
getendian.py tools: move python code out of jenkins shell 2019-07-02 06:08:03 +02:00
getmachine.py tools: move python code out of jenkins shell 2019-07-02 06:08:03 +02:00
getmoduleversion.py
getnapibuildversion.py build: expose napi_build_version variable 2019-07-01 22:07:42 -07:00
getnodeversion.py tools: cleanup getnodeversion.py for readability 2019-09-23 12:06:47 -07:00
gyp_node.py build: toolchain.gypi and node_gyp.py cleanup 2020-07-29 09:42:36 +00:00
install.py tools: revise install.py for minor improvements 2020-12-27 06:30:31 -08:00
js2c.py tools: update gyp-next to v0.7.0 2020-12-26 12:19:26 +01:00
license-builder.sh quic: remove quic 2021-01-30 07:49:28 -08:00
license2rtf.js
lint-md.js tools: bump remark-present-lint-node from 2.0.0 to 2.0.1 2021-02-08 04:26:22 -08:00
lint-pr-commit-message.sh tools: lint shell scripts 2020-12-16 23:45:26 +01:00
lint-pr-url.mjs tools: fix lint-pr-url message 2021-02-13 18:08:48 +01:00
lint-sh.js tools: lint shell scripts 2020-12-16 23:45:26 +01:00
lsan_suppressions.txt
macos-firewall.sh tools: lint shell scripts 2020-12-16 23:45:26 +01:00
make-v8.sh tools: fix make-v8.sh 2020-12-22 01:09:42 +00:00
mk-ca-bundle.pl tls: expose built-in root certificates 2019-05-20 11:09:02 +02:00
mkssldef.py
osx-codesign.sh tools: remove bashisms from macOS release scripts 2020-12-04 22:56:13 +00:00
osx-entitlements.plist tools: add debug entitlements for macOS 10.15+ 2020-08-10 16:42:14 +02:00
osx-gon-config.json.tmpl build: macOS package notarization 2020-03-10 20:14:52 +11:00
osx-notarize.sh tools: remove bashisms from macOS release scripts 2020-12-04 22:56:13 +00:00
osx-pkg-postinstall.sh tools: lint shell scripts 2020-12-16 23:45:26 +01:00
osx-productsign.sh tools: remove bashisms from macOS release scripts 2020-12-04 22:56:13 +00:00
release.sh tools: fix release script sign function 2020-12-21 14:47:22 +01:00
run-valgrind.py
run-worker.js
sign.bat
specialize_node_d.py
test-npm-package.js tools: enable no-else-return lint rule 2020-05-16 06:42:16 +02:00
test-v8.bat
test.py test: add Actions annotation output 2020-08-06 20:07:49 -07:00
update-authors.js tools: make mailmap processing for author list case-insensitive 2019-09-24 21:50:59 -07:00
update-babel-eslint.sh tools: add support for top-level await syntax in linter 2021-01-16 00:31:43 +01:00
update-eslint.sh tools: fix update-eslint.sh 2020-12-21 14:24:51 +01:00
update-npm.sh tools: lint shell scripts 2020-12-16 23:45:26 +01:00
utils.py test: skip the unsupported test cases for IBM i 2019-12-25 23:11:02 +01:00
valgrind.supp