node/tools/node_modules/babel-eslint/lib/parse-with-patch.js
Michaël Zasso b043a70201 tools: add babel-eslint
Create tools/update-babel-eslint.sh script and execute it to do the
first installation of the package.
Update tools/license-builder.sh and execute it to add babel-eslint's
license to our LICENSE file.

PR-URL: https://github.com/nodejs/node/pull/17820
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2018-01-11 09:50:47 +01:00

9 lines
200 B
JavaScript

"use strict";
var parse = require("./parse");
var patchEscope = require("./patch-eslint-scope");
module.exports = function(code, options) {
patchEscope(options);
return parse(code, options);
};