npm install @qvant/prettier-config prettier --save-dev
# or with yarn:
yarn add @qvant/prettier-config prettier --dev
// package.json
{
// ...
"prettier": "@qvant/prettier-config"
// ...
}
or https://prettier.io/docs/en/configuration.html#sharing-configurations
// package.json
{
// ...
"scripts": {
// ...
"prettier": "prettier --check --ignore-unknown '**/*'",
"prettier:fix": "prettier --write --ignore-unknown '**/*'"
}
// ...
}