Skip to content

Commit

Permalink
Update docs for nestjs-prettier-config: feat: init prettier config pr…
Browse files Browse the repository at this point in the history
…oject
  • Loading branch information
actions-user committed Sep 22, 2024
1 parent 20719ac commit 2d58196
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pages/nestjs-prettier-config/index.md
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

0 comments on commit 2d58196

Please sign in to comment.