{
  "manifest": {
    "name": "@babel/eslint-parser",
    "version": "7.24.1",
    "description": "ESLint parser that allows for linting of experimental syntax transformed by Babel",
    "author": {
      "name": "The Babel Team",
      "url": "https://babel.dev/team"
    },
    "license": "MIT",
    "repository": {
      "type": "git",
      "url": "https://github.com/babel/babel.git",
      "directory": "eslint/babel-eslint-parser"
    },
    "publishConfig": {
      "access": "public"
    },
    "bugs": {
      "url": "https://github.com/babel/babel/issues"
    },
    "homepage": "https://babel.dev/",
    "engines": {
      "node": "^10.13.0 || ^12.13.0 || >=14.0.0"
    },
    "main": "./lib/index.cjs",
    "type": "commonjs",
    "exports": {
      ".": "./lib/index.cjs",
      "./experimental-worker": "./lib/experimental-worker.cjs",
      "./package.json": "./package.json"
    },
    "peerDependencies": {
      "@babel/core": "^7.11.0",
      "eslint": "^7.5.0 || ^8.0.0"
    },
    "dependencies": {
      "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1",
      "eslint-visitor-keys": "^2.1.0",
      "semver": "^6.3.1"
    },
    "devDependencies": {
      "@babel/core": "^7.24.1",
      "@types/eslint": "^8.56.2",
      "@types/estree": "^1.0.5",
      "@typescript-eslint/scope-manager": "^6.19.0",
      "dedent": "^0.7.0",
      "eslint": "^8.22.0"
    },
    "_registry": "npm",
    "_loc": "/homez.1033/heliovt/.cache/yarn/v6/npm-@babel-eslint-parser-7.24.1-e27eee93ed1d271637165ef3a86e2b9332395c32-integrity/node_modules/@babel/eslint-parser/package.json",
    "readmeFilename": "README.md",
    "readme": "# @babel/eslint-parser [![npm](https://img.shields.io/npm/v/@babel/eslint-parser.svg)](https://www.npmjs.com/package/@babel/eslint-parser) [![travis](https://img.shields.io/travis/babel/@babel/eslint-parser/main.svg)](https://travis-ci.org/babel/@babel/eslint-parser) [![npm-downloads](https://img.shields.io/npm/dm/@babel/eslint-parser.svg)](https://www.npmjs.com/package/@babel/eslint-parser)\n\n**@babel/eslint-parser** allows you to lint **ALL** valid Babel code with the fantastic\n[ESLint](https://github.com/eslint/eslint).\n\n## When should I use @babel/eslint-parser?\n\nESLint's default parser and core rules [only support the latest final ECMAScript standard](https://github.com/eslint/eslint/blob/a675c89573836adaf108a932696b061946abf1e6/README.md#what-about-experimental-features) and do not support experimental (such as new features) and non-standard (such as Flow or TypeScript types) syntax provided by Babel. @babel/eslint-parser is a parser that allows ESLint to run on source code that is transformed by Babel.\n\n**Note:** You only need to use @babel/eslint-parser if you are using Babel to transform your code. If this is not the case, please use the relevant parser for your chosen flavor of ECMAScript (note that the default parser supports all non-experimental syntax as well as JSX).\n\n## How does it work?\n\nESLint allows for the use of [custom parsers](https://eslint.org/docs/developer-guide/working-with-custom-parsers). When using this plugin, your code is parsed by Babel's parser (using the configuration specified in your [Babel configuration file](https://babeljs.io/docs/en/configuration)) and the resulting AST is\ntransformed into an [ESTree](https://github.com/estree/estree)-compliant structure that ESLint can understand. All location info such as line numbers,\ncolumns is also retained so you can track down errors with ease.\n\n**Note:** ESLint's core rules do not support experimental syntax and may therefore not work as expected when using `@babel/eslint-parser`. Please use the companion [`@babel/eslint-plugin`](https://github.com/babel/babel/tree/main/eslint/babel-eslint-plugin) plugin for core rules that you have issues with.\n\n## Usage\n\n### Installation\n\n```sh\n$ npm install eslint @babel/core @babel/eslint-parser --save-dev\n# or\n$ yarn add eslint @babel/core @babel/eslint-parser -D\n```\n\n**Note:** @babel/eslint-parser requires `@babel/core@>=7.2.0` and a valid Babel configuration file to run. If you do not have this already set up, please see the [Babel Usage Guide](https://babeljs.io/docs/en/usage).\n\n### Setup\n\nTo use @babel/eslint-parser, `\"@babel/eslint-parser\"` must be specified as the `parser` in your ESLint configuration file (see [here](https://eslint.org/docs/latest/use/configure/parser) for more detailed information).\n\n**.eslintrc.js**\n\n```js\nmodule.exports = {\n  parser: \"@babel/eslint-parser\",\n};\n```\n\nWith the parser set, your configuration can be configured as described in the [Configuring ESLint](https://eslint.org/docs/user-guide/configuring) documentation.\n\n**Note:** The `parserOptions` described in the [official documentation](https://eslint.org/docs/user-guide/configuring/language-options#specifying-parser-options) are for the default parser and are not necessarily supported by @babel/eslint-parser. Please see the section directly below for supported `parserOptions`.\n\n### Additional parser configuration\n\nAdditional configuration options can be set in your ESLint configuration under the `parserOptions` key. Please note that the `ecmaFeatures` config property may still be required for ESLint to work properly with features not in ECMAScript 5 by default.\n\n- `requireConfigFile` (default `true`) can be set to `false` to allow @babel/eslint-parser to run on files that do not have a Babel configuration associated with them. This can be useful for linting files that are not transformed by Babel (such as tooling configuration files), though we recommend using the default parser via [glob-based configuration](https://eslint.org/docs/user-guide/configuring/configuration-files#configuration-based-on-glob-patterns).\n  Note: When `requireConfigFile` is `false`, @babel/eslint-parser will still try to load the root babel config. If no configuration file is found, @babel/eslint-parser will not parse any experimental syntax. Though not recommended, if you have a babel config, but would like to prevent @babel/eslint-parser from loading Babel config, please specify\n  **.eslintrc.js**\n\n```js\nmodule.exports = {\n  parser: \"@babel/eslint-parser\",\n  parserOptions: {\n    requireConfigFile: false,\n    babelOptions: {\n      babelrc: false,\n      configFile: false,\n      // your babel options\n      presets: [\"@babel/preset-env\"],\n    },\n  },\n};\n```\n\n- `sourceType` can be set to `\"module\"`(default) or `\"script\"` if your code isn't using ECMAScript modules.\n<!-- TODO(Babel 8): Remove this -->\n- `allowImportExportEverywhere` (default `false`) can be set to `true` to allow import and export declarations to appear anywhere a statement is allowed if your build environment supports that. Otherwise import and export declarations can only appear at a program's top level.\n- `ecmaFeatures.globalReturn` (default `false`) allow return statements in the global scope when used with `sourceType: \"script\"`.\n- `babelOptions` is an object containing Babel configuration [options](https://babeljs.io/docs/en/options) that are passed to Babel's parser at runtime. For cases where users might not want to use a Babel configuration file or are running Babel through another tool (such as Webpack with `babel-loader`).\n\n**.eslintrc.js**\n\n```js\nmodule.exports = {\n  parser: \"@babel/eslint-parser\",\n  parserOptions: {\n    sourceType: \"module\",\n    allowImportExportEverywhere: false,\n    ecmaFeatures: {\n      globalReturn: false,\n    },\n    babelOptions: {\n      configFile: \"path/to/config.js\",\n    },\n  },\n};\n```\n\n**.eslintrc.js using glob-based configuration**\n\nThis configuration would use the default parser for all files except for those found by the `\"files/transformed/by/babel/*.js\"` glob.\n\n```js\nmodule.exports = {\n  rules: {\n    indent: \"error\",\n  },\n  overrides: [\n    {\n      files: [\"files/transformed/by/babel/*.js\"],\n      parser: \"@babel/eslint-parser\",\n    },\n  ],\n};\n```\n\n**Monorepo configuration**\n\nThis configuration is useful for monorepo, when you are running ESLint on every package and not from the monorepo root folder, as it avoids to repeat the Babel and ESLint configuration on every package.\n\n```js\nmodule.exports = {\n  parser: \"@babel/eslint-parser\",\n  parserOptions: {\n    babelOptions: {\n      rootMode: \"upward\",\n    },\n  },\n};\n```\n\n### Run\n\n```sh\n$ ./node_modules/.bin/eslint yourfile.js\n```\n\n## TypeScript\n\nWhile [`@babel/eslint-parser`](https://github.com/babel/babel/tree/main/eslint/babel-eslint-parser) can parse TypeScript, we don't currently support linting TypeScript using the rules in [`@babel/eslint-plugin`](https://github.com/babel/babel/tree/main/eslint/babel-eslint-plugin). This is because the TypeScript community has centered around [`@typescript-eslint`](https://github.com/typescript-eslint/typescript-eslint) and we want to avoid duplicate work. Additionally, since [`@typescript-eslint`](https://github.com/typescript-eslint/typescript-eslint) uses TypeScript under the hood, its rules can be made type-aware, which is something Babel doesn't have the ability to do.\n\n## Questions and support\n\nIf you have an issue, please first check if it can be reproduced with the default parser and with the latest versions of `eslint` and `@babel/eslint-parser`. If it is not reproducible with the default parser, it is most likely an issue with `@babel/eslint-parser`.\n\nFor questions and support please visit the [`#discussion`](https://babeljs.slack.com/messages/discussion/) Babel Slack channel (sign up [here](https://slack.babeljs.io/)) or the [ESLint Discord server](https://eslint.org/chat).\n",
    "licenseText": "MIT License\n\nCopyright (c) 2014-present Sebastian McKenzie and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
  },
  "artifacts": [],
  "remote": {
    "resolved": "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.24.1.tgz#e27eee93ed1d271637165ef3a86e2b9332395c32",
    "type": "tarball",
    "reference": "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.24.1.tgz",
    "hash": "e27eee93ed1d271637165ef3a86e2b9332395c32",
    "integrity": "sha512-d5guuzMlPeDfZIbpQ8+g1NaCNuAGBBGNECh0HVqz1sjOeVLh2CEaifuOysCH18URW6R7pqXINvf5PaR/dC6jLQ==",
    "registry": "npm",
    "packageName": "@babel/eslint-parser",
    "cacheIntegrity": "sha512-d5guuzMlPeDfZIbpQ8+g1NaCNuAGBBGNECh0HVqz1sjOeVLh2CEaifuOysCH18URW6R7pqXINvf5PaR/dC6jLQ== sha1-4n7uk+0dJxY3Fl7zqG4rkzI5XDI="
  },
  "registry": "npm",
  "hash": "e27eee93ed1d271637165ef3a86e2b9332395c32"
}