just throw an error right now instead of it silently working but with bugs

This commit is contained in:
Henry Zhu 2016-03-08 10:57:22 -05:00
parent d75bd7b82c
commit 7fbf6111e3
2 changed files with 4 additions and 2 deletions

View File

@ -45,7 +45,9 @@ function monkeypatch() {
try { try {
var esrecurseLoc = Module._resolveFilename("esrecurse", eslintMod); var esrecurseLoc = Module._resolveFilename("esrecurse", eslintMod);
estraverseRelative = createModule(esrecurseLoc); estraverseRelative = createModule(esrecurseLoc);
} 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.");
}
// contains all the instances of estraverse so we can modify them if necessary // contains all the instances of estraverse so we can modify them if necessary
var estraverses = []; var estraverses = [];

View File

@ -33,7 +33,7 @@
}, },
"homepage": "https://github.com/babel/babel-eslint", "homepage": "https://github.com/babel/babel-eslint",
"devDependencies": { "devDependencies": {
"eslint": "^2.3.0", "eslint": "~2.2.0",
"espree": "^3.0.0", "espree": "^3.0.0",
"mocha": "^2.3.3" "mocha": "^2.3.3"
} }