summaryrefslogtreecommitdiff
path: root/lib/.eslintrc.yaml
diff options
context:
space:
mode:
authorMichaƫl Zasso <targos@protonmail.com>2019-03-31 13:30:12 +0200
committerZYSzys <zyszys98@gmail.com>2019-04-03 21:36:08 +0800
commit0817840f775032169ddd70c85ac059f18ffcc81c (patch)
treec34b2577637895064116a86b8a1d095d2d26e1a3 /lib/.eslintrc.yaml
parent8a6dcd040f35b023f0cc0208c4bc553fcc7e6a4d (diff)
downloadandroid-node-v8-0817840f775032169ddd70c85ac059f18ffcc81c.tar.gz
android-node-v8-0817840f775032169ddd70c85ac059f18ffcc81c.tar.bz2
android-node-v8-0817840f775032169ddd70c85ac059f18ffcc81c.zip
lib: force using primordials for JSON, Math and Reflect
Use the "no-restricted-globals" ESLint rule to lint for it. PR-URL: https://github.com/nodejs/node/pull/27027 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'lib/.eslintrc.yaml')
-rw-r--r--lib/.eslintrc.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/.eslintrc.yaml b/lib/.eslintrc.yaml
index 0e869e0958..029d7ad177 100644
--- a/lib/.eslintrc.yaml
+++ b/lib/.eslintrc.yaml
@@ -1,6 +1,7 @@
rules:
prefer-object-spread: error
no-buffer-constructor: error
+ no-restricted-globals: ["error", "JSON", "Math", "Reflect"]
no-restricted-syntax:
# Config copied from .eslintrc.js
- error