Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
errror on estraverse-fb..
Browse files Browse the repository at this point in the history
  • Loading branch information
hzoo committed Mar 8, 2016
1 parent 9951c45 commit b85ab45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ function monkeypatch() {
try {
var esrecurseLoc = Module._resolveFilename("esrecurse", eslintMod);
estraverseRelative = createModule(esrecurseLoc);
} catch (err) {
throw new Error("babel-eslint isn't currently compatible with ESLint 2.3.x. The recommendation is to pin to ESLint 2.2.x right now.");
}
} catch (err) {}

// contains all the instances of estraverse so we can modify them if necessary
var estraverses = [];
Expand All @@ -62,7 +60,9 @@ function monkeypatch() {
var estraverseFb = eslintMod.require("estraverse-fb");
estraverses.push(estraverseFb);
assign(estraverseFb.VisitorKeys, t.VISITOR_KEYS);
} catch (err) {}
} catch (err) {
throw new Error("babel-eslint isn't currently compatible with ESLint 2.3.x. The recommendation is to pin to ESLint 2.2.x right now.");
}

// ESLint v1.9.0 uses estraverse directly to work around https://github.com/npm/npm/issues/9663
var estraverseOfEslint = eslintMod.require("estraverse");
Expand Down

0 comments on commit b85ab45

Please sign in to comment.