https://github.com/hodfords-solutions/nestjs-prettier-config
Prettier default configuration for Nestjs project. It will help you to maintain the code quality of your project.
https://github.com/hodfords-solutions/nestjs-prettier-config
nestjs nodejs prettier
Last synced: about 1 year ago
JSON representation
Prettier default configuration for Nestjs project. It will help you to maintain the code quality of your project.
- Host: GitHub
- URL: https://github.com/hodfords-solutions/nestjs-prettier-config
- Owner: hodfords-solutions
- Created: 2024-09-22T02:29:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-17T06:46:03.000Z (over 1 year ago)
- Last Synced: 2025-03-17T07:38:38.371Z (over 1 year ago)
- Topics: nestjs, nodejs, prettier
- Language: JavaScript
- Homepage: https://opensource.hodfords.uk/nestjs-prettier-config
- Size: 4.88 KB
- Stars: 41
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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