0.0.11 ⢠Published 6 months ago
eslint-plugin-nestjs-pedantic v0.0.11
eslint-plugin-nestjs-pedantic
Nitpicky ESLint rules.
Installation
npm install -D eslint typescript-eslint eslint-plugin-nestjs-pedantic
Configuration
To use the recommended configuration:
import nestjsPedantic from "eslint-plugin-nestjs-pedantic";
export default [
// ...
...nestjsPedantic.configs.recommended,
];
To turn on every rule:
import nestjsPedantic from "eslint-plugin-nestjs-pedantic";
export default [
// ...
...nestjsPedantic.configs.all,
];
See more: Configuring Plugins.
Rules
š¼ Configurations enabled in.\
š Set in the all
configuration.\
ā
Set in the recommended
configuration.\
š§ Automatically fixable by the --fix
CLI option.\
š” Manually fixable by editor suggestions.
Name | Description | š¼ | š§ | š” |
---|---|---|---|---|
match-methods-to-routes | Match method names to the decorated API routes | š ā | š§ | |
no-duplicate-route-params | Disallow duplicate route parameters | š ā | ||
no-unused-route-params | Disallow unused route parameters | š ā | š” | |
route-convention | Keep a convention when decorating routes | š ā | š§ | š” |
safe-route-params | Ensure safe usage of the @Param decorator | š ā | š” |