- Notifications
You must be signed in to change notification settings - Fork2
POC. ESLint rules for nestjs framework
License
NotificationsYou must be signed in to change notification settings
unlight/eslint-plugin-nestjs
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
ESLint rules fornestjs framework.
This project is POC and is not under development. But it will be, if I will get nestjs project on my job.
npm install --save-dev eslint-plugin-nestjsConfigure it inyour configuration file:
- Add to
pluginssection:
nestjs- Add to
extendssection (optional):
plugin:nestjs/recommended- nestjs/parse-int-pipe — Usage of transform pipe
ParseIntPipefor@Param()decorator - nestjs/deprecated-api-modules — Usage of the deprecated api (import modules)
- nestjs/use-dependency-injection — Dependencies must be provided through a class constructor
- nestjs/use-validation-pipe — Usage of
ValidationPipefor@Bodydecorated parameters
- rule: inject @Res() but not using send or json
- rule: if class decorated it must be exported
- cqrs: commands which only trigger 1 command handler (for write), but events can multiple
- cqrs: command should return void
SeeCHANGELOG.md
About
POC. ESLint rules for nestjs framework
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.