mirror of https://github.com/lukechilds/node.git
Browse Source
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>process-exit-stdio-flushing
Rich Trott
9 years ago
3 changed files with 14 additions and 8 deletions
@ -1,7 +1,7 @@ |
|||||
'use strict'; |
'use strict'; |
||||
require('../common'); |
require('../common'); |
||||
var assert = require('assert'); |
var assert = require('assert'); |
||||
var sys = require('sys'); |
var sys = require('sys'); // eslint-disable-line no-restricted-modules
|
||||
var util = require('util'); |
var util = require('util'); |
||||
|
|
||||
assert.strictEqual(sys, util); |
assert.strictEqual(sys, util); |
||||
|
Loading…
Reference in new issue