Skip to content

altai-ui/prettier-config

Repository files navigation

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 '**/*'"
  }
  // ...
}