Prettier config
Using pnpm, yarn, or npm
# with pnpm
pnpm add -D @refinist/prettier-config
# with yarn
yarn add -D @refinist/prettier-config
# with npm
npm i -D @refinist/prettier-config
// package.json
{
"prettier": "@refinist/prettier-config"
}
Generally, prettier works together with eslint. Check out @refinist/eslint-config for more configuration details.
- 📏 2 spaces (default)
- 🔚 Semicolons
- 🔤 Single quotes
- ❌ No trailing commas
- 🏹 Avoid arrow parentheses
- 🌐 Ignore HTML whitespace sensitivity
- 🚫 Ignore common files (
node_modules
,dist
,pnpm-lock.yaml
...),refer to #4708
Inspired by @sxzz
Copyright (c) 2025-present, Zhifeng (Jeff) Wang