Skip to content

Commit

Permalink
Drop old monkeypatching behavior (#689)
Browse files Browse the repository at this point in the history
An alternative to adding a direct dep on estraverse (babel/babel-eslint#685), let's just drop the old monkeypatching behavior.

Closes #685, Closes #680
  • Loading branch information
existentialism committed Sep 25, 2018
1 parent ba8f5a0 commit 0a049b9
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 447 deletions.
5 changes: 1 addition & 4 deletions eslint/babel-eslint-parser/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ exports.parseForESLint = function(code, options) {
options.allowImportExportEverywhere =
options.allowImportExportEverywhere || false;

if (options.eslintVisitorKeys && options.eslintScopeManager) {
return require("./parse-with-scope")(code, options);
}
return { ast: require("./parse-with-patch")(code, options) };
return require("./parse-with-scope")(code, options);
};

exports.parseNoPatch = function(code, options) {
Expand Down
9 changes: 0 additions & 9 deletions eslint/babel-eslint-parser/lib/parse-with-patch.js

This file was deleted.

374 changes: 0 additions & 374 deletions eslint/babel-eslint-parser/lib/patch-eslint-scope.js

This file was deleted.

Loading

0 comments on commit 0a049b9

Please sign in to comment.