Update flow parse options (#18641)
This commit is contained in:
1 parent
5d5094e084
commit
8bb1341ff4
2 files changed
+24
-13
No files matched your search
@@ -14,8 +14,12 @@ function tryParse(file, content) {
|
||||
const ast = flowParser.parse(content, {
|
||||
comments: false,
|
||||
enums: true,
|
||||
match: true,
|
||||
components: true,
|
||||
// assert_operator: true,
|
||||
esproposal_decorators: true,
|
||||
esproposal_export_star_as: true,
|
||||
pattern_matching: true,
|
||||
records: true,
|
||||
});
|
||||
|
||||
if (ast.errors.length > 0) {
|
||||
|
||||
Reference in new issue
Block a user