/prettier-config

A Prettier config we use for our projects

Primary LanguageShellApache License 2.0Apache-2.0

Prettier config

npm downloads prettier

Installation

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

# or with yarn:
yarn add @qvant/prettier-config prettier --dev

Set prettier config

// package.json
{
  // ...
  "prettier": "@qvant/prettier-config"
  // ...
}

or https://prettier.io/docs/en/configuration.html#sharing-configurations

Add scripts

// package.json
{
  // ...
  "scripts": {
    // ...
    "prettier": "prettier --check --ignore-unknown '**/*'",
    "prettier:fix": "prettier --write --ignore-unknown '**/*'"
  }
  // ...
}