How do this instead of this with prettier?

<Image className="w-full object-cover object-center" {preview ?? ""}
alt="Placeholder Image" {600} height={480} />
<Image className="w-full object-cover object-center" {preview ?? ""}
alt="Placeholder Image" {600} height={480} />
instead of this
<Image
className="w-full object-cover object-center"
src={preview ?? ""}
alt="Placeholder Image"
width={600}
height={480}
/>
<Image
className="w-full object-cover object-center"
src={preview ?? ""}
alt="Placeholder Image"
width={600}
height={480}
/>
Using .prettierrc? I have .prettierrc file
{
"trailingComma": "none",
"printWidth": 120,
"semi": false,
"tabWidth": 2
}
{
"trailingComma": "none",
"printWidth": 120,
"semi": false,
"tabWidth": 2
}
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server