mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-06 21:42:49 +00:00
29 lines
1.0 KiB
Markdown
29 lines
1.0 KiB
Markdown
# @openstapps/prettier-config
|
|
|
|
[](https://gitlab.com/openstapps/prettier-config/commits/master)
|
|
[](https://npmjs.com/package/@openstapps/prettier-config)
|
|
[](https://www.gnu.org/licenses/gpl-3.0.en.html)
|
|
|
|
## Installation
|
|
|
|
```shell
|
|
npm install -D prettier
|
|
npm install -D @openstapps/prettier-config
|
|
```
|
|
|
|
Add the following to your `package.json`
|
|
```json
|
|
{
|
|
"prettier": "@openstapps/prettier-config"
|
|
}
|
|
```
|
|
|
|
Also make sure you are following the installation guidelines
|
|
for [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier#eslint-config-prettier)
|
|
so the two won't interfere.
|
|
|
|
After that, follow the Prettier guides for
|
|
[IDE Integration](https://prettier.io/docs/en/editors.html)
|
|
and take a look at [CLI Commands](https://prettier.io/docs/en/cli.html)
|
|
for pipelines.
|