fix(parser): [Babel8] Align error codes between Flow and TypeScript (#13294)
* Align error codes between Flow and TypeScript * Implement compat fallback in makeErrorTemplates * Add tests
This commit is contained in:
@@ -40,6 +40,7 @@ const JsxErrors = makeErrorTemplates(
|
||||
"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?",
|
||||
},
|
||||
/* code */ ErrorCodes.SyntaxError,
|
||||
/* syntaxPlugin */ "jsx",
|
||||
);
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user