JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 497
  • Score
    100M100P100Q98804F
  • License MIT

An ESLint plugin for NestJS, with pedantic rules

Package Exports

  • eslint-plugin-nestjs-pedantic
  • eslint-plugin-nestjs-pedantic/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-nestjs-pedantic) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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 🌐 ✅ 💡