1.2.3 • Published 7 years ago
eslint-plugin-nestjs v1.2.3
eslint-plugin-nestjs
ESLint rules for nestjs framework.
This project is POC and is not under development. But it will be, if I will get nestjs project on my job.
INSTALL
npm install --save-dev eslint-plugin-nestjsUSAGE
Configure it in your configuration file:
1. Add to plugins section:
nestjs- Add to
extendssection (optional):
plugin:nestjs/recommendedRULES
- 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
TODO
- rule: inject @Res() but not using send or json
- rule: if class decorated it must be exported
USEFUL LINKS
CHANGELOG
See CHANGELOG.md