@babel/eslint-parser
Advanced tools
Comparing version 7.16.0 to 7.16.3
{ | ||
"name": "@babel/eslint-parser", | ||
"version": "7.16.0", | ||
"version": "7.16.3", | ||
"description": "ESLint parser that allows for linting of experimental syntax transformed by Babel", | ||
@@ -5,0 +5,0 @@ "author": "The Babel Team (https://babel.dev/team)", |
@@ -54,2 +54,3 @@ # @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) | ||
- `sourceType` can be set to `"module"`(default) or `"script"` if your code isn't using ECMAScript modules. | ||
<!-- TODO(Babel 8): Remove this --> | ||
- `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. | ||
@@ -101,9 +102,9 @@ - `ecmaFeatures.globalReturn` (default `false`) allow return statements in the global scope when used with `sourceType: "script"`. | ||
module.exports = { | ||
"parser": "@babel/eslint-parser", | ||
"parserOptions": { | ||
"babelOptions": { | ||
"rootMode": "upward" | ||
} | ||
} | ||
} | ||
parser: "@babel/eslint-parser", | ||
parserOptions: { | ||
babelOptions: { | ||
rootMode: "upward", | ||
}, | ||
}, | ||
}; | ||
``` | ||
@@ -110,0 +111,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49390
1073
125