From 3245a950539f49186fefedf09477f014659fadd7 Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Sun, 15 Aug 2021 19:49:16 +0300 Subject: chore(deps): prettier 2.3.2 also reformat all the code with the new version --- benchmark/convert-instructions.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'benchmark/convert-instructions.ts') diff --git a/benchmark/convert-instructions.ts b/benchmark/convert-instructions.ts index 9ddd058..edde3cc 100644 --- a/benchmark/convert-instructions.ts +++ b/benchmark/convert-instructions.ts @@ -28,10 +28,7 @@ function isTwoWordInstruction(opcode: number) { const patternToFn: Array<[string, string]> = []; for (const line of input.split('\n')) { if (line.startsWith(' /* ') && line.includes(', ')) { - currentInstruction = line - .trim() - .split(',')[0] - .split(' ')[1]; + currentInstruction = line.trim().split(',')[0].split(' ')[1]; fnBody = ''; pattern = line.split(',')[1].split('*')[0]; console.log(currentInstruction); @@ -75,9 +72,9 @@ export function executeInstruction(idx: number, cpu: ICPU, opcode: number) { const formattedOutput = prettier.format(output, { // eslint-disable-next-line @typescript-eslint/no-explicit-any ...(prettierOptions as any), - parser: 'babel' + parser: 'babel', }); fs.writeFileSync('benchmark/instruction-fn.ts', formattedOutput, { - encoding: 'utf-8' + encoding: 'utf-8', }); -- cgit v1.2.3