Skip to content

refinist/prettier-config

Repository files navigation

@refinist/prettier-config npm

Prettier config

Install

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

Usage

// package.json
{
  "prettier": "@refinist/prettier-config"
}

Generally, prettier works together with eslint. Check out @refinist/eslint-config for more configuration details.

Features

  • 📏 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

License

MIT

Copyright (c) 2025-present, Zhifeng (Jeff) Wang

About

Prettier preset of @refinist

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published