From 1a716943bc95a4fecb69e98156cdd058968d8b49 Mon Sep 17 00:00:00 2001 From: Henry Zhu Date: Fri, 1 May 2015 14:08:47 -0400 Subject: [PATCH] remove old references to jshint --- Makefile | 1 - src/babel/api/register/node.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9278a21532..cad9437b25 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,6 @@ BROWSERIFY_CMD = node_modules/browserify/bin/cmd.js ISTANBUL_CMD = node_modules/istanbul/lib/cli.js cover UGLIFY_CMD = node_modules/uglify-js/bin/uglifyjs #UGLIFY_CMD = node_modules/uglify-js/bin/uglifyjs --mangle sort -JSHINT_CMD = node_modules/jshint/bin/jshint MOCHA_CMD = node_modules/mocha/bin/_mocha BABEL_CMD = node_modules/babel/bin/babel diff --git a/src/babel/api/register/node.js b/src/babel/api/register/node.js index 3f375c5a93..340cfb2a0d 100644 --- a/src/babel/api/register/node.js +++ b/src/babel/api/register/node.js @@ -87,7 +87,7 @@ var shouldIgnore = function (filename) { var istanbulMonkey = {}; -if (process.env.running_under_istanbul) { // jshint ignore:line +if (process.env.running_under_istanbul) { // we need to monkey patch fs.readFileSync so we can hook into // what istanbul gets, it's extremely dirty but it's the only way var _readFileSync = fs.readFileSync; @@ -117,7 +117,7 @@ var registerExtension = function (ext) { var old = oldHandlers[ext] || oldHandlers[".js"]; var loader = normalLoader; - if (process.env.running_under_istanbul) loader = istanbulLoader; // jshint ignore:line + if (process.env.running_under_istanbul) loader = istanbulLoader; require.extensions[ext] = function (m, filename) { if (shouldIgnore(filename)) {