diff options
author | Sebastien Ahkrin <sebastien48criquet@gmail.com> | 2020-01-02 19:19:02 +0100 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-01-04 14:50:18 -0800 |
commit | c9b93e234454322ac0b7a6cd29d394f428f3e37d (patch) | |
tree | fc739fb9c295644e2857606f05dffbf4d3f8e992 /lib/.eslintrc.yaml | |
parent | 256c9a43f4b20214b9fb5448c9fb228ff2624058 (diff) | |
download | node-new-c9b93e234454322ac0b7a6cd29d394f428f3e37d.tar.gz |
lib: replace use of Error with primordials
PR-URL: https://github.com/nodejs/node/pull/31163
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@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 53545ba688..3f21aed716 100644 --- a/lib/.eslintrc.yaml +++ b/lib/.eslintrc.yaml @@ -15,6 +15,8 @@ rules: message: "Use `const { BigInt } = primordials;` instead of the global." - name: Boolean message: "Use `const { Boolean } = primordials;` instead of the global." + - name: Error + message: "Use `const { Error } = primordials;` instead of the global." - name: JSON message: "Use `const { JSON } = primordials;` instead of the global." - name: Math |