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

Commit c333bd6

Browse files
existentialismhzoo
authored andcommitted
Drop old monkeypatching behavior (#689)
An alternative to adding a direct dep on estraverse (#685), let's just drop the old monkeypatching behavior. Closes #685, Closes #680
1 parent 6aa8b6f commit c333bd6

File tree

7 files changed

+7
-447
lines changed

7 files changed

+7
-447
lines changed

lib/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ exports.parseForESLint = function(code, options) {
1111
options.allowImportExportEverywhere =
1212
options.allowImportExportEverywhere || false;
1313

14-
if (options.eslintVisitorKeys && options.eslintScopeManager) {
15-
return require("./parse-with-scope")(code, options);
16-
}
17-
return { ast: require("./parse-with-patch")(code, options) };
14+
return require("./parse-with-scope")(code, options);
1815
};
1916

2017
exports.parseNoPatch = function(code, options) {

lib/parse-with-patch.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

lib/patch-eslint-scope.js

Lines changed: 0 additions & 374 deletions
This file was deleted.

0 commit comments

Comments
 (0)