diff options
author | Michaël Zasso <targos@protonmail.com> | 2019-11-23 10:09:05 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-11-27 19:29:01 +0100 |
commit | 141a6e34eed05577edf43ad085a74f330d0559cb (patch) | |
tree | 1d66ed917d299069b79d34abe1493d18dcb5e138 /lib/.eslintrc.yaml | |
parent | 5904dfcc9c70b79971ab09dacd711e5c13d7120c (diff) | |
download | node-new-141a6e34eed05577edf43ad085a74f330d0559cb.tar.gz |
lib: enforce use of Array from primordials
PR-URL: https://github.com/nodejs/node/pull/30635
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'lib/.eslintrc.yaml')
-rw-r--r-- | lib/.eslintrc.yaml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/.eslintrc.yaml b/lib/.eslintrc.yaml index f66e15e6d9..1b75d7e742 100644 --- a/lib/.eslintrc.yaml +++ b/lib/.eslintrc.yaml @@ -9,6 +9,8 @@ rules: - groups: [[ "&&", "||" ]] no-restricted-globals: - error + - name: Array + message: "Use `const { Array } = primordials;` instead of the global." - name: JSON message: "Use `const { JSON } = primordials;` instead of the global." - name: Math |