2020-05-29 09:26:52 +08:00
|
|
|
// Only testing babel parsing
|
|
|
|
|
// Do not add extra parsers here
|
|
|
|
|
|
2024-01-19 17:20:24 +08:00
|
|
|
runFormatTest(import.meta, ["babel", "babel-ts", "babel-flow"], {
|
2020-10-13 09:14:02 +08:00
|
|
|
errors: {
|
2022-01-28 15:25:30 +08:00
|
|
|
acorn: [
|
|
|
|
|
"decimal.js",
|
|
|
|
|
"decorators.js",
|
2022-02-14 11:28:47 +09:00
|
|
|
"destructuring-private.js",
|
2022-01-28 15:25:30 +08:00
|
|
|
"do-expressions.js",
|
|
|
|
|
"export-default-from.js",
|
|
|
|
|
"flow.js",
|
|
|
|
|
"function-bind.js",
|
|
|
|
|
"function-sent.js",
|
|
|
|
|
"import-assertions-dynamic.js",
|
|
|
|
|
"import-assertions-static.js",
|
2023-05-31 00:47:12 +09:00
|
|
|
"import-attributes-dynamic.js",
|
|
|
|
|
"import-attributes-static.js",
|
2022-01-28 15:25:30 +08:00
|
|
|
"partial-application.js",
|
|
|
|
|
"pipeline-operator-fsharp.js",
|
|
|
|
|
"pipeline-operator-minimal.js",
|
|
|
|
|
"pipeline-operator-hack.js",
|
|
|
|
|
"record-tuple-record.js",
|
|
|
|
|
"record-tuple-tuple.js",
|
|
|
|
|
"throw-expressions.js",
|
|
|
|
|
"typescript.js",
|
|
|
|
|
"v8intrinsic.js",
|
|
|
|
|
"module-blocks.js",
|
|
|
|
|
"async-do-expressions.js",
|
2022-03-02 16:00:50 +09:00
|
|
|
"decorator-auto-accessors.js",
|
2022-11-07 09:49:35 +08:00
|
|
|
"import-reflection.js",
|
2022-11-14 19:45:27 +08:00
|
|
|
"explicit-resource-management.js",
|
2023-02-24 08:59:53 +08:00
|
|
|
"regexp-modifiers.js",
|
2023-10-09 08:52:48 +09:00
|
|
|
"source-phase-imports.js",
|
|
|
|
|
"deferred-import-evaluation.js",
|
2023-10-09 08:36:11 +09:00
|
|
|
"optional-chaining-assignment.js",
|
2022-01-28 15:25:30 +08:00
|
|
|
],
|
2020-10-13 09:14:02 +08:00
|
|
|
espree: [
|
|
|
|
|
"decimal.js",
|
|
|
|
|
"decorators.js",
|
2022-02-14 11:28:47 +09:00
|
|
|
"destructuring-private.js",
|
2020-10-13 09:14:02 +08:00
|
|
|
"do-expressions.js",
|
|
|
|
|
"export-default-from.js",
|
|
|
|
|
"flow.js",
|
|
|
|
|
"function-bind.js",
|
|
|
|
|
"function-sent.js",
|
2020-10-20 19:01:30 +09:00
|
|
|
"import-assertions-dynamic.js",
|
|
|
|
|
"import-assertions-static.js",
|
2023-05-31 00:47:12 +09:00
|
|
|
"import-attributes-dynamic.js",
|
|
|
|
|
"import-attributes-static.js",
|
2020-10-13 09:14:02 +08:00
|
|
|
"partial-application.js",
|
|
|
|
|
"pipeline-operator-fsharp.js",
|
|
|
|
|
"pipeline-operator-minimal.js",
|
2021-08-15 01:16:13 +09:00
|
|
|
"pipeline-operator-hack.js",
|
2020-10-13 09:14:02 +08:00
|
|
|
"record-tuple-record.js",
|
|
|
|
|
"record-tuple-tuple.js",
|
|
|
|
|
"throw-expressions.js",
|
|
|
|
|
"typescript.js",
|
|
|
|
|
"v8intrinsic.js",
|
2021-03-25 01:19:11 +09:00
|
|
|
"module-blocks.js",
|
2021-05-06 04:32:26 +09:00
|
|
|
"async-do-expressions.js",
|
2022-03-02 16:00:50 +09:00
|
|
|
"decorator-auto-accessors.js",
|
2022-11-07 09:49:35 +08:00
|
|
|
"import-reflection.js",
|
2022-11-14 19:45:27 +08:00
|
|
|
"explicit-resource-management.js",
|
2023-02-24 08:59:53 +08:00
|
|
|
"regexp-modifiers.js",
|
2023-10-09 08:52:48 +09:00
|
|
|
"source-phase-imports.js",
|
|
|
|
|
"deferred-import-evaluation.js",
|
2023-10-09 08:36:11 +09:00
|
|
|
"optional-chaining-assignment.js",
|
2020-10-13 09:14:02 +08:00
|
|
|
],
|
2020-11-05 14:08:37 +08:00
|
|
|
meriyah: [
|
|
|
|
|
"decimal.js",
|
|
|
|
|
"do-expressions.js",
|
2022-02-14 11:28:47 +09:00
|
|
|
"destructuring-private.js",
|
2020-11-05 14:08:37 +08:00
|
|
|
"export-default-from.js",
|
|
|
|
|
"flow.js",
|
|
|
|
|
"function-bind.js",
|
|
|
|
|
"function-sent.js",
|
|
|
|
|
"module-attributes-dynamic.js",
|
|
|
|
|
"module-attributes-static.js",
|
|
|
|
|
"partial-application.js",
|
|
|
|
|
"pipeline-operator-fsharp.js",
|
|
|
|
|
"pipeline-operator-minimal.js",
|
2021-08-15 01:16:13 +09:00
|
|
|
"pipeline-operator-hack.js",
|
2020-11-05 14:08:37 +08:00
|
|
|
"record-tuple-record.js",
|
|
|
|
|
"record-tuple-tuple.js",
|
|
|
|
|
"throw-expressions.js",
|
|
|
|
|
"typescript.js",
|
|
|
|
|
"v8intrinsic.js",
|
|
|
|
|
"import-assertions-static.js",
|
2021-03-25 01:19:11 +09:00
|
|
|
"module-blocks.js",
|
2021-05-06 04:32:26 +09:00
|
|
|
"async-do-expressions.js",
|
2022-11-07 09:49:35 +08:00
|
|
|
"import-reflection.js",
|
2022-11-14 19:45:27 +08:00
|
|
|
"explicit-resource-management.js",
|
2023-02-24 08:59:53 +08:00
|
|
|
"regexp-modifiers.js",
|
2023-10-09 08:52:48 +09:00
|
|
|
"source-phase-imports.js",
|
|
|
|
|
"deferred-import-evaluation.js",
|
2023-10-09 08:36:11 +09:00
|
|
|
"optional-chaining-assignment.js",
|
2020-11-05 14:08:37 +08:00
|
|
|
],
|
2023-02-10 17:27:17 +08:00
|
|
|
babel: ["flow.js", "typescript.js"],
|
|
|
|
|
__babel_estree: ["flow.js", "typescript.js"],
|
2020-10-13 09:14:02 +08:00
|
|
|
},
|
|
|
|
|
});
|