20 Commits
Author SHA1 Message Date
Huáng JùnliàngandGitHub 7661ea9937 test: update flow parser test (#17996)
* test: correctly handle types option

* refactor: map flow parser test options

* chore: update flow parset test commit

* fix: incorrect return type
2026-05-15 15:28:05 -04:00
Huáng JùnliàngandGitHub 9f063047d9 Support flow extends bound (#17923) 2026-04-24 12:04:19 +02:00
Huáng JùnliàngandGitHub 7e46cd6aa4 test(third-party): parse js defined by // @filename (#17922) 2026-04-17 12:16:53 +02:00
Huáng JùnliàngandGitHub 89712b8f40 Fix(parser): flow parser small fixes (#17865) 2026-03-25 10:30:47 +01:00
Nicolò Ribaudo 3a912d1a39 Remove Babel 7 from the codebase (#17618) 2025-12-05 12:33:52 +01:00
Huáng JùnliàngandGitHub fa73edea15 Enable type checking for scripts and babel-worker.cjs (#17454) 2025-07-29 18:26:27 -04:00
Huáng JùnliàngandGitHub 254525d565 Enforce node protocol import (#17207)
* enable prefer-node-protocol rule

* prefer node protocol import

* fix broken scripts

* fix e2e-old-babel error

* strip node: protocol for old node versions

* update Makefile.mjs
2025-03-31 10:49:22 -04:00
Huáng JùnliàngandGitHub b3163c963b Support flow jsx opening element type arguments (#17028)
* refactor: rename tsInNoContext to tsInTopLevelContext

* fix: support type arguments in JSXOpeningElement

* add test cases

* update per Babel 8 AST

* define typeArguments and remove it in flow transform

* update generated AST types

* fix typing errors

* e2e: ignore the broken prettier test

The test is broken because we now support typeArguments in JSXOpeningElement

* update test allowlist
2025-01-08 11:28:12 -05:00
Nicolò RibaudoandGitHub 2818e21eda Enable import attributes parsing by default (#16850)
* Enable import attributes parsing by default

* Remove plugin from tests

* Update fixtures

* Fix failures

* `make build`

* Fix TS errors

* Fix

* Update .d.ts

* Move in core

* [babel 8] Remove syntax plugins from preset-env

* Update fixtures

* Fix ESM build of Babel 7 and standalone

* Update flow allowlist

* Update parser fixtures for Babel 8

* Update generator tests

* Update parser test

* Update standalone

* Do not run import attribtues plugin test in Babel 8

* Make tests pass in babel 8

* Fix Babel 8 build

* [babel 8] Stop printing legacy "with" attributes

* fix prettier integration test

* Fix Babel 8 compat in syntax-import-attributes

* Try fix

* Do not error for the removed `importAttributes` plugin

* Skip a test in babel7/8 compat e2e

* Throw an error when using removed option from the parser

* Fixes after rebase

* Raise `ImportCallArity` also when `createImportExpressions`

* Fix linting
2024-10-24 20:33:39 +02:00
Nicolò RibaudoandGitHub a1609604de Always enable parsing of Flow enums (#16841) 2024-10-23 16:02:36 +02:00
7a06e68424 Clean all always enabled parser plugins (#16572)
Co-authored-by: Nicolò Ribaudo <[email protected]>
2024-08-12 15:45:03 +02:00
Nicolò RibaudoandGitHub f363d22618 Implement decorators as presented at 2023-01 TC39 meeting (#15405) 2023-02-18 16:50:41 +01:00
Nicolò RibaudoandGitHub c99a0a8a36 Enable top-level await parsing by default (#13387) 2021-08-04 00:00:04 +02:00
Huáng JùnliàngandNicolò Ribaudo fce5ad0489 Parse class fields and private methods by default (#13175)
* feat: materialize class features

* chore: move testcases to es2022

* chore: update test fixtures

* chore: remove classPr\w+ from options.json

* chore: remove empty options.json

* update flow test allowlist

* update typescript allowlist
2021-04-28 18:21:31 +02:00
83dc04c654 Use native ESM for dev scripts (#12296)
Co-authored-by: Nicolò Ribaudo <[email protected]>
2021-01-30 18:36:21 +01:00
Huáng JùnliàngandGitHub 77125d1ed9 replace whitelist by allowlist in parser-tests (#11727) 2020-06-17 15:32:46 -04:00
Brian NgandGitHub 183d13af89 Update flow test whitelist (#11459) 2020-04-21 16:39:40 -05:00
Nicolò RibaudoandHuáng Jùnliàng 702b8bdbe0 Update Test262, Flow and TS parser tests (#10976)
* Update Test262, Flow and TS parser tests

* Updates
2020-01-10 09:50:11 -05:00
Nicolò RibaudoandGitHub 0fb3434b2b [parser] Disallow duplicate and undeclared private names (#10456)
* [parser] Add private names tracking to Scope

- Disallow duplicate private names
- Disallow undeclared private names

* Update tests

* Test all possible duplications

* Test undeclared private names

* Better error message for top-level private names

* Fix flow

* Update test262 whitelist

* Update fixtures

* Update flow whitelist

* Remove old output.json

* Move ClassScopeHandler to a separate class

* Make the code readable
2020-01-10 02:22:05 +01:00
Nicolò Ribaudo 08fc0f4355 Run parser tests from the official TypeScript parser (#10444) 2019-12-03 01:09:54 +01:00