mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 02:10:09 +08:00
Add note about installing as dev dep
This commit is contained in:
parent
f6b4f2fbfb
commit
53172af77d
|
@ -20,7 +20,14 @@ Add the `prettier` key to your `package.json`:
|
||||||
|
|
||||||
## Extending
|
## Extending
|
||||||
|
|
||||||
You can extend our config with your own custom options, too. Import our config, then spread its require in a `.prettierrc.js` file:
|
You can extend our config with your own custom options, too. Import our config, then spread its require in a `.prettierrc.js` file.
|
||||||
|
|
||||||
|
Make sure your `package.json` doesn't have the `prettier` key, and that it has `@flarum/prettier-config` as a dev dependency.
|
||||||
|
|
||||||
|
```
|
||||||
|
npm i -D @flarum/prettier-config
|
||||||
|
yarn add -D @flarum/prettier-config
|
||||||
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// .prettierrc.js
|
// .prettierrc.js
|
||||||
|
|
Loading…
Reference in New Issue
Block a user