Files
test-repo/tests/format/js/empty/format.test.js
T
fisker Cheungandautofix-ci[bot] 3149f353d7 Enable unicorn/prefer-string-repeat rule (#19306)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-08 18:16:28 +08:00

32 lines
611 B
JavaScript

runFormatTest(
{
importMeta: import.meta,
snippets: [
...[
// empty
"",
// empty lines
"\n",
"\n".repeat(4),
// semicolons
";",
";;;;",
";\n",
";\n\n;;;\n",
].map((code) => ({ code, output: "" })),
// comments
"// comment",
"/* comment */",
"// comment\n",
"/* comment */\n",
"\n// comment\n",
"\n/* comment */\n",
"// comment\n;",
"/* comment */\n;",
";\n// comment\n",
"\n;/* comment */\n",
],
},
["babel", "flow", "typescript"],
);