Skip to content

Commit

Permalink
Drop old monkeypatching behavior (babel/babel-eslint#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 babel/babel-eslint#685, Closes babel/babel-eslint#680
  • Loading branch information
existentialism committed Sep 25, 2018
1 parent dae75e1 commit 990ea0f
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.

0 comments on commit 990ea0f

Please sign in to comment.