summaryrefslogtreecommitdiff
path: root/test/.eslintrc
diff options
context:
space:
mode:
authorRoman Reiss <me@silverwind.io>2015-06-11 19:08:25 +0200
committerRoman Reiss <me@silverwind.io>2015-06-11 20:27:35 +0200
commit6e4d30286d7305335b14762271a25f5dbc5c63c0 (patch)
treec47041787c2eb7284842104a2d8774e000787182 /test/.eslintrc
parentb5b8ff117c8581945d0c8c3a4b18d53f4b33b86f (diff)
downloadnode-new-6e4d30286d7305335b14762271a25f5dbc5c63c0.tar.gz
tools: enable/add additional eslint rules
Enables the following rules: - no-undef: Valuable rule to error on usage of undefined variables - require-buffer: Custom rule that forbids usage of the global Buffer inside lib/ because of REPL issues. PR-URL: https://github.com/nodejs/io.js/pull/1794 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'test/.eslintrc')
-rw-r--r--test/.eslintrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/.eslintrc b/test/.eslintrc
index d5d95584ea..608c62dff5 100644
--- a/test/.eslintrc
+++ b/test/.eslintrc
@@ -3,3 +3,10 @@
rules:
## allow unreachable code
no-unreachable: 0
+ ## allow undeclared variables
+ no-undef: 0
+ ## allow global Buffer usage
+ require-buffer: 0
+
+globals:
+ gc: false