@captive/prettier-config
TypeScript icon, indicating that this package has built-in type declarations

2.0.5 • Public • Published

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
{
  "default": {
    "singleQuote": true,
    "trailingComma": "es5",
    "overrides": [
      {
        "files": [
          "*.css",
          "*.scss"
        ],
        "options": {
          "trailingComma": "none"
        }
      }
    ]
  }
}

Requirements

Prettier: 2.x || 3.x

License

MIT © Julien Polo julien.polo@gmail.com

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.

Readme

Keywords

Package Sidebar

Install

npm i @captive/prettier-config

Weekly Downloads

515

Version

2.0.5

License

MIT

Unpacked Size

7.65 kB

Total Files

9

Last publish

Collaborators

  • cprodhomme
  • captive_owner
  • jpolo