* 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>
* 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
* Add test case demonstrating invalid behavior
* Add conditional check for child properties so RHS is not duplicated
* Add recursive check to find any nested non single-property case
* Add case for array destructuring
* Add test case for a nested rest element
* More safely recurse through array destructuring
* Traverse assignment and nested rest operations
* Refactor to be more clear which case statement we are executing against
* Update missed snapshots
* Update packages/babel-plugin-proposal-object-rest-spread/src/index.js
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
* Filter null array elements, add early return, remove optional chaining
* Use stronger type assertions
* Update fall through to be false; add early return to RestElement case
* Move hasMoreThanOneBinding to its own file with distinct tests
* Rename testing helper to more appropriately match business logic
* Yarn Dedup & rename hasMoreThanOneBinding to shouldStoreRHSInTemporaryVariable
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
* archive stage 4 parser plugins
* use npm protocol for archived plugins
* fix: get module.exports from archived plugins
* remove syntax-top-level-await from test options
* use npm syntax-class-static-block