@qvant/prettier-config
v0.1.0
Published
A Prettier config we use for our projects
Downloads
32
Readme
Prettier config
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 '**/*'"
}
// ...
}