* test: add test for nullish coalescing
Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
* test: add control group
* test: add tests for optional chaining
Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
* test: add tests on optional chaining mixed with private class elements
* fix: wrap member chains to IIFE when it is in parameter default
* chore: add more testcases
* chore: update test fixtures
* fix: NodePath.get is always non nullish
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
* refactor: add @babel/helper-validator-option
* refactor: simplify validateTopLevelOptions
* perf: the recursive version is not practically fast
* Update packages/babel-helper-validator-option/README.md
Co-authored-by: Brian Ng <bng412@gmail.com>
* Update packages/babel-helper-validator-option/src/validator.js
* fix: incorrect type annotation
* refactor: use babel/helper-option-validator in babel/compat-data
* chore: fix flow types error
* Address review comments
* address review comments
Co-authored-by: Brian Ng <bng412@gmail.com>
There is a small typo in packages/babel-core/src/transformation/file/file.js, packages/babel-plugin-transform-runtime/src/helpers.js.
Should read `pre-release` rather than `preprelease`.
* Add sourcemap markings for each line of a string
Fixes https://github.com/babel/babel/issues/12083
* Fix for multiple newlines
* Optimize with indexOf
* Comment explaining newline search
* test(do-expr): condition before break
* test(do-expr): labeled break
* fix(do-expr): add check for break in BlockStatement
* fix(do-expr): add LabeledStatement case for getCompletionRecords
* test(do-expr): rename condition before break to condition before expression
* revert(do-expr): undo remove break for do switch
* revert(do-expr): undo remove labeled break
* test(do-expr): add condition before break
* test(do-expr): update condition before break
* test(do-expr): remove labeled break
* fix(do-expr): add tree search in findBreak
* fix(do-expr): ignore isFunction case in findBreak
* Throw a syntax error for a constructor with type parameters
* Modify to match error location with TypeScript
* Update typescript parser tests
Update allowlist.txt
* Fix `jsxDEV` for generated elements
* Throw invariant error
* Add test
* test: revise test layout
* fix: node 6 does not support trailing comma
* Use undefined node
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
* chore: remove enhanced-resolve
It was introduced as a peer dependency of `webpack-dependency-suite`, see https://github.com/babel/babel/pull/7453 and https://travis-ci.org/github/babel/babel/jobs/347175454#L545
* chore: remove custom @lerna/collect-updates resolution
The forked @lerna/collect-updates are meant to update runtime-corejs2 when helpers
are updated. However they are now always force published. So we don't need the fork
anymore