diff options
author | Rich Trott <rtrott@gmail.com> | 2016-02-18 23:01:06 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-02-21 13:44:45 -0800 |
commit | db4e7528b0e7324016ebbfd936f2e4be53ba57e7 (patch) | |
tree | 47a2d765bf7193a8337171e888d6445b0185dbfb /test/parallel | |
parent | 97f76f3f04261a1b3b382dc1962c4b1e20c55b6a (diff) | |
download | node-new-db4e7528b0e7324016ebbfd936f2e4be53ba57e7.tar.gz |
tools: add Node.js-specific ESLint rules
Add these rules:
* no-restricted-modules: See
http://eslint.org/docs/rules/no-restricted-modules. It has been
configured to prohibit the use of the deprecated `sys` and `_linklist`
modules.
* no-new-require: See http://eslint.org/docs/rules/no-new-require
* no-mixed-requires: http://eslint.org/docs/rules/no-mixed-requires
PR-URL: https://github.com/nodejs/node/pull/5320
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test/parallel')
-rw-r--r-- | test/parallel/test-sys.js | 2 | ||||
-rw-r--r-- | test/parallel/test-timers-linked-list.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-sys.js b/test/parallel/test-sys.js index add692d736..3e28f02033 100644 --- a/test/parallel/test-sys.js +++ b/test/parallel/test-sys.js @@ -1,7 +1,7 @@ 'use strict'; require('../common'); var assert = require('assert'); -var sys = require('sys'); +var sys = require('sys'); // eslint-disable-line no-restricted-modules var util = require('util'); assert.strictEqual(sys, util); diff --git a/test/parallel/test-timers-linked-list.js b/test/parallel/test-timers-linked-list.js index c046a3024a..b5ff9f56bf 100644 --- a/test/parallel/test-timers-linked-list.js +++ b/test/parallel/test-timers-linked-list.js @@ -4,7 +4,7 @@ require('../common'); const assert = require('assert'); -const L = require('_linklist'); +const L = require('_linklist'); // eslint-disable-line no-restricted-modules const internalL = require('internal/linkedlist'); assert.strictEqual(L, internalL); |