style(voice): apply exact Prettier 3.9.6 output to #835

Restore unchanged formatter script after ephemeral CI verification. Keep current-main-compatible reason instrumentation, pointer crop and capture cancellation tests.
This commit is contained in:
Kevin Rajan committed 2026-10-16 23:41:12 -05:00
1 parent d4980b1b77
commit cb3b66e38b
3 files changed
+30 -27

No files matched your search

-12
View File
@@ -141,18 +141,6 @@ if (import.meta.url === invoked) {
if (mode === '--check' && result.changed.length) {
for (const name of result.changed)
console.error(`Needs formatting: ${name}`);
// Temporary CI-only formatter diagnostic. This commit is never promoted.
for (const name of result.changed.filter((file) =>
['src/voice/realtimeViewport.js', 'src/voice/realtimeViewportPolicy.test.mjs'].includes(file)
)) {
const file = path.join(fileURLToPath(new URL('../', import.meta.url)), name);
const output = await prettier.format(await readFile(file, 'utf8'), {
...(await prettier.resolveConfig(file)), filepath: file,
});
const encoded = Buffer.from(output).toString('base64');
for (let pos = 0; pos < encoded.length; pos += 1000)
console.error(`PRETTIER-DATA|${name}|${pos}|${encoded.slice(pos, pos + 1000)}`);
}
process.exitCode = 1;
} else {
console.log(