@pact-foundation/pact-js-prettier-config

1.0.0 • Public • Published

Pact-JS Developer Prettier config

This is the prettier config for pact-js projects, used to keep consistency across the projects. Please use these options to format any new pact projects.

It's hosted at https://github.com/pact-foundation/pact-js-dev-config, which contains shared config for javascript (and related) pact projects.

It's essentially default prettier settings, with single quotes added. See this excellent documentation page on prettier's option philosophy.

How do I use it?

Add this to your package.json:

  "prettier": "@pact-foundation/pact-js-prettier-config"

Or if you use .prettierrc.json:

"@pact-foundation/pact-js-prettier-config"

See here for details.

Can I use this to format something that isn't a pact project?

I mean, sure, if you like. We're not the boss of you.

/@pact-foundation/pact-js-prettier-config/

    Package Sidebar

    Install

    npm i @pact-foundation/pact-js-prettier-config

    Weekly Downloads

    258

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    1.91 kB

    Total Files

    3

    Last publish

    Collaborators

    • omerico
    • mfellows
    • you54f
    • mefellows-pact