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

Commit bba9d00

Browse files
Re-add parseNoPatch function (accidentally removed) (#557)
1 parent dbc6546 commit bba9d00

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

lib/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ exports.parseForESLint = function(code, options) {
1515
patched = true;
1616
return { ast: require("./parse-with-patch")(code, options) };
1717
};
18+
19+
exports.parseNoPatch = function(code, options) {
20+
return require("./parse")(code, options);
21+
};

test/babel-eslint.js

+9
Original file line numberDiff line numberDiff line change
@@ -531,3 +531,12 @@ describe("babylon-to-esprima", () => {
531531
});
532532
});
533533
});
534+
535+
describe("Public API", () => {
536+
it("exports a parseNoPatch function", () => {
537+
assertImplementsAST(
538+
espree.parse("foo"),
539+
babelEslint.parseNoPatch("foo", {})
540+
);
541+
});
542+
});

0 commit comments

Comments
 (0)