fixes formatting

This commit is contained in:
tim 2024-06-18 18:57:29 +02:00
parent 2bfb82f24a
commit 897a70a8ba
2 changed files with 2 additions and 2 deletions

View file

@ -663,7 +663,7 @@ function genericPrintNoParens(path: any, options: any, print: any) {
if (n.argument) {
const argIsJsxElement =
namedTypes.JSXElement?.check(n.argument) ||
namedTypes.JSXFragment?.check(n.argument)
namedTypes.JSXFragment?.check(n.argument);
let argLines = path.call(print, "argument");
if (

View file

@ -107,7 +107,7 @@ it("should not double parentheses in Babel", function () {
" );\n" +
"}";
const ast = parse(source, {parser: require("../parsers/babel")});
const ast = parse(source, { parser: require("../parsers/babel") });
ast.program.body[0].body.body[1].argument.openingElement.attributes[0].name.name =
"abc";