JSPM

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

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@git-validator/prettier-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    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