Reproduction for JoshuaKGoldberg/prettier-plugin-curly#386.
Input:
import { Agent } from "node:http";
import { access } from "node:fs";
function test() {
const a = true;
if (a) return;
}
Expected output:
function test() {
const a = true;
if (a) {
return;
}
}
With prettier-plugin-organize-imports
and prettier-plugin-curly
(The order of the plugins matters)
import { Agent } from "node:http";
import { access } from "node:fs";
function test() {
const a = true;
if (a) {
return;
}
}
With prettier-plugin-curly
and prettier-plugin-organize-imports
function test() {
const a = true;
if (a) return;
}