-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs for nestjs-prettier-config: feat: init prettier config pr…
…oject
- Loading branch information
1 parent
20719ac
commit 2d58196
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,37 @@ | ||
--- | ||
displayed_sidebar: docs | ||
title: "@hodfords/nestjs-prettier-config" | ||
--- | ||
# PRETTIER CONFIGURATION FOR NESTJS PROJECTS | ||
Prettier default configuration for Nestjs project. It will help you to maintain the code quality of your project. | ||
|
||
## Installation 🤖 | ||
To begin using it, we first install the required dependencies. | ||
``` | ||
npm install @hodfords/nestjs-prettier-config | ||
``` | ||
|
||
## Configuration 🚀 | ||
To activate prettier, create a `prettier.config.js` file in the root of your project and add the following configuration: | ||
```javascript | ||
module.exports = require('@hodfords/nestjs-prettier-config'); | ||
``` | ||
|
||
### Prettier Config | ||
```javascript | ||
{ | ||
singleQuote: true, | ||
printWidth: 120, | ||
proseWrap: 'always', | ||
tabWidth: 4, | ||
useTabs: false, | ||
trailingComma: 'none', | ||
bracketSpacing: true, | ||
jsxBracketSameLine: false, | ||
semi: true, | ||
endOfLine: 'auto' | ||
} | ||
``` | ||
|
||
## License | ||
This project is licensed under the MIT License |