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

Commit

Permalink
Fix: Remove throwing an error when estraverse-fb has not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Mar 12, 2016
1 parent 32848e5 commit c36c05f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function monkeypatch() {
estraverses.push(estraverseFb);
assign(estraverseFb.VisitorKeys, t.VISITOR_KEYS);
} 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.");
// Ignore: ESLint v2.3.0 does not have estraverse-fb
}

// ESLint v1.9.0 uses estraverse directly to work around https://github.com/npm/npm/issues/9663
Expand All @@ -77,6 +77,7 @@ function monkeypatch() {
escope.analyze = function (ast, opts) {
opts.ecmaVersion = 6;
opts.sourceType = "module";

var results = analyze.call(this, ast, opts);
return results;
};
Expand Down Expand Up @@ -350,8 +351,6 @@ function monkeypatch() {
};
}

exports.VisitorKeys = t.VISITOR_KEYS;

exports.parse = function (code, options) {
options = options || {};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"homepage": "https://github.com/babel/babel-eslint",
"devDependencies": {
"eslint": "~2.2.0",
"eslint": "^2.4.0",
"espree": "^3.0.0",
"mocha": "^2.3.3"
}
Expand Down

0 comments on commit c36c05f

Please sign in to comment.