leerob / site

My site built with Next.js, Tailwind, and Vercel.
https://leerob.com
7.2k stars 1.39k forks source link

Add one-rule prettier config to prefer single quotes #709

Closed mrnugget closed 7 months ago

mrnugget commented 8 months ago

This configuration is pretty minimal and is equivalent to setting

"prettier.singleQuote": true

in VS Code's user settings.

The difference is that now this setting is picked up by the prettier CLI or others editors that use prettier to format.

vercel[bot] commented 8 months ago

@mrnugget is attempting to deploy a commit to the leerob-site Team on Vercel.

A member of the Team first needs to authorize it.

leerob commented 7 months ago

Could we do in the package.json and still have it be respected in Zed?

mrnugget commented 7 months ago

Could we do in the package.json and still have it be respected in Zed?

Yep, that also works, since we just invoke prettier and prettier picks up the configuration from the package.json. Changed the package.json.