* fix(babel-parser): Move storage of expressionValue in DirectiveLiteral to main parser so it is accessible to others.
Closes#13953.
Reviewed by @tolmasky.
* Add results from running `OVERWRITE=true yarn jest babel-parser`.
Reviewed by @tolmasky.
* fix: add file extention when the absolute path to the runtime files are used (#12824)
the es module imports need the file extention (e.g. import "@babel/runtime/helpers/jsx.js", Or the filenames being listed in the package.json's subpath exports (e.g. "import "@babel/runtime/helpers/jsx" + pkg: "./helpers/jsx": "./helpers/jsx.js"). when the user passes a path via `absoluteRuntime` then the rendered require staemnts is not the module name + subpath which will be resolved via pkg.json but rather the absolute path to the file. for this case, add the file extention / index.js to prevent bundlers from raising a warning.
* Update deps
* Fix imports resolution
* Update fixtures (Windows)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
* [babel 8] Align `allow*` parser options with ESLint behavior
- The `@babel/eslint-parser` `allowImportExportEverywhere` option is removed; users can pass it to `parserOpts`
- `allowSuperOutsideMethod` is disabled
- `allowReturnOutsideFunction` is inferred from `ecmaFeatures.globalReturn`
* Update failing tests
* Add ESLint 8 support to `@babel/eslint-parser`
* Only read eslint version dynamically during dev
* Fix tests
* Update ESLint
* Use ESLint 8 stable
* Review
* Check
* Fix babel config
* overload `skipTransparentExprWrappers`
* fixes isSimpleMemberExpression
in @babel/plugin-proposal-optional-chaining
* use skipTransparentExprWrappers<Expression> instead of the NodePath
overload where possible in @babel/plugin-proposal-optional-chaining
* Revert "overload `skipTransparentExprWrappers`"
This reverts commit fad47596a64a8d33aadacb7695dbf1aa60a528ae.
* add helper `skipTransparentExprWrapperNodes`
* avoids constructing NodePaths when only the Node is needed
* fixes isSimpleMemberExpression
in @babel/plugin-proposal-optional-chaining
* use this new helper instead of skipTransparentExprWrappers
where possible in @babel/plugin-proposal-optional-chaining
* Ensure non-standard types have an appropriate alias
This helps with filter out the types. Eg, I'm concerned with just the core JS types, and in I can derive them via:
```typescript
type Core = Exclude<t.Node, t.TypeScript | t.Flow>;
```
* Lint
* Export deprecated alias types
* Add docs descriptions for new aliases
* Add Standardized alias
* Fix inherits aliases
* Filter aliases from node types
* Remove Proposal alias