JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 105
  • Score
    100M100P100Q81671F
  • License MIT

An elegant prettier shareable config.

Package Exports

  • @git-validator/prettier-config

Readme

@git-validator/prettier-config

PRs Welcome

An elegant prettier shareable config.

Features

  • Elegant. One-line of config.
  • Compatible with default prettier config {}. Only introduced some plugins.
  • Enforce consistent brace style. Powered by prettier-plugin-curly.
  • Sort package.json. Powered by prettier-plugin-packagejson.
  • Sort imports. Powered by @ianvs/prettier-plugin-sort-imports.
  • Sort Tailwind CSS classes. Powered by prettier-plugin-tailwindcss.

Usage

Install

pnpm add -D prettier @git-validator/prettier-config

Config prettier.config.js

import config from "@git-validator/prettier-config";

export default config;

Config package.json

{
  "scripts": {
    "format": "prettier -c .",
    "format:write": "prettier -c -w ."
  }
}

License

MIT