Skip to content

Commit

Permalink
Add ESLint-readable package name (#15465)
Browse files Browse the repository at this point in the history
* Add ESLint-readable package name

* Update eslint/babel-eslint-parser/src/index.cjs

* Also add version

---------

Co-authored-by: Nicol貌 Ribaudo <nicolo.ribaudo@gmail.com>
  • Loading branch information
nzakas and nicolo-ribaudo committed Mar 1, 2023
1 parent c38bf12 commit 3b836c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions eslint/babel-eslint-parser/src/index.cjs
Expand Up @@ -5,6 +5,11 @@ const baseParse = require("./parse.cjs");
const { LocalClient, WorkerClient } = require("./client.cjs");
const client = new (USE_ESM ? WorkerClient : LocalClient)();

exports.meta = {
name: PACKAGE_JSON.name,
version: PACKAGE_JSON.version,
};

exports.parse = function (code, options = {}) {
return baseParse(code, normalizeESLintConfig(options), client);
};
Expand Down

0 comments on commit 3b836c4

Please sign in to comment.