Skip to content

Latest commit

 

History

History

prettier-config

Captive Prettier configuration (@captive/prettier-config)

NPM Version License

Prettier shared configuration

Installation

npm install --save-dev @captive/prettier-config

Usage

In the .prettierrc.json for your project

"@captive/prettier-config"

Or in the .prettierrc.js, to be able to override rules

module.exports = {
  ...require('@captive/prettier-config'),
  // Override rules
};

Rules

@captive/prettier-config
{
  "singleQuote": true,
  "trailingComma": "all",
  "overrides": [
    {
      "files": [
        "*.css",
        "*.scss"
      ],
      "options": {
        "trailingComma": "none"
      }
    }
  ]
}

Requirements

Prettier: 2.x || 3.x

License

MIT © Julien Polo [email protected]

About Captive

captive

@captive/prettier-config is maintained and funded by Captive. The names and logos for captive are trademarks of captive-studio.

We love open source software! See our other projects or hire us to design, develop, and grow your product.