mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-23 01:53:00 +00:00
refactor: move prettier-config to monorepo
This commit is contained in:
28
configuration/prettier-config/README.md
Normal file
28
configuration/prettier-config/README.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# @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.
|
||||
Reference in New Issue
Block a user