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

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 (#685), let's just drop the old monkeypatching behavior.

Closes #685, Closes #680
  • Loading branch information
existentialism authored and hzoo committed Sep 25, 2018
1 parent 6aa8b6f commit c333bd6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 447 deletions.
5 changes: 1 addition & 4 deletions 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 lib/parse-with-patch.js

This file was deleted.

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

This file was deleted.

Loading

0 comments on commit c333bd6

Please sign in to comment.