diff --git a/eslint/babel-eslint-parser/index.js b/eslint/babel-eslint-parser/index.js index 76073ea325..c9e7bc4df9 100644 --- a/eslint/babel-eslint-parser/index.js +++ b/eslint/babel-eslint-parser/index.js @@ -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 @@ -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; }; @@ -350,8 +351,6 @@ function monkeypatch() { }; } -exports.VisitorKeys = t.VISITOR_KEYS; - exports.parse = function (code, options) { options = options || {}; diff --git a/eslint/babel-eslint-parser/package.json b/eslint/babel-eslint-parser/package.json index a0ea3e2ea1..e3642d0be3 100644 --- a/eslint/babel-eslint-parser/package.json +++ b/eslint/babel-eslint-parser/package.json @@ -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" }