Prettier 2.2.1
Playground link
--no-bracket-spacing
--parser typescript
--no-semi
--single-quote
Input:
for (const p of ['fullName', 'organ', 'position', 'rank'])
// @ts-expect-error
form.setValue(`${prefix}.data.${p}`, response[p])
Output:
// @ts-expect-error
for (const p of ['fullName', 'organ', 'position', 'rank'])
form.setValue(`${prefix}.data.${p}`, response[p])
Expected behavior:
TS comment line is unchanged, only indentation is fixed
Prettier 2.2.1
Playground link
Input:
Output:
Expected behavior:
TS comment line is unchanged, only indentation is fixed