summaryrefslogtreecommitdiff
path: root/.eslintrc.yaml
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-07-01 21:51:22 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-07-04 20:23:53 +0300
commit5100cc6851e5513b9e11f7e6244436ba48c79f2b (patch)
tree99d9cddf1443774e3d205c18749f21e6fcc8e786 /.eslintrc.yaml
parent996a62e08af550c171caf8acf2137301dbbbbe29 (diff)
downloadnode-new-5100cc6851e5513b9e11f7e6244436ba48c79f2b.tar.gz
tools: use no-use-before-define ESLint rule
Also fix repl and url libs for the rule. PR-URL: https://github.com/nodejs/node/pull/14032 Refs: http://eslint.org/docs/rules/no-use-before-define Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r--.eslintrc.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index d8442ff3a1..9b0bb9261e 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -78,6 +78,9 @@ rules:
no-delete-var: 2
no-undef: 2
no-unused-vars: [2, {args: none}]
+ no-use-before-define: [2, {classes: true,
+ functions: false,
+ variables: false}]
# Node.js and CommonJS
# http://eslint.org/docs/rules/#nodejs-and-commonjs