Skip to content

Commit 13e063d

Browse files
author
devgioele
committed
show how to extend the prettier config
1 parent c9b61e7 commit 13e063d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

readme.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,27 @@ npm i -D @aboutbits/prettier-config
1414
```
1515

1616
Edit `package.json`:
17+
1718
```json
1819
{
1920
// ...
2021
"prettier": "@aboutbits/prettier-config"
2122
}
2223
```
2324

25+
### Extend the preset
26+
27+
Create a `.prettierrc.js` file:
28+
29+
```js
30+
const aboutBitsConfig = require('@aboutbits/prettier-config')
31+
32+
module.exports = {
33+
...aboutBitsConfig,
34+
singleQuote: false
35+
}
36+
```
37+
2438
## Publish
2539

2640
To publish the package commit all changes and push them to main. Then run one of the following commands locally:

0 commit comments

Comments
 (0)